All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Re: [PATCH v4] signal: trace_signal_deliver when signal_group_exit
@ 2019-04-24 13:58 weizhenliang
  2019-04-24 16:16 ` Oleg Nesterov
  0 siblings, 1 reply; 5+ messages in thread
From: weizhenliang @ 2019-04-24 13:58 UTC (permalink / raw)
  To: Oleg Nesterov, Christian Brauner
  Cc: ebiederm@xmission.com, colona@arista.com,
	akpm@linux-foundation.org, arnd@arndb.de, tglx@linutronix.de,
	deepa.kernel@gmail.com, gregkh@linuxfoundation.org,
	linux-kernel@vger.kernel.org, stable@vger.kernel.org

On 04/24, Oleg wrote:
>On 04/24, Christian Brauner wrote:
>>
>> On Wed, Apr 24, 2019 at 08:52:38PM +0800, Zhenliang Wei wrote:
>>
>> > Reviewed-by: Oleg Nesterov <oleg@redhat.com>
>
>Yes, but ...
>
>> > Reported-by: kbuild test robot <lkp@intel.com>
>
>Hmm, really?

Yes, the kbuild test robot says that if I fix the problem with the third parameter type, 
I should add this tag. What is wrong or missing?

Wei.

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: Re: [PATCH v4] signal: trace_signal_deliver when signal_group_exit
@ 2019-04-25  2:08 weizhenliang
  0 siblings, 0 replies; 5+ messages in thread
From: weizhenliang @ 2019-04-25  2:08 UTC (permalink / raw)
  To: Christian Brauner, Oleg Nesterov
  Cc: ebiederm@xmission.com, colona@arista.com,
	akpm@linux-foundation.org, arnd@arndb.de, tglx@linutronix.de,
	deepa.kernel@gmail.com, gregkh@linuxfoundation.org,
	linux-kernel@vger.kernel.org, stable@vger.kernel.org

On 04/25 Christian wrote:
>On Wed, Apr 24, 2019 at 6:16 PM Oleg Nesterov <oleg@redhat.com> wrote:
>>
>> On 04/24, weizhenliang wrote:
>> >
>> > On 04/24, Oleg wrote:
>> > >On 04/24, Christian Brauner wrote:
>> > >>
>> > >> On Wed, Apr 24, 2019 at 08:52:38PM +0800, Zhenliang Wei wrote:
>> > >>
>> > >> > Reviewed-by: Oleg Nesterov <oleg@redhat.com>
>> > >
>> > >Yes, but ...
>> > >
>> > >> > Reported-by: kbuild test robot <lkp@intel.com>
>> > >
>> > >Hmm, really?
>> >
>> > Yes, the kbuild test robot says that if I fix the problem with the 
>> > third parameter type, I should add this tag. What is wrong or missing?
>>
>> But this patch does not fix the problem reported by robot, your patch 
>> (which introduced that problem) was dropped, the problem has gone.
>>
>> With this "Reported-by: kbuild test robot <lkp@intel.com>" tag it 
>> looks as if test-robot has found the problem you are trying to fix: 
>> the lack of trace_signal_deliver(SIGKILL).
>
>Yeah, Oleg's absolutely right. That tag should just go.
>The Fixes line is all that we want, I think.

Got it ~ 
Thank you (Oleg and Christian) for the kind guidance
And I will update the patch as soon as possible

Wei.

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: Re: [PATCH v4] signal: trace_signal_deliver when signal_group_exit
@ 2019-04-24 13:44 weizhenliang
  0 siblings, 0 replies; 5+ messages in thread
From: weizhenliang @ 2019-04-24 13:44 UTC (permalink / raw)
  To: Christian Brauner
  Cc: ebiederm@xmission.com, oleg@redhat.com, colona@arista.com,
	akpm@linux-foundation.org, arnd@arndb.de, tglx@linutronix.de,
	deepa.kernel@gmail.com, gregkh@linuxfoundation.org,
	linux-kernel@vger.kernel.org, stable@vger.kernel.org

On 04/24, Christian Brauner wrote:
>On Wed, Apr 24, 2019 at 08:52:38PM +0800, Zhenliang Wei wrote:
>> 
>> Acked-by: Christian Brauner <christian@brauner.io>
>
>I think we're supposed to use more Reviewed-bys so feel free (or Andrew) to change this to:
>
>Reviewed-by: Christian Brauner <christian@brauner.io>

Ok, I will change this in patch v5.

>> --- a/kernel/signal.c
>> +++ b/kernel/signal.c
>> @@ -2441,6 +2441,8 @@ bool get_signal(struct ksignal *ksig)
>>  	if (signal_group_exit(signal)) {
>>  		ksig->info.si_signo = signr = SIGKILL;
>>  		sigdelset(&current->pending.signal, SIGKILL);
>> +		trace_signal_deliver(SIGKILL, SEND_SIG_NOINFO,
>> +			&sighand->action[signr - 1]);
>
>Hm, sorry for being the really nitpicky person here. Just for the sake of consistency how about we do either:
>
>+		trace_signal_deliver(SIGKILL, SEND_SIG_NOINFO,
>+			&sighand->action[SIGKILL - 1]);
>
>or
>
>+		trace_signal_deliver(signr, SEND_SIG_NOINFO,
>+			&sighand->action[signr - 1]);
>
>I'm not going to argue about this though. Can just also leave it as is.

Thank you for your comments and learn from rigorous people! I will take:

+		trace_signal_deliver(SIGKILL, SEND_SIG_NOINFO,
+			&sighand->action[SIGKILL - 1]);

Any other suggestions about the patch?

Wei

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-04-25  2:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-24 13:58 Re: [PATCH v4] signal: trace_signal_deliver when signal_group_exit weizhenliang
2019-04-24 16:16 ` Oleg Nesterov
2019-04-24 16:19   ` Christian Brauner
  -- strict thread matches above, loose matches on Subject: below --
2019-04-25  2:08 weizhenliang
2019-04-24 13:44 weizhenliang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.