Re: [PATCH v2] perf/core: Don't send SIGTRAP after exec removed the event
From: Danishk2445
Date: Wed Sep 30 2026 - 14:23:54 EST
From: Danish Khateeb <danishkhateeb03@xxxxxxxxx>
On Wed, Sep 30, 2026 at 05:16:10PM +0200, Peter Zijlstra wrote:
> Is this the same problem as this one?
>
> https://patch.msgid.link/20260920075026.990582-1-luogengkun2@xxxxxxxxxx
No. That one is an exec into a non-dumpable binary, where
perf_event_exit_task() sets TASK_TOMBSTONE and the WARN fires. This is
an ordinary exec: ctx->task doesn't change and the SIGTRAP kills the
new program. With Luo's patch on rc5 that still happens (567 of 2000
runs), with this one it doesn't, and Luo's WARN goes away too, since
perf_event_exit_task() sets every event to PERF_EVENT_STATE_EXIT.
Thanks
Danish