Re: [patch 1/8] signal: Prevent exec() race
From: Oleg Nesterov
Date: Fri Sep 04 2026 - 07:38:56 EST
Thomas, I can't read this series today, will try on Weekend.
But you didn't reply to
https://lore.kernel.org/all/apgHJj0qH7HlAXKO@xxxxxxxxxx/
Let me quote that email here:
OK... lets suppose the exiting task T passes exit_signals().
Suppose we have an "ignored" timer tmr. Another sub-thread calls
do_sigaction() -> posixtimer_sig_unignore() and finds that tmr
in ->ignored_posix_timers list.
But posixtimer_queue_sigqueue() doesn't check PF_EXITING, I guess
it should check it too?
Or perhaps it makes more sense to check PF_EXITING in
posixtimer_get_target() ?
and at first glance it seems that this version doesn't differ in this respect?
Sorry if I missed something (again ;) but I'd better ask just in case.
Oleg.