Re: perf: fuzzer crashes immediately on AMD system

2016-08-24 Thread Vince Weaver
On Wed, 24 Aug 2016, Ingo Molnar wrote: > If there's no progress finding the root cause I'd be happy to exchange a > crash for > a leak ... It's actually a crash of the program doing the perf_event_open() call, not a crash of the system (at least in my experience). However, it's possible that

Re: perf: fuzzer crashes immediately on AMD system

2016-08-24 Thread Vince Weaver
On Wed, 24 Aug 2016, Ingo Molnar wrote: > If there's no progress finding the root cause I'd be happy to exchange a > crash for > a leak ... It's actually a crash of the program doing the perf_event_open() call, not a crash of the system (at least in my experience). However, it's possible that

Re: perf: fuzzer crashes immediately on AMD system

2016-08-24 Thread Ingo Molnar
* Vince Weaver wrote: > On Tue, 23 Aug 2016, Peter Zijlstra wrote: > > > On Mon, Aug 22, 2016 at 10:54:32PM -0400, Vince Weaver wrote: > > > > > > > > > > > > > > perf stat -a -e amd_nb/config=0x37,config1=0x20/ /bin/ls > > > >

Re: perf: fuzzer crashes immediately on AMD system

2016-08-24 Thread Ingo Molnar
* Vince Weaver wrote: > On Tue, 23 Aug 2016, Peter Zijlstra wrote: > > > On Mon, Aug 22, 2016 at 10:54:32PM -0400, Vince Weaver wrote: > > > > > > > > > > > > > > perf stat -a -e amd_nb/config=0x37,config1=0x20/ /bin/ls > > > > amd_uncore_find_online_sibling() > > > > function is

Re: perf: fuzzer crashes immediately on AMD system

2016-08-23 Thread Vince Weaver
On Tue, 23 Aug 2016, Peter Zijlstra wrote: > On Mon, Aug 22, 2016 at 10:54:32PM -0400, Vince Weaver wrote: > > > > > > > > > > > > perf stat -a -e amd_nb/config=0x37,config1=0x20/ /bin/ls > > > amd_uncore_find_online_sibling() > > > function is broken. > > > > and that's the problem.

Re: perf: fuzzer crashes immediately on AMD system

2016-08-23 Thread Vince Weaver
On Tue, 23 Aug 2016, Peter Zijlstra wrote: > On Mon, Aug 22, 2016 at 10:54:32PM -0400, Vince Weaver wrote: > > > > > > > > > > > > perf stat -a -e amd_nb/config=0x37,config1=0x20/ /bin/ls > > > amd_uncore_find_online_sibling() > > > function is broken. > > > > and that's the problem.

Re: perf: fuzzer crashes immediately on AMD system

2016-08-23 Thread Peter Zijlstra
On Mon, Aug 22, 2016 at 10:54:32PM -0400, Vince Weaver wrote: > > > > > > > > > > perf stat -a -e amd_nb/config=0x37,config1=0x20/ /bin/ls > > amd_uncore_find_online_sibling() > > function is broken. > > and that's the problem. uncore_find_online_sibling() does all kinds of > wrong

Re: perf: fuzzer crashes immediately on AMD system

2016-08-23 Thread Peter Zijlstra
On Mon, Aug 22, 2016 at 10:54:32PM -0400, Vince Weaver wrote: > > > > > > > > > > perf stat -a -e amd_nb/config=0x37,config1=0x20/ /bin/ls > > amd_uncore_find_online_sibling() > > function is broken. > > and that's the problem. uncore_find_online_sibling() does all kinds of > wrong

Re: perf: fuzzer crashes immediately on AMD system

2016-08-22 Thread Vince Weaver
> > > > > > > > perf stat -a -e amd_nb/config=0x37,config1=0x20/ /bin/ls > amd_uncore_find_online_sibling() > function is broken. and that's the problem. uncore_find_online_sibling() does all kinds of wrong things including sticking active uncore structures in

Re: perf: fuzzer crashes immediately on AMD system

2016-08-22 Thread Vince Weaver
> > > > > > > > perf stat -a -e amd_nb/config=0x37,config1=0x20/ /bin/ls > amd_uncore_find_online_sibling() > function is broken. and that's the problem. uncore_find_online_sibling() does all kinds of wrong things including sticking active uncore structures in

Re: perf: fuzzer crashes immediately on AMD system

2016-08-22 Thread Vince Weaver
On Mon, 22 Aug 2016, Huang Rui wrote: > Hi Peter, Vince > > On Fri, Aug 19, 2016 at 12:01:30PM +0200, Peter Zijlstra wrote: > > On Thu, Aug 18, 2016 at 10:46:31AM -0400, Vince Weaver wrote: > > > On Thu, 18 Aug 2016, Vince Weaver wrote: > > > > > > > Tried the perf_fuzzer on my A10

Re: perf: fuzzer crashes immediately on AMD system

2016-08-22 Thread Vince Weaver
On Mon, 22 Aug 2016, Huang Rui wrote: > Hi Peter, Vince > > On Fri, Aug 19, 2016 at 12:01:30PM +0200, Peter Zijlstra wrote: > > On Thu, Aug 18, 2016 at 10:46:31AM -0400, Vince Weaver wrote: > > > On Thu, 18 Aug 2016, Vince Weaver wrote: > > > > > > > Tried the perf_fuzzer on my A10

Re: perf: fuzzer crashes immediately on AMD system

2016-08-22 Thread Huang Rui
Hi Peter, Vince On Fri, Aug 19, 2016 at 12:01:30PM +0200, Peter Zijlstra wrote: > On Thu, Aug 18, 2016 at 10:46:31AM -0400, Vince Weaver wrote: > > On Thu, 18 Aug 2016, Vince Weaver wrote: > > > > > Tried the perf_fuzzer on my A10 fam15h/model13h system with 4.8-rc2 and it > > > falls over more

Re: perf: fuzzer crashes immediately on AMD system

2016-08-22 Thread Huang Rui
Hi Peter, Vince On Fri, Aug 19, 2016 at 12:01:30PM +0200, Peter Zijlstra wrote: > On Thu, Aug 18, 2016 at 10:46:31AM -0400, Vince Weaver wrote: > > On Thu, 18 Aug 2016, Vince Weaver wrote: > > > > > Tried the perf_fuzzer on my A10 fam15h/model13h system with 4.8-rc2 and it > > > falls over more

Re: perf: fuzzer crashes immediately on AMD system

2016-08-19 Thread Vince Weaver
On Fri, 19 Aug 2016, Peter Zijlstra wrote: > On Thu, Aug 18, 2016 at 10:46:31AM -0400, Vince Weaver wrote: > > On Thu, 18 Aug 2016, Vince Weaver wrote: > > > > > Tried the perf_fuzzer on my A10 fam15h/model13h system with 4.8-rc2 and it > > > falls over more or less immediately. > > > > > >

Re: perf: fuzzer crashes immediately on AMD system

2016-08-19 Thread Vince Weaver
On Fri, 19 Aug 2016, Peter Zijlstra wrote: > On Thu, Aug 18, 2016 at 10:46:31AM -0400, Vince Weaver wrote: > > On Thu, 18 Aug 2016, Vince Weaver wrote: > > > > > Tried the perf_fuzzer on my A10 fam15h/model13h system with 4.8-rc2 and it > > > falls over more or less immediately. > > > > > >

Re: perf: fuzzer crashes immediately on AMD system

2016-08-19 Thread Vince Weaver
On Fri, 19 Aug 2016, Vince Weaver wrote: > OK, this is weird. I rebooted (didn't patch the kernel, just rebooted) > and I can't reproduce the original problem at all. I rebooted three more times (after perf_fuzzer turned up a more boring probably known dump, shown at end) and now I am hitting

Re: perf: fuzzer crashes immediately on AMD system

2016-08-19 Thread Vince Weaver
On Fri, 19 Aug 2016, Vince Weaver wrote: > OK, this is weird. I rebooted (didn't patch the kernel, just rebooted) > and I can't reproduce the original problem at all. I rebooted three more times (after perf_fuzzer turned up a more boring probably known dump, shown at end) and now I am hitting

Re: perf: fuzzer crashes immediately on AMD system

2016-08-19 Thread Vince Weaver
On Fri, 19 Aug 2016, Peter Zijlstra wrote: > On Thu, Aug 18, 2016 at 10:46:31AM -0400, Vince Weaver wrote: > > On Thu, 18 Aug 2016, Vince Weaver wrote: > > > > > Tried the perf_fuzzer on my A10 fam15h/model13h system with 4.8-rc2 and it > > > falls over more or less immediately. > > > > > >

Re: perf: fuzzer crashes immediately on AMD system

2016-08-19 Thread Vince Weaver
On Fri, 19 Aug 2016, Peter Zijlstra wrote: > On Thu, Aug 18, 2016 at 10:46:31AM -0400, Vince Weaver wrote: > > On Thu, 18 Aug 2016, Vince Weaver wrote: > > > > > Tried the perf_fuzzer on my A10 fam15h/model13h system with 4.8-rc2 and it > > > falls over more or less immediately. > > > > > >

Re: perf: fuzzer crashes immediately on AMD system

2016-08-19 Thread Peter Zijlstra
On Fri, Aug 19, 2016 at 12:01:30PM +0200, Peter Zijlstra wrote: > On Thu, Aug 18, 2016 at 10:46:31AM -0400, Vince Weaver wrote: > > On Thu, 18 Aug 2016, Vince Weaver wrote: > > > > > Tried the perf_fuzzer on my A10 fam15h/model13h system with 4.8-rc2 and it > > > falls over more or less

Re: perf: fuzzer crashes immediately on AMD system

2016-08-19 Thread Peter Zijlstra
On Fri, Aug 19, 2016 at 12:01:30PM +0200, Peter Zijlstra wrote: > On Thu, Aug 18, 2016 at 10:46:31AM -0400, Vince Weaver wrote: > > On Thu, 18 Aug 2016, Vince Weaver wrote: > > > > > Tried the perf_fuzzer on my A10 fam15h/model13h system with 4.8-rc2 and it > > > falls over more or less

Re: perf: fuzzer crashes immediately on AMD system

2016-08-19 Thread Peter Zijlstra
On Thu, Aug 18, 2016 at 10:46:31AM -0400, Vince Weaver wrote: > On Thu, 18 Aug 2016, Vince Weaver wrote: > > > Tried the perf_fuzzer on my A10 fam15h/model13h system with 4.8-rc2 and it > > falls over more or less immediately. > > > > This maps to variable_test_bit() > > called by ctx =

Re: perf: fuzzer crashes immediately on AMD system

2016-08-19 Thread Peter Zijlstra
On Thu, Aug 18, 2016 at 10:46:31AM -0400, Vince Weaver wrote: > On Thu, 18 Aug 2016, Vince Weaver wrote: > > > Tried the perf_fuzzer on my A10 fam15h/model13h system with 4.8-rc2 and it > > falls over more or less immediately. > > > > This maps to variable_test_bit() > > called by ctx =

Re: perf: fuzzer crashes immediately on AMD system

2016-08-18 Thread Vince Weaver
On Thu, 18 Aug 2016, Vince Weaver wrote: > Tried the perf_fuzzer on my A10 fam15h/model13h system with 4.8-rc2 and it > falls over more or less immediately. > > This maps to variable_test_bit() > called by ctx = find_get_context(pmu, task, event); > in

Re: perf: fuzzer crashes immediately on AMD system

2016-08-18 Thread Vince Weaver
On Thu, 18 Aug 2016, Vince Weaver wrote: > Tried the perf_fuzzer on my A10 fam15h/model13h system with 4.8-rc2 and it > falls over more or less immediately. > > This maps to variable_test_bit() > called by ctx = find_get_context(pmu, task, event); > in

perf: fuzzer crashes immediately on AMD system

2016-08-18 Thread Vince Weaver
Tried the perf_fuzzer on my A10 fam15h/model13h system with 4.8-rc2 and it falls over more or less immediately. This maps to variable_test_bit() called by ctx = find_get_context(pmu, task, event); in kernel/events/core.c:9467 It happens quickly enough I can probably

perf: fuzzer crashes immediately on AMD system

2016-08-18 Thread Vince Weaver
Tried the perf_fuzzer on my A10 fam15h/model13h system with 4.8-rc2 and it falls over more or less immediately. This maps to variable_test_bit() called by ctx = find_get_context(pmu, task, event); in kernel/events/core.c:9467 It happens quickly enough I can probably