Re: [PATCH 2/5] sched,ptrace: Fix ptrace_check_attach() vs PREEMPT_RT

From: Oleg Nesterov
Date: Thu Apr 14 2022 - 08:08:47 EST


this doesn't really matter, just for completeness:

On 04/14, Oleg Nesterov wrote:
>
> if (wait_on_bit(&task->jobctl, JOBCTL_TRACED_XXX_BIT, TASK_KILLABLE))
> return -EINTR;
>
> this is fine,

No, this is wrong too. wake_up_bit() does exclusive wakeup.

Oleg.