Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3596379yba; Tue, 23 Apr 2019 06:36:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqzpOMU3WYT0KPLGgFuu1SQGzHF5p40UopT0nRKNO1O6b8cA9bRoeP91DvWvTn5yU9HUnmcx X-Received: by 2002:a63:c64a:: with SMTP id x10mr24436853pgg.12.1556026566492; Tue, 23 Apr 2019 06:36:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556026566; cv=none; d=google.com; s=arc-20160816; b=mGKhIrXLMjeL08z5XSBRTG+DrD4RsK0Hoc1YTSubtzCckwH6Zj9RbjZ45iKYIWMfAY 3yUHrG6WFP2yXF3qWS7P2AUqNxCHk62T/XQDXeq4w7ZoNb5mtzVr09jxhScrritVUv1e Hssz473TX9NbvDW2c2Yb/2nh3TCr2nvBQEZ3UB098tyVhXjCBA0zv9ydHul/Fg2vbxbS Bd8SyfvwPEw3h64zIGSw78HJXsLy5baBPflffbXewh1uDfrdKS2gex+FCLtjryHgD3Q3 u0Po/bzZehC6RjICedCgpHVfsJy3Auh+x5tzjAH5QZ0OprjVL/xwwB+mCN3ke0gRz9Zv tSvw== 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:dkim-signature; bh=c4k0E3WcrBaU7zCtDP8si1yICCPyuoyeseJHVw/RaBo=; b=KiBja2NfBPBGTIZZyuW8qGjDiQnJfeFVcHUeH0Buero5xeurcA+65kJtU1RCcPkSzU VOHv+6qi57zdzwANUZrlmrpLMdttZQGB5YFLgJYOCcRZiGKKU5Rt3X+iRor96cKidUw8 O2yoxjdwBl/nHVZ1GpCNeaS2b1XRGn6h/YCwLRT3TiKf2+HvHfMQ8Im1P17EZWPKwjoL DEAfnegiA9iAumk8/bptW03dcsel1aKDB7125FKL7MQXs44VaZTBFSCGwa4SyQHLF0BT 6mvBXewVm3gSp+BzpbEDWTDiM4gGNPbtXoSnEz584Dw8ermXg6bptGYGWza0BozytG68 jS/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brauner.io header.s=google header.b=Favhxh+z; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w126si16445635pfb.196.2019.04.23.06.35.50; Tue, 23 Apr 2019 06:36:06 -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; dkim=pass header.i=@brauner.io header.s=google header.b=Favhxh+z; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727869AbfDWNdh (ORCPT + 99 others); Tue, 23 Apr 2019 09:33:37 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:40659 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727831AbfDWNdh (ORCPT ); Tue, 23 Apr 2019 09:33:37 -0400 Received: by mail-wr1-f66.google.com with SMTP id h4so20232204wre.7 for ; Tue, 23 Apr 2019 06:33:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brauner.io; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=c4k0E3WcrBaU7zCtDP8si1yICCPyuoyeseJHVw/RaBo=; b=Favhxh+zV1JK6eUK1ARmmSpe2hHCCkZxssT+5C6DF82o2BmUR3WlvjXF//qcLqfC+V hPlERw4oZevVoDdhac/FoEcIWL3KgVSNs3PXlCWkB1rRyyLN+IWGDwmMJZH9jyw+IY/B 8Mfpigw4HE+zKbHcoSUxfbsmkZHWSOAPmr97KpjTFIA+eUcEWQ5kzECvhelz/OaUSxoC lQZF5AjFVJgXeCWrfg2rgWgkWnTbcQFqhA7+nE+gfNjchGUSDOTQ8rRR1Bpcoo8P8ljK Y2b/ZEkQrG9PPhb1+shzQTGm6c4D65aw4CDRTleTX9EibDqV8XOlUB9qg3UgY0AaJ9yT 3T/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=c4k0E3WcrBaU7zCtDP8si1yICCPyuoyeseJHVw/RaBo=; b=OhwTfdWuD9b7vXYX/eEZoe+1vchpkdc2usJskcdu+m7M4oPDsjFo7MbDLJkoMtDDPq oG9uqR+6sVoW6ueKr53655OhOn33hTt7yceqWCp++lZ9lbRIdI+dV1vOsprRYrJf4lkK RxgFunFlgcqJj4KFt0l84EeZESw42R8ROObaDXtDg+AHOijkLvgnKrJWXZOeA2LzVIS6 avL6l8xbZ6fg6uM7OtKS37L27B1RSsOPPXMOlixsVEq88eg8Cu5IxAS83NWTyP7Ysgaf s37+GgODw6+3quXA3ycCmwJ/IWCLveaFKzsBJZ04rKf4dvteF33MO1nsrjet2n5fIDMV P+LA== X-Gm-Message-State: APjAAAV1x6aC7Huuqj1O5OlcYkh9r/K3U6RZQTLzOosHUYygi5c+kS16 qIx0KLuZSeo8GJgL2YuvDFi2Gw== X-Received: by 2002:adf:f5d0:: with SMTP id k16mr10995988wrp.305.1556026415611; Tue, 23 Apr 2019 06:33:35 -0700 (PDT) Received: from brauner.io (v22018046084765073.goodsrv.de. [185.183.158.195]) by smtp.gmail.com with ESMTPSA id u6sm29478703wrg.72.2019.04.23.06.33.33 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 23 Apr 2019 06:33:34 -0700 (PDT) Date: Tue, 23 Apr 2019 15:33:32 +0200 From: Christian Brauner To: weizhenliang Cc: Oleg Nesterov , "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 v3] signal: trace_signal_deliver when signal_group_exit Message-ID: <20190423133331.b726uqa33mad2jsi@brauner.io> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 23, 2019 at 01:10:52PM +0000, 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)) { > >> ksig->info.si_signo = signr = SIGKILL; > >> sigdelset(¤t->pending.signal, SIGKILL); > >> + trace_signal_deliver(SIGKILL, SEND_SIG_NOINFO, SIG_DFL); > >> recalc_sigpending(); > >> goto fatal; > >> } > > > >Reviewed-by: Oleg Nesterov > > Last time Oleg suggested using SIG_DFL as the third parameter, but its type is 'void (*)(int)', but not expected 'struct k_sigaction *'. Sigh, I should've caught that in the first commit. Although it suggests you didn't even compile your patch... > > How about > trace_signal_deliver(SIGKILL, SEND_SIG_NOINFO, &sighand->action[signr - 1]); > ? That should work, yes. Christian