[PATCH 0/4 v2] perf: Fix leaked sigtrap events

From: Frederic Weisbecker
Date: Wed May 15 2024 - 10:43:24 EST


Hi,

After discussions with Sebastian, here is an updated version of
https://lore.kernel.org/all/20240329235812.18917-1-frederic@xxxxxxxxxx/

Changes since v2:

* Use rcuwait instead of waitqueue (more RT-friendly when preemption is
disabled)

* Add a few comments about RCU-ordering expectations

Thanks.

Frederic Weisbecker (4):
task_work: s/task_work_cancel()/task_work_cancel_func()/
task_work: Introduce task_work_cancel() again
perf: Fix event leak upon exit
perf: Fix event leak upon exec and file release

include/linux/perf_event.h | 1 +
include/linux/task_work.h | 3 ++-
kernel/events/core.c | 45 ++++++++++++++++++++++++++++++++------
kernel/irq/manage.c | 2 +-
kernel/task_work.c | 34 +++++++++++++++++++++++-----
security/keys/keyctl.c | 2 +-
6 files changed, 72 insertions(+), 15 deletions(-)

--
2.44.0