Re: [PATCH v5 1/2] perf/core: Prevent duplicate sigtrap task work enqueue
From: Peter Zijlstra
Date: Fri Nov 20 2026 - 11:26:16 EST
On Fri, Nov 20, 2026 at 05:01:40PM +0100, Peter Zijlstra wrote:
> On Fri, Nov 20, 2026 at 04:49:59PM +0100, Sebastian Andrzej Siewior wrote:
> > On 2026-11-20 16:44:57 [+0100], Peter Zijlstra wrote:
> > > Some key ingredient is missing here. Is this some software event that is
> > > missing recursion checks?
> > If you navigate to
> > https://lore.kernel.org/all/29aa123c-36a2-460f-b76b-a8dfe1eb542f@xxxxxxxxxxxxxxx/
> > and /PoC then you find what I used for testing.
>
> Right, it had to be a tracepoint :/ Let me go puzzle.
Argh, yes. The recursion is per context {task,bh,irq,nmi} which isn't
sufficient for this case.
Also, sending signals on software events seems utterly insane. But I
don't support we can go limit that now :-(