From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754704AbaJ1O42 (ORCPT ); Tue, 28 Oct 2014 10:56:28 -0400 Received: from prod-mail-xrelay07.akamai.com ([72.246.2.115]:59041 "EHLO prod-mail-xrelay07.akamai.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751847AbaJ1O40 (ORCPT ); Tue, 28 Oct 2014 10:56:26 -0400 Message-ID: <544FAE98.6080901@akamai.com> Date: Tue, 28 Oct 2014 10:56:24 -0400 From: Jason Baron User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130330 Thunderbird/17.0.5 MIME-Version: 1.0 To: Prarit Bhargava CC: "linux-kernel@vger.kernel.org" , Jonathan Corbet , Andrew Morton , Rusty Russell , "H. Peter Anvin" , Andi Kleen , Masami Hiramatsu , Fabian Frederick , "vgoyal@redhat.com" , "isimatu.yasuaki@jp.fujitsu.com" , "linux-doc@vger.kernel.org" , "kexec@lists.infradead.org" , "linux-api@vger.kernel.org" Subject: Re: [PATCH V5] kernel, add panic_on_warn References: <1414499499-21952-1-git-send-email-prarit@redhat.com> In-Reply-To: <1414499499-21952-1-git-send-email-prarit@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/28/2014 08:31 AM, Prarit Bhargava wrote: > There have been several times where I have had to rebuild a kernel to > cause a panic when hitting a WARN() in the code in order to get a crash > dump from a system. Sometimes this is easy to do, other times (such as > in the case of a remote admin) it is not trivial to send new images to the > user. > .... > diff --git a/kernel/sysctl_binary.c b/kernel/sysctl_binary.c > index 9a4f750..c62d421 100644 > --- a/kernel/sysctl_binary.c > +++ b/kernel/sysctl_binary.c > @@ -137,6 +137,7 @@ static const struct bin_table bin_kern_table[] = { > { CTL_INT, KERN_COMPAT_LOG, "compat-log" }, > { CTL_INT, KERN_MAX_LOCK_DEPTH, "max_lock_depth" }, > { CTL_INT, KERN_PANIC_ON_NMI, "panic_on_unrecovered_nmi" }, > + { CTL_INT, KERN_BUG_ON_WARN, "panic_on_warn" }, > {} > }; > I think you meant KERN_PANIC_ON_WARN here. Thanks, -Jason