WSL2-Linux-Kernel/kernel/events
Peter Zijlstra 52d13d224f perf/aux: Fix AUX buffer serialization
commit 2ab9d830262c132ab5db2f571003d80850d56b2a upstream.

Ole reported that event->mmap_mutex is strictly insufficient to
serialize the AUX buffer, add a per RB mutex to fully serialize it.

Note that in the lock order comment the perf_event::mmap_mutex order
was already wrong, that is, it nesting under mmap_lock is not new with
this patch.

Fixes: 45bfb2e504 ("perf: Add AUX area to ring buffer for raw data streams")
Reported-by: Ole <ole@binarygecko.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-09-12 11:07:51 +02:00
..
Makefile
callchain.c
core.c perf/aux: Fix AUX buffer serialization 2024-09-12 11:07:51 +02:00
hw_breakpoint.c
internal.h perf/aux: Fix AUX buffer serialization 2024-09-12 11:07:51 +02:00
ring_buffer.c perf/aux: Fix AUX buffer serialization 2024-09-12 11:07:51 +02:00
uprobes.c uprobes: Use kzalloc to allocate xol area 2024-09-12 11:07:51 +02:00