Re: [RFC PATCH] ptrace: don't report syscall-exit if the tracee was killed by seccomp

From: Kusaram Devineni

Date: Mon Apr 06 2026 - 06:43:41 EST


I don't see a better fix for now. Hopefully we can cleanup this later.
I think force_exit_sig / force_sig_seccomp should make fatal_signal_pending()
true, but we need a simple fix...

Thanks Oleg.

This is exactly aligned with what we validated locally as well. Excluding
SA_IMMUTABLE signals from the signalfd dequeue mask addresses that directly.

So this fix makes sense as the contained solution for the reported bug.
The broader signal-ordering / fatal_signal_pending() cleanup you mentioned
also seems worthwhile, but as a follow-up rather than something to fold into
this fix.

Kusaram