diff options
| author | Steven Rostedt <[email protected]> | 2025-01-20 23:56:56 +0000 |
|---|---|---|
| committer | Steven Rostedt (Google) <[email protected]> | 2025-01-21 20:19:00 +0000 |
| commit | cd2375a3567fd3d93aa6c68e0027a5756213bda0 (patch) | |
| tree | f074dbf2e1b7f48ff5099b50e9826b21f6d004d1 /drivers/platform/x86/intel/pmt/class.c | |
| parent | ring-buffer: Make reading page consistent with the code logic (diff) | |
| download | kernel-cd2375a3567fd3d93aa6c68e0027a5756213bda0.tar.gz kernel-cd2375a3567fd3d93aa6c68e0027a5756213bda0.zip | |
ring-buffer: Do not allow events in NMI with generic atomic64 cmpxchg()
Some architectures can not safely do atomic64 operations in NMI context.
Since the ring buffer relies on atomic64 operations to do its time
keeping, if an event is requested in NMI context, reject it for these
architectures.
Cc: [email protected]
Cc: Mark Rutland <[email protected]>
Cc: Mathieu Desnoyers <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Andreas Larsson <[email protected]>
Link: https://lore.kernel.org/[email protected]
Fixes: c84897c0ff592 ("ring-buffer: Remove 32bit timestamp logic")
Closes: https://lore.kernel.org/all/[email protected]/
Reported-by: Ludwig Rydberg <[email protected]>
Reviewed-by: Masami Hiramatsu (Google) <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'drivers/platform/x86/intel/pmt/class.c')
0 files changed, 0 insertions, 0 deletions
