Re: [PATCH V2] signal: Prevent exec() race

From: Thomas Gleixner

Date: Thu Sep 03 2026 - 02:15:24 EST


On Wed, Sep 02 2026 at 12:28, Oleg Nesterov wrote:
>> @@ -1990,6 +2004,9 @@ void posixtimer_send_sigqueue(struct k_i
>> if (!likely(lock_task_sighand(t, &flags)))
>> return;
>>
>> + if (unlikely(tmr->it_pid_type == PIDTYPE_PID && (t->flags & PF_EXITING)))
>> + return;
>
> this lacks unlock_sighand().

Bah.