Re: [PATCH v3] signal: trace_signal_deliver when signal_group_exit

2019-04-23 Thread weizhenliang
On 04/23, Greg KH wrote: >On Mon, Apr 22, 2019 at 10:59:50PM +0800, Zhenliang Wei wrote: >> In the fixes commit, removing SIGKILL from each thread signal mask and >> executing "goto fatal" directly will skip the call to >> "trace_signal_deliver". At this point, the delivery tracking of the >>

Re: [PATCH v3] signal: trace_signal_deliver when signal_group_exit

2019-04-23 Thread weizhenliang
On 04/23, Oleg wrote: >On 04/23, weizhenliang wrote: >> >> Last time Oleg suggested using SIG_DFL as the third parameter, but its type >> is 'void (*)(int)', but not expected 'struct k_sigaction *'. > >Yes I misread the signature of TRACE_EVENT(signal_deliver), and I thought you >at least

Re: [PATCH v3] signal: trace_signal_deliver when signal_group_exit

2019-04-23 Thread weizhenliang
On Tue, Apr 23, 2019 at 09:41 PM Christian wrote: >On Tue, Apr 23, 2019 at 01:10:52PM +, weizhenliang wrote: >> On Mon, Apr 22, 2019 at 11:25 PM Oleg Nesterov wrote: >> >On 04/22, Zhenliang Wei wrote: >> >> >> >> --- a/kernel/signal.c >> >> +++ b/kernel/signal.c >> >> @@ -2441,6 +2441,7 @@

Re: [PATCH v3] signal: trace_signal_deliver when signal_group_exit

2019-04-23 Thread Oleg Nesterov
On 04/23, weizhenliang wrote: > > On Mon, Apr 22, 2019 at 11:25 PM Oleg Nesterov wrote: > >On 04/22, Zhenliang Wei wrote: > >> > >> --- a/kernel/signal.c > >> +++ b/kernel/signal.c > >> @@ -2441,6 +2441,7 @@ bool get_signal(struct ksignal *ksig) > >>if (signal_group_exit(signal)) { > >>

Re: [PATCH v3] signal: trace_signal_deliver when signal_group_exit

2019-04-23 Thread Christian Brauner
On Tue, Apr 23, 2019 at 01:10:52PM +, weizhenliang wrote: > On Mon, Apr 22, 2019 at 11:25 PM Oleg Nesterov wrote: > >On 04/22, Zhenliang Wei wrote: > >> > >> --- a/kernel/signal.c > >> +++ b/kernel/signal.c > >> @@ -2441,6 +2441,7 @@ bool get_signal(struct ksignal *ksig) > >>if

Re: [PATCH v3] signal: trace_signal_deliver when signal_group_exit

2019-04-23 Thread weizhenliang
On Mon, Apr 22, 2019 at 11:25 PM Oleg Nesterov wrote: >On 04/22, Zhenliang Wei wrote: >> >> --- a/kernel/signal.c >> +++ b/kernel/signal.c >> @@ -2441,6 +2441,7 @@ bool get_signal(struct ksignal *ksig) >> if (signal_group_exit(signal)) { >> ksig->info.si_signo = signr = SIGKILL;

Re: [PATCH v3] signal: trace_signal_deliver when signal_group_exit

2019-04-22 Thread kbuild test robot
Hi Zhenliang, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.1-rc6 next-20190418] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH v3] signal: trace_signal_deliver when signal_group_exit

2019-04-22 Thread kbuild test robot
Hi Zhenliang, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.1-rc6 next-20190418] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH v3] signal: trace_signal_deliver when signal_group_exit

2019-04-22 Thread Greg KH
On Mon, Apr 22, 2019 at 10:59:50PM +0800, Zhenliang Wei wrote: > In the fixes commit, removing SIGKILL from each thread signal mask > and executing "goto fatal" directly will skip the call to > "trace_signal_deliver". At this point, the delivery tracking of the SIGKILL > signal will be inaccurate.

Re: [PATCH v3] signal: trace_signal_deliver when signal_group_exit

2019-04-22 Thread Oleg Nesterov
On 04/22, Zhenliang Wei wrote: > > --- a/kernel/signal.c > +++ b/kernel/signal.c > @@ -2441,6 +2441,7 @@ bool get_signal(struct ksignal *ksig) > if (signal_group_exit(signal)) { > ksig->info.si_signo = signr = SIGKILL; > sigdelset(>pending.signal, SIGKILL); > +

[PATCH v3] signal: trace_signal_deliver when signal_group_exit

2019-04-22 Thread Zhenliang Wei
In the fixes commit, removing SIGKILL from each thread signal mask and executing "goto fatal" directly will skip the call to "trace_signal_deliver". At this point, the delivery tracking of the SIGKILL signal will be inaccurate. Therefore, we need to add trace_signal_deliver before "goto fatal"