Re: [possible bug] missed wakeup in do_sigtimedwait()?

From: Linus Torvalds
Date: Sat Sep 04 2021 - 14:30:33 EST


On Sat, Sep 4, 2021 at 11:13 AM Al Viro <viro@xxxxxxxxxxxxxxxxxx> wrote:
>
> Thanks. AFAICS, it's this logics in __schedule():
> if (signal_pending_state(prev_state, prev)) {
> WRITE_ONCE(prev->__state, TASK_RUNNING);

Exactly. As you note, it also handles the WAKEKILL case which is
basically equivalent (just for the "I can't take normal signals, but
I'm ok dying" case)

Linus