lkml.org 
[lkml]   [2015]   [May]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: perf: another perf_fuzzer generated lockup
On Fri, 8 May 2015, Stephane Eranian wrote:

> Vince,
>
> On Thu, May 7, 2015 at 9:40 PM, Vince Weaver <vincent.weaver@maine.edu> wrote:
> >
> >
> > This is a new one I think, I hit it on the haswell machine running
> > 4.1-rc2.
> >
> > The backtrace is complex enough I'm not really sure what's going on here.
> >
> > The fuzzer has been having weird issues where it's been getting
> > overflow signals from invalid fds. This seems to happen
> > when an overflow signal interrupts the fuzzer mid-fork?
> > And the fuzzer code doesn't handle this well and attempts to call exit()
> > and/or kill the child from the signal handler that interrupted the
> > fork() and that doesn't always go well. I'm not sure if this is related,
> > just that some of those actions seem to appear in the backtrace.
> >
> >
> Is there a way to figure out how the fuzzer had programmed the PMU
> to get there? (besides adding PMU state dump in the kernel crashdump)?

Not easily. In theory the fuzzer can regenerate state from the random
seed, but some of these bugs seem to be timing related or race conditions,
so they don't always replicate.

Also I can make the fuzzer dump the state, but often it has 100+ events
active and no way of knowing which ones are currently scheduled onto the
CPU.

Dumping the PMU state might help, but at the same time there's all the
other events going on such as software and tracepoint events and they
might all be contributing.

This particular bug almost replicates; the system definitely pauses for a
bit even if not long enough to trigger the watchdog.

I've been meaning to work on it more but we just finished with finals so I'm
stuck doing more or less nothing but grading this next week. After that I
should have some time to work on this issue plus a couple other warnings
the fuzzer has been showing.

Vince


\
 
 \ /
  Last update: 2015-05-11 23:41    [W:0.074 / U:10.052 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site