diff options
| author | Benjamin Segall <bsegall@google.com> | 2026-11-02 15:11:56 -0800 |
|---|---|---|
| committer | Peter Zijlstra <peterz@infradead.org> | 2026-11-06 11:45:15 +0100 |
| commit | 3bbd85b2f67aff58f2cbec9a7fb705677b94473b (patch) | |
| tree | d2caa91120a5c5b0ef403ea1aa2f2499a8ef59e8 /rust/kernel | |
| parent | 6bea5e29daf123a78ae58cb5926023f4705f396f (diff) | |
perf: Fix racy update of cpc->hrtimer_interval
Updates to cpc->hrtimer_interval can race with reads either in the
hrtimer itself, or other calls to perf_mux_hrtimer_restart. This is not
exactly expected to be a common config change, but it's easy enough to
fix.
Since there's already an IPI to each cpu to restart the timer, and all
reads are with irqs disabled, just move the update onto the target cpu.
Fixes: 62b856397927 ("perf: Add sysfs entry to adjust multiplexing interval per PMU")
Reported-by: Sashiko <sashiko-bot@kernel.org>
Signed-off-by: Ben Segall <bsegall@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://sashiko.dev/#/patchset/xm265wykhyrv.fsf%40google.com
Link: https://patch.msgid.link/xm26se1ihlqb.fsf@google.com
Diffstat (limited to 'rust/kernel')
0 files changed, 0 insertions, 0 deletions
