Re: [PATCH 07/16] signal: Wake up the designated parent

2022-06-07 Thread Oleg Nesterov
On 06/06, Eric W. Biederman wrote: > > Which if I have had enough sleep reduces this patch to just: > > diff --git a/kernel/exit.c b/kernel/exit.c > index f072959fcab7..c8156366b722 100644 > --- a/kernel/exit.c > +++ b/kernel/exit.c > @@ -1431,8 +1431,10 @@ static int child_wait_callback(wait_queue

Re: [PATCH 07/16] signal: Wake up the designated parent

2022-06-06 Thread Eric W. Biederman
Oleg Nesterov writes: > On 05/24, Oleg Nesterov wrote: >> >> On 05/24, Oleg Nesterov wrote: >> > >> > I fail to understand this patch... >> > >> > On 05/18, Eric W. Biederman wrote: >> > > >> > > Today if a process is ptraced only the ptracer will ever be woken up in >> > > wait >> > >> > and why

Re: [PATCH 07/16] signal: Wake up the designated parent

2022-05-25 Thread Oleg Nesterov
On 05/24, Oleg Nesterov wrote: > > On 05/24, Oleg Nesterov wrote: > > > > I fail to understand this patch... > > > > On 05/18, Eric W. Biederman wrote: > > > > > > Today if a process is ptraced only the ptracer will ever be woken up in > > > wait > > > > and why is this wrong? > > > > > Fixes: 75b9

Re: [PATCH 07/16] signal: Wake up the designated parent

2022-05-24 Thread Oleg Nesterov
On 05/24, Oleg Nesterov wrote: > > I fail to understand this patch... > > On 05/18, Eric W. Biederman wrote: > > > > Today if a process is ptraced only the ptracer will ever be woken up in > > wait > > and why is this wrong? > > > Fixes: 75b95953a569 ("job control: Add @for_ptrace to > > do_notify

Re: [PATCH 07/16] signal: Wake up the designated parent

2022-05-24 Thread Oleg Nesterov
I fail to understand this patch... On 05/18, Eric W. Biederman wrote: > > Today if a process is ptraced only the ptracer will ever be woken up in > wait and why is this wrong? > Fixes: 75b95953a569 ("job control: Add @for_ptrace to > do_notify_parent_cldstop()") how does this change fix 75b959

[PATCH 07/16] signal: Wake up the designated parent

2022-05-18 Thread Eric W. Biederman
Today if a process is ptraced only the ptracer will ever be woken up in wait, if the parent is waiting with __WNOTHREAD. Update the code so that the real_parent can also be woken up with __WNOTHREAD even when the code is ptraced. Fixes: 75b95953a569 ("job control: Add @for_ptrace to do_notify_pa