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

From: Linus Torvalds
Date: Sat Sep 04 2021 - 13:00:14 EST


On Sat, Sep 4, 2021 at 7:45 AM Al Viro <viro@xxxxxxxxxxxxxxxxxx> wrote:
>
> Looks like that __set_current_state() should've been done before dropping
> the siglock. Am I missing something subtle here?

I agree, that seems like a bug, and your fix seems the trivially correct thing.

The bug goes back at least before ther bk history (in 2002).
Presumably since the introduction of the system call.

Linus