public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Dave Jones <davej@redhat.com>
To: Josh Hunt <johunt@akamai.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"Baron, Jason" <jbaron@akamai.com>
Subject: Re: [PATCH] panic: add TAINT_SOFTLOCKUP
Date: Tue, 24 Jun 2014 11:06:15 -0400	[thread overview]
Message-ID: <20140624150615.GA18176@redhat.com> (raw)
In-Reply-To: <53A9899C.9040005@akamai.com>

On Tue, Jun 24, 2014 at 09:22:20AM -0500, Josh Hunt wrote:
 
 > >> In addition to adding the softlockup taint flag, do you think it'd be
 > >> reasonable to add another flag for page allocation failures? I think
 > >> it'd be nice to be able to account for these conditions somehow without
 > >> having to parse dmesg, etc. As with the softlockup flag, it's helpful to
 > >> know if your system had encountered a page allocation failure at some
 > >> point before the crash or whatever you're debugging.
 > >
 > > I don't know, really.  Allocation failures are often an expected thing
 > > as drivers try to work out how much memory they can allocate.  Those
 > > things can be screened out by testing __GFP_NOWARN.  GFP_ATOMIC
 > > failures should probably be ignored, except for when they shouldn't.
 > > But even then, allocation failures are somewhat common.  And recency is
 > > a concern: an allocation failure 10 minutes ago is unlikely to be
 > > relevant.
 > >
 > > But that's just me waving hands around.  I'd be interested to hear from
 > > people whose kernels crash more often than mine, and from those whose
 > > job is to support them (ie distro people?).
 > >
 > 
 > Anyone you'd suggest adding to this thread to get other feedback about 
 > tracking page allocation failures? I could also spin up a patch and cc them.

For things like the fuzz test runs I do, I'd have to patch this out.

Things like migrate_pages() with bad arguments will trigger a page
allocation failure rather easily. Likewise set_mempolicy(), and a
handful of other vm syscalls.

There's also the case of "too fragmented to satisfy contiguous multi-page
allocation" which I walk into from time to time (when the kernel manages
to survive a fuzz run long enough, which isn't that often).

	Dave


  reply	other threads:[~2014-06-24 15:06 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-04  2:12 [PATCH] panic: add TAINT_SOFTLOCKUP Josh Hunt
2014-06-23 22:11 ` Andrew Morton
2014-06-23 22:45   ` Josh Hunt
2014-06-23 22:51     ` Andrew Morton
2014-06-24 14:22       ` Josh Hunt
2014-06-24 15:06         ` Dave Jones [this message]
2014-06-24 15:20           ` Dave Jones
2014-06-25  0:45         ` David Rientjes
     [not found]           ` <CAPDOMVifbWCohymLyCc6cxG7t9WCDLTbCWRZx8xyG3DOMFqKqg@mail.gmail.com>
2014-06-25  2:21             ` Nick Krause
2014-06-25  3:24           ` Josh Hunt
2014-06-25  3:39             ` Nick Krause

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=20140624150615.GA18176@redhat.com \
    --to=davej@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=jbaron@akamai.com \
    --cc=johunt@akamai.com \
    --cc=linux-kernel@vger.kernel.org \
    /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