mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Peter Zijlstra <peterz@infradead.org>
To: Vince Weaver <vincent.weaver@maine.edu>
Cc: linux-kernel@vger.kernel.org, Ingo Molnar <mingo@redhat.com>,
	Paul Mackerras <paulus@samba.org>
Subject: Re: perf: fuzzer induced mutex_lock_nested BUG
Date: Mon, 19 May 2014 16:48:51 +0200	[thread overview]
Message-ID: <20140519144851.GO2485@laptop.programming.kicks-ass.net> (raw)
In-Reply-To: <alpine.DEB.2.10.1405191026400.15561@vincent-weaver-1.umelst.maine.edu>

On Mon, May 19, 2014 at 10:37:11AM -0400, Vince Weaver wrote:
> 
> When sorting through the logs of the weekend's fuzzing I found a bunch of 
> these errors which apparently were not fatal.
> 
> This is a Haswell machine running 3.15-rc5 plus a number of PeterZ 
> patches, so sorry if the results are meaningless due to the extra patches.  
> I was hoping some of the fixes would show up in the mainline at some 
> point, running latest -git is enough of a pain, I don't really have the 
> cycles to be running -next or -tip kernels.
> 
> If you look up the faulting IP it's actually happening at this line in
> lockdep.c __lock_acquire()
> 
> 	if (subclass < NR_LOCKDEP_CACHING_CLASSES)
> 		class = lock->class_cache[subclass];
> 

Yeah, that's a popular place to crash if you feed it garbage. Nothing
lockdep can do about that.

> [ 3884.569315] BUG: unable to handle kernel NULL pointer dereference at 00000000000000b8

> [ 4014.688350]  [<ffffffff810b15be>] lock_acquire+0x9e/0x120
> [ 4014.688353]  [<ffffffff8164f7e0>] mutex_lock_nested+0x50/0x360
> [ 4014.688357]  [<ffffffff8113b62c>] perf_event_init_context+0x8c/0x250
> [ 4014.688358]  [<ffffffff8113b85d>] perf_event_init_task+0x6d/0x70
> [ 4014.688359]  [<ffffffff81062165>] copy_process.part.23+0x6b5/0x1c60
> [ 4014.688362]  [<ffffffff810638e5>] do_fork+0xd5/0x330
> [ 4014.688366]  [<ffffffff81063bc6>] SyS_clone+0x16/0x20
> [ 4014.688367]  [<ffffffff8165b999>] stub_clone+0x69/0x90

Cute, I had not seen that one yet...

      reply	other threads:[~2014-05-19 14:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-19 14:37 Vince Weaver
2014-05-19 14:48 ` Peter Zijlstra [this message]

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=20140519144851.GO2485@laptop.programming.kicks-ass.net \
    --to=peterz@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=paulus@samba.org \
    --cc=vincent.weaver@maine.edu \
    /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

all inboxes | Powered by JetHome®