Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp982849yba; Wed, 24 Apr 2019 12:55:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqxL2csSKWTuw7Iygr3pftxcHP7Ey9XMEkwWwvZHMxetpBAIzXm93E8B67c2Ovp15dGE57iD X-Received: by 2002:aa7:8284:: with SMTP id s4mr35116265pfm.235.1556135753089; Wed, 24 Apr 2019 12:55:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556135753; cv=none; d=google.com; s=arc-20160816; b=ES7OYcLcguSrVaD7QFbEwmufj5ztOmIANtGSENYzUb4jANs8p0ZujTqxoqn/kC2sSv 0w9/7taN4uawR6aWkpomOcYkfUjXM+RNfKqqcSiryz7GB5NVfplCzXpcWjkTWXSQ0/ES hsuDAMuKxAuxAZDFW+tm0u2dkbYv0Lmhby7L0Z7uCm5H+8p/Gq6bnGsRxCzLJhtOGSMZ yJu3nQMNIbHA6vkrLORCzbeIBjV46mgVkdqA4ZBbkTuGEJr1VU0wjxxD+ZIxWd2YwzTV AFKfiV2emkYy1geoU7Z1gnLF96XTOpduEhByxeC1i/XbrBRV16OC+FEKPND80wcN0OWo t3tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=rD8RCvrKN7I5Q5IZsqnEu3HrrIFEZdm14bqZgL93rRs=; b=b1EkMykuU+Ep3u+YxBZJ4HEs7bg4tl4dl8uFGcfj7AXfi8kcTIw6IcVaSOGHheHzW+ pw3sAc0Mf/5lJ7rq+Dn81X5QaExYwATX29cReAWfW82sRNMqCQRFfzHn+sAGbT9FvAmk 5d8+8dabYC6wvPK23wgleIQAaoZLwbICxHpFrcOttbsvI8mbRsEoXKekKa7INOtpgMPp Vlw2N/9K/kLLyAaIsstc4gvyraj35BG5kgEKZ3ZN+8y+WlwVK7Ft7GfsZ/IKVysap8eK qVNbRE8TtLcejpYk8208hRwpypdla7x/QLfX+LJqcYGPvGBWqna1xZx3zp5rBc750fXn g+xQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v3si18786305pga.354.2019.04.24.12.55.37; Wed, 24 Apr 2019 12:55:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727770AbfDXNZI (ORCPT + 99 others); Wed, 24 Apr 2019 09:25:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:27821 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727046AbfDXNZI (ORCPT ); Wed, 24 Apr 2019 09:25:08 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7D105C0B2C4D; Wed, 24 Apr 2019 13:25:07 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.43.17.38]) by smtp.corp.redhat.com (Postfix) with SMTP id 072E961D32; Wed, 24 Apr 2019 13:25:04 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Wed, 24 Apr 2019 15:25:06 +0200 (CEST) Date: Wed, 24 Apr 2019 15:25:03 +0200 From: Oleg Nesterov To: Christian Brauner Cc: Zhenliang Wei , 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 Subject: Re: [PATCH v4] signal: trace_signal_deliver when signal_group_exit Message-ID: <20190424132502.GE16167@redhat.com> References: <20190424125238.83264-1-weizhenliang@huawei.com> <20190424130751.jckvq535ipfx5cq6@brauner.io> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190424130751.jckvq535ipfx5cq6@brauner.io> User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Wed, 24 Apr 2019 13:25:08 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/24, Christian Brauner wrote: > > On Wed, Apr 24, 2019 at 08:52:38PM +0800, Zhenliang Wei wrote: > > > Reviewed-by: Oleg Nesterov Yes, but ... > > Reported-by: kbuild test robot Hmm, really? > > --- 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(¤t->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]); Agreed! Oleg.