Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'perf_urgent_for_v6.16_rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull perf fix from Borislav Petkov:

- Prevent perf_sigtrap() from observing an exiting task and warning
about it

* tag 'perf_urgent_for_v6.16_rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
perf/core: Fix WARN in perf_sigtrap()

+7 -7
+7 -7
kernel/events/core.c
··· 7204 7204 static void perf_sigtrap(struct perf_event *event) 7205 7205 { 7206 7206 /* 7207 + * Both perf_pending_task() and perf_pending_irq() can race with the 7208 + * task exiting. 7209 + */ 7210 + if (current->flags & PF_EXITING) 7211 + return; 7212 + 7213 + /* 7207 7214 * We'd expect this to only occur if the irq_work is delayed and either 7208 7215 * ctx->task or current has changed in the meantime. This can be the 7209 7216 * case on architectures that do not implement arch_irq_work_raise(). 7210 7217 */ 7211 7218 if (WARN_ON_ONCE(event->ctx->task != current)) 7212 - return; 7213 - 7214 - /* 7215 - * Both perf_pending_task() and perf_pending_irq() can race with the 7216 - * task exiting. 7217 - */ 7218 - if (current->flags & PF_EXITING) 7219 7219 return; 7220 7220 7221 7221 send_sig_perf((void __user *)event->pending_addr,