Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6084457imu; Wed, 30 Jan 2019 08:32:26 -0800 (PST) X-Google-Smtp-Source: ALg8bN5nRdJZIlOnLm78J7RhhWYy1/WiRE8ComCJsDfowPjORS7eFW9nC7DjGlnsHC6Dum25i7QF X-Received: by 2002:a63:a41:: with SMTP id z1mr27988099pgk.117.1548865946029; Wed, 30 Jan 2019 08:32:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548865946; cv=none; d=google.com; s=arc-20160816; b=XAva8sCGaeaOOfY3LANLCKJB7AGN56sHJSYMB/WsBL5VRV15xVqjpn2ooMgtt8L3bw ICmpcVSe8jAC9rHQ2gmt3hvlOpw1OcALwxCkz9LKEC/WGNBo/VX8M3oFkqFUT21Jkpx8 BvIvLIfPuGOxAH1QhqWmRYrQ7XwEoMb9T+OoPpGPHqHVabGtUElCMalR32YDtmpX69pD oibS4TbWwCG0frJQ4iGMCBNOVUbzIvLXJTa7PgbiNhKLtZQ3Y+wDjDZLq+AER2HqjVZ/ RE80+Xp8aM2V7PxsJsQv7fX0k9GpdEU4JFgcM+yeeClfZ7GAUUwafESA/IV3aBpRDeER nc9g== 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=Z8r79YsIaddf00gnXkFE1Ek5DjKuWVBCD2FAVOwfosE=; b=mYFkVA287pyA6Gnep9cz7S2MYB3JRLFNqlvcoxAWI8dO2F2FqWBWSQWxpAZrk+mfRy YrEiupc3yKN7SHCrQVxvHEyWFxgJ6vlzO7TE8ac3HMYih/URm4cE0RybHvV5huqP318/ 7Ou4MgGpFziFZdFLQU7soi3c5b81FFF5tzSp+J+Yzr+2w8DrBoQ1qMdI/L68pUqK//zs Rc5NhCSu1k7B/eMbwEvromr5MRTrdp4+lI2HRgIxDzxwKJmjzEnt6Y81ZRyS45tv2C71 ihut1xeSqrmdQsLKipJ1vW4ja2IRjncrg/8AWWhqrOJSLBih5wf0YVANAfa/uvOcIuX6 S62g== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w185si1704171pgd.518.2019.01.30.08.31.56; Wed, 30 Jan 2019 08:32:25 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731956AbfA3Q3r (ORCPT + 99 others); Wed, 30 Jan 2019 11:29:47 -0500 Received: from bastet.se.axis.com ([195.60.68.11]:39719 "EHLO bastet.se.axis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731156AbfA3Q3q (ORCPT ); Wed, 30 Jan 2019 11:29:46 -0500 Received: from localhost (localhost [127.0.0.1]) by bastet.se.axis.com (Postfix) with ESMTP id 09BF218525; Wed, 30 Jan 2019 17:29:45 +0100 (CET) X-Axis-User: NO X-Axis-NonUser: YES X-Virus-Scanned: Debian amavisd-new at bastet.se.axis.com Received: from bastet.se.axis.com ([IPv6:::ffff:127.0.0.1]) by localhost (bastet.se.axis.com [::ffff:127.0.0.1]) (amavisd-new, port 10024) with LMTP id zkJhc9yuw9zT; Wed, 30 Jan 2019 17:29:42 +0100 (CET) Received: from boulder03.se.axis.com (boulder03.se.axis.com [10.0.8.17]) by bastet.se.axis.com (Postfix) with ESMTPS id E2C78184FC; Wed, 30 Jan 2019 17:29:42 +0100 (CET) Received: from boulder03.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D0BFC1E072; Wed, 30 Jan 2019 17:29:42 +0100 (CET) Received: from boulder03.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C50E11E070; Wed, 30 Jan 2019 17:29:42 +0100 (CET) Received: from thoth.se.axis.com (unknown [10.0.2.173]) by boulder03.se.axis.com (Postfix) with ESMTP; Wed, 30 Jan 2019 17:29:42 +0100 (CET) Received: from lnxartpec.se.axis.com (lnxartpec.se.axis.com [10.88.4.9]) by thoth.se.axis.com (Postfix) with ESMTP id B8B0825F7; Wed, 30 Jan 2019 17:29:42 +0100 (CET) Received: by lnxartpec.se.axis.com (Postfix, from userid 10564) id B59AB80C3B; Wed, 30 Jan 2019 17:29:42 +0100 (CET) Date: Wed, 30 Jan 2019 17:29:42 +0100 From: Vincent Whitchurch To: Richard Weinberger Cc: Luis Chamberlain , Andrew Morton , Kees Cook , LKML Subject: Re: [PATCH v2] sysctl: Add panic-fatal-signals Message-ID: <20190130162942.ppapys75ffvjgfct@axis.com> References: <20190128084959.13060-1-vincent.whitchurch@axis.com> <20190128100545.b62193aa8f49e1de8d6ea8b7@linux-foundation.org> <20190130144851.GK11489@garbanzo.do-not-panic.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) X-TM-AS-GCONF: 00 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 30, 2019 at 04:02:36PM +0100, Richard Weinberger wrote: > Hmm, why can't this be a core dump helper? > Such as: > > #!/bin/sh > # Usage: > # echo "|/root/crash.sh %p %e %s" > /proc/sys/kernel/core_pattern > > PID="$1" > COMM="$2" > SIGNAL="$3" > > echo "$COMM ($PID) died by signal $SIGNAL, killing kernel" > /dev/kmsg > echo c > /proc/sysrq-trigger Yes, that looks like it should work. Thanks.