Kexec Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Horman <horms@verge.net.au>
To: Vivek Goyal <vgoyal@redhat.com>
Cc: Prarit Bhargava <prarit@redhat.com>,
	kexec@lists.infradead.org, Dave Young <dyoung@redhat.com>,
	WANG Chao <chaowang@redhat.com>
Subject: Re: [PATCH] kexec, remove panic_on_warn kernel parameter from kdump situations
Date: Mon, 5 Jan 2015 10:49:47 +0900	[thread overview]
Message-ID: <20150105014947.GC10874@verge.net.au> (raw)
In-Reply-To: <20150102131709.GB18785@redhat.com>

On Fri, Jan 02, 2015 at 08:17:09AM -0500, Vivek Goyal wrote:
> On Fri, Jan 02, 2015 at 08:07:20AM -0500, Prarit Bhargava wrote:
> > 
> > 
> > On 01/02/2015 07:54 AM, Vivek Goyal wrote:
> > > On Tue, Dec 30, 2014 at 09:57:51AM -0500, Prarit Bhargava wrote:
> > >> panic_on_warn kernel parameter will cause the kernel to panic when a
> > >> WARN() is hit in the kernel.  This is not a good situation for the kdump
> > >> kernel because then it would be possible for the kdump kernel to panic in
> > >> a non-fatal WARN().
> > >>
> > >> This patch removes panic_on_warn as a kernel parameter for the kdump
> > >> kernel.
> > >>
> > > 
> > > I think modifying kexec-tools is not best place for this. It probably is better to take care of this in distribution specific scripts.
> > > 
> > > In the past we have learnt that it is best that kexec-tools does least
> > > amount of manipulation with command line.
> > 
> > Well .. here's the question to think about: what does adding panic_on_warn to
> > the kdump kernel get you?  AFAICT, nothing.
> 
> Let us consider a hypothetical situation. What if we have some buggy code
> which will corrupt file system in certain situation and we detect that
> situation and throw a warning. 
> 
> In that case as a work around specifying panic_on_warn in kdump kernel
> will make sense as we don't want to make further progress if we hit
> the warning as it has potential to corrupt fs.
> 
> Again this is hypothetical but it can happen. So panic_on_warn might
> still be useful in kdump kernel for some corner debugging cases.
> 
> That's why I think we should do it in distribution specific scripts
> and that too only if user did not specify panic_on_warn for second
> kernel explicitly.
> 
> > 
> > If panic_on_warn is specified, the only thing that will happen is that kdump
> > will fail (which is always bad IMO).  There is no real difference in the stack
> > trace between the WARN() and panic situations so there is no information loss.
> > 
> > So I disagree -- we should never specify panic_on_warn on kdump kernel.
> 
> I am saying that do it in distribution specific scripts and not in 
> kexec-tools.

I have reverted this patch until some consensus is reached.

_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

  reply	other threads:[~2015-01-05  1:50 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-30 14:57 [PATCH] kexec, remove panic_on_warn kernel parameter from kdump situations Prarit Bhargava
2015-01-02 12:54 ` Vivek Goyal
2015-01-02 13:07   ` Prarit Bhargava
2015-01-02 13:17     ` Vivek Goyal
2015-01-05  1:49       ` Simon Horman [this message]
2015-01-06  1:44       ` Dave Young
2015-01-06  1:54         ` Vivek Goyal
2015-01-06  8:05           ` Dave Young
2015-01-06 12:46             ` Baoquan He
2015-01-06 13:07               ` Vivek Goyal
2015-01-06 13:06             ` Vivek Goyal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150105014947.GC10874@verge.net.au \
    --to=horms@verge.net.au \
    --cc=chaowang@redhat.com \
    --cc=dyoung@redhat.com \
    --cc=kexec@lists.infradead.org \
    --cc=prarit@redhat.com \
    --cc=vgoyal@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox