Re: perf_fuzzer compiled for x32 causes reboot

2014-02-25 Thread H. Peter Anvin
#2 is what I really don't understand. I worry something else is going on there On February 25, 2014 6:07:51 AM PST, Vince Weaver wrote: >On Mon, 24 Feb 2014, H. Peter Anvin wrote: > >> On 02/24/2014 11:30 AM, Peter Zijlstra wrote: >> > On Mon, Feb 24, 2014 at 02:13:29PM -0500, Steven Rostedt

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-25 Thread Vince Weaver
On Mon, 24 Feb 2014, H. Peter Anvin wrote: > On 02/24/2014 11:30 AM, Peter Zijlstra wrote: > > On Mon, Feb 24, 2014 at 02:13:29PM -0500, Steven Rostedt wrote: > >> Ah, and x86_64 saves off the cr2 register when entering NMI and restores > >> it before returning. But it seems to be missing from

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-25 Thread Vince Weaver
On Mon, 24 Feb 2014, H. Peter Anvin wrote: On 02/24/2014 11:30 AM, Peter Zijlstra wrote: On Mon, Feb 24, 2014 at 02:13:29PM -0500, Steven Rostedt wrote: Ah, and x86_64 saves off the cr2 register when entering NMI and restores it before returning. But it seems to be missing from the i386

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-25 Thread H. Peter Anvin
#2 is what I really don't understand. I worry something else is going on there On February 25, 2014 6:07:51 AM PST, Vince Weaver vincent.wea...@maine.edu wrote: On Mon, 24 Feb 2014, H. Peter Anvin wrote: On 02/24/2014 11:30 AM, Peter Zijlstra wrote: On Mon, Feb 24, 2014 at 02:13:29PM -0500,

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-25 Thread Steven Rostedt
On Tue, 25 Feb 2014 06:34:55 -0800 H. Peter Anvin h...@zytor.com wrote: #2 is what I really don't understand. I worry something else is going on there Yeah, me too. -- Steve While the missing cr2 issue made debugging frustrating, I find the other aspects of the bug more serious:

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-25 Thread Vince Weaver
On Tue, 25 Feb 2014, Steven Rostedt wrote: On Tue, 25 Feb 2014 06:34:55 -0800 H. Peter Anvin h...@zytor.com wrote: #2 is what I really don't understand. I worry something else is going on there Yeah, me too. OK, well I'll work on isolating that next, I was hoping the segfault

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-24 Thread H. Peter Anvin
On 02/24/2014 11:30 AM, Peter Zijlstra wrote: > On Mon, Feb 24, 2014 at 02:13:29PM -0500, Steven Rostedt wrote: >> Ah, and x86_64 saves off the cr2 register when entering NMI and restores >> it before returning. But it seems to be missing from the i386 code. > > arch/x86/kernel/nmi.c: > >

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-24 Thread Steven Rostedt
On Mon, 24 Feb 2014 20:30:43 +0100 Peter Zijlstra wrote: > On Mon, Feb 24, 2014 at 02:13:29PM -0500, Steven Rostedt wrote: > > Ah, and x86_64 saves off the cr2 register when entering NMI and restores > > it before returning. But it seems to be missing from the i386 code. > >

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-24 Thread Peter Zijlstra
On Mon, Feb 24, 2014 at 02:13:29PM -0500, Steven Rostedt wrote: > Ah, and x86_64 saves off the cr2 register when entering NMI and restores > it before returning. But it seems to be missing from the i386 code. arch/x86/kernel/nmi.c: #define nmi_nesting_preprocess(regs)

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-24 Thread H. Peter Anvin
On 02/24/2014 11:13 AM, Steven Rostedt wrote: >> >> Either way, it really seems like we have a case of CR2 leakage out of >> the NMI context. > > Ah, and x86_64 saves off the cr2 register when entering NMI and restores > it before returning. But it seems to be missing from the i386 code. > OK,

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-24 Thread Steven Rostedt
On Mon, 24 Feb 2014 10:34:13 -0800 "H. Peter Anvin" wrote: > On 02/24/2014 10:07 AM, Vince Weaver wrote: > >> > >> Anyway I've attached the full tail end of the trace if you want to see > >> everything that happens. > > > > and then I note there are *two* kernel page faults. > > > >

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-24 Thread H. Peter Anvin
On 02/24/2014 10:07 AM, Vince Weaver wrote: >> >> Anyway I've attached the full tail end of the trace if you want to see >> everything that happens. > > and then I note there are *two* kernel page faults. > > perf_fuzzer-2979 [000] 161.475924: page_fault_kernel: >

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-24 Thread Vince Weaver
On Mon, 24 Feb 2014, Vince Weaver wrote: > On Mon, 24 Feb 2014, H. Peter Anvin wrote: > > > On 02/24/2014 09:32 AM, Vince Weaver wrote: > > >> > > >> Peter, does x32 have a slightly different ABI/calling convention that > > >> would make any of these patches just slightly 'off'? > > > > > > I

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-24 Thread H. Peter Anvin
On 02/24/2014 09:25 AM, Peter Zijlstra wrote: >> >> What is likely happening is the user page fault is triggering >> code to do a "perf_callchain" dump, which is calling copy_from_user_nmi() >> which calls copy_user_generic_string() which is somehow getting the user >> RBP in the RDI register

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-24 Thread H. Peter Anvin
On 02/24/2014 09:41 AM, Vince Weaver wrote: > On Mon, 24 Feb 2014, Vince Weaver wrote: > >> I do note that >> perf_callchain_user(); >> >> Does >> fp = (void __user *)regs->bp; >> >> ... >> >> bytes = copy_from_user_nmi(, fp, sizeof(frame)); >> >> >> And in my

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-24 Thread Peter Zijlstra
On Mon, Feb 24, 2014 at 12:32:39PM -0500, Vince Weaver wrote: > I do note that > perf_callchain_user(); > > Does > fp = (void __user *)regs->bp; > > ... > > bytes = copy_from_user_nmi(, fp, sizeof(frame)); > > > And in my particular executable RBP has nothing to

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-24 Thread H. Peter Anvin
On 02/24/2014 09:32 AM, Vince Weaver wrote: >> >> Peter, does x32 have a slightly different ABI/calling convention that >> would make any of these patches just slightly 'off'? > > I do note that > perf_callchain_user(); > > Does > fp = (void __user *)regs->bp; > > ... >

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-24 Thread Vince Weaver
On Mon, 24 Feb 2014, Vince Weaver wrote: > I do note that > perf_callchain_user(); > > Does > fp = (void __user *)regs->bp; > > ... > > bytes = copy_from_user_nmi(, fp, sizeof(frame)); > > > And in my particular executable RBP has nothing to do with a frame >

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-24 Thread Vince Weaver
On Mon, 24 Feb 2014, Peter Zijlstra wrote: > On Mon, Feb 24, 2014 at 12:10:44PM -0500, Vince Weaver wrote: > > On Mon, 24 Feb 2014, H. Peter Anvin wrote: > > > > > On February 24, 2014 8:34:30 AM PST, Vince Weaver > > > wrote: > > > >On Mon, 24 Feb 2014, Vince Weaver wrote: > > > > > > > >>

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-24 Thread Peter Zijlstra
On Mon, Feb 24, 2014 at 12:10:44PM -0500, Vince Weaver wrote: > On Mon, 24 Feb 2014, H. Peter Anvin wrote: > > > On February 24, 2014 8:34:30 AM PST, Vince Weaver > > wrote: > > >On Mon, 24 Feb 2014, Vince Weaver wrote: > > > > > >> Just touching the mmap page with a write of a single byte (it

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-24 Thread Vince Weaver
On Mon, 24 Feb 2014, H. Peter Anvin wrote: > On February 24, 2014 8:34:30 AM PST, Vince Weaver > wrote: > >On Mon, 24 Feb 2014, Vince Weaver wrote: > > > >> Just touching the mmap page with a write of a single byte (it doesn't > > > >> matter where) is enough to trigger the bug. > > > >OK,

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-24 Thread H. Peter Anvin
Ok, so the obvious question is what is at that kernel address? On February 24, 2014 8:34:30 AM PST, Vince Weaver wrote: >On Mon, 24 Feb 2014, Vince Weaver wrote: > >> Just touching the mmap page with a write of a single byte (it doesn't > >> matter where) is enough to trigger the bug. > >OK,

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-24 Thread Vince Weaver
On Mon, 24 Feb 2014, Vince Weaver wrote: > Just touching the mmap page with a write of a single byte (it doesn't > matter where) is enough to trigger the bug. OK, investigating this more. perf_fuzzer-2971 [000] 154.944114: page_fault_user: address=0xf7729000 ip=0x41efab

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-24 Thread Vince Weaver
On Sun, 23 Feb 2014, H. Peter Anvin wrote: > So we do a write to the buffer rather immediately before this happens, > and in particular that will update the head: > > rb->user_page->data_head = head; > > However, that doesn't explain what is going on and in particular the > write to

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-24 Thread Vince Weaver
On Sun, 23 Feb 2014, H. Peter Anvin wrote: So we do a write to the buffer rather immediately before this happens, and in particular that will update the head: rb-user_page-data_head = head; However, that doesn't explain what is going on and in particular the write to whatever

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-24 Thread Vince Weaver
On Mon, 24 Feb 2014, Vince Weaver wrote: Just touching the mmap page with a write of a single byte (it doesn't matter where) is enough to trigger the bug. OK, investigating this more. perf_fuzzer-2971 [000] 154.944114: page_fault_user: address=0xf7729000 ip=0x41efab

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-24 Thread H. Peter Anvin
Ok, so the obvious question is what is at that kernel address? On February 24, 2014 8:34:30 AM PST, Vince Weaver vincent.wea...@maine.edu wrote: On Mon, 24 Feb 2014, Vince Weaver wrote: Just touching the mmap page with a write of a single byte (it doesn't matter where) is enough to trigger

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-24 Thread Vince Weaver
On Mon, 24 Feb 2014, H. Peter Anvin wrote: On February 24, 2014 8:34:30 AM PST, Vince Weaver vincent.wea...@maine.edu wrote: On Mon, 24 Feb 2014, Vince Weaver wrote: Just touching the mmap page with a write of a single byte (it doesn't matter where) is enough to trigger the bug.

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-24 Thread Peter Zijlstra
On Mon, Feb 24, 2014 at 12:10:44PM -0500, Vince Weaver wrote: On Mon, 24 Feb 2014, H. Peter Anvin wrote: On February 24, 2014 8:34:30 AM PST, Vince Weaver vincent.wea...@maine.edu wrote: On Mon, 24 Feb 2014, Vince Weaver wrote: Just touching the mmap page with a write of a single

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-24 Thread Vince Weaver
On Mon, 24 Feb 2014, Peter Zijlstra wrote: On Mon, Feb 24, 2014 at 12:10:44PM -0500, Vince Weaver wrote: On Mon, 24 Feb 2014, H. Peter Anvin wrote: On February 24, 2014 8:34:30 AM PST, Vince Weaver vincent.wea...@maine.edu wrote: On Mon, 24 Feb 2014, Vince Weaver wrote:

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-24 Thread Vince Weaver
On Mon, 24 Feb 2014, Vince Weaver wrote: I do note that perf_callchain_user(); Does fp = (void __user *)regs-bp; ... bytes = copy_from_user_nmi(frame, fp, sizeof(frame)); And in my particular executable RBP has nothing to do with a frame pointer,

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-24 Thread H. Peter Anvin
On 02/24/2014 09:32 AM, Vince Weaver wrote: Peter, does x32 have a slightly different ABI/calling convention that would make any of these patches just slightly 'off'? I do note that perf_callchain_user(); Does fp = (void __user *)regs-bp; ... bytes =

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-24 Thread Peter Zijlstra
On Mon, Feb 24, 2014 at 12:32:39PM -0500, Vince Weaver wrote: I do note that perf_callchain_user(); Does fp = (void __user *)regs-bp; ... bytes = copy_from_user_nmi(frame, fp, sizeof(frame)); And in my particular executable RBP has nothing to do with

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-24 Thread H. Peter Anvin
On 02/24/2014 09:41 AM, Vince Weaver wrote: On Mon, 24 Feb 2014, Vince Weaver wrote: I do note that perf_callchain_user(); Does fp = (void __user *)regs-bp; ... bytes = copy_from_user_nmi(frame, fp, sizeof(frame)); And in my particular executable RBP has

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-24 Thread H. Peter Anvin
On 02/24/2014 09:25 AM, Peter Zijlstra wrote: What is likely happening is the user page fault is triggering code to do a perf_callchain dump, which is calling copy_from_user_nmi() which calls copy_user_generic_string() which is somehow getting the user RBP in the RDI register somehow? So

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-24 Thread Vince Weaver
On Mon, 24 Feb 2014, Vince Weaver wrote: On Mon, 24 Feb 2014, H. Peter Anvin wrote: On 02/24/2014 09:32 AM, Vince Weaver wrote: Peter, does x32 have a slightly different ABI/calling convention that would make any of these patches just slightly 'off'? I do note that

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-24 Thread H. Peter Anvin
On 02/24/2014 10:07 AM, Vince Weaver wrote: Anyway I've attached the full tail end of the trace if you want to see everything that happens. and then I note there are *two* kernel page faults. perf_fuzzer-2979 [000] 161.475924: page_fault_kernel: address=irq_stack_union

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-24 Thread Steven Rostedt
On Mon, 24 Feb 2014 10:34:13 -0800 H. Peter Anvin h...@zytor.com wrote: On 02/24/2014 10:07 AM, Vince Weaver wrote: Anyway I've attached the full tail end of the trace if you want to see everything that happens. and then I note there are *two* kernel page faults.

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-24 Thread H. Peter Anvin
On 02/24/2014 11:13 AM, Steven Rostedt wrote: Either way, it really seems like we have a case of CR2 leakage out of the NMI context. Ah, and x86_64 saves off the cr2 register when entering NMI and restores it before returning. But it seems to be missing from the i386 code. OK, that might

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-24 Thread Peter Zijlstra
On Mon, Feb 24, 2014 at 02:13:29PM -0500, Steven Rostedt wrote: Ah, and x86_64 saves off the cr2 register when entering NMI and restores it before returning. But it seems to be missing from the i386 code. arch/x86/kernel/nmi.c: #define nmi_nesting_preprocess(regs)

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-24 Thread Steven Rostedt
On Mon, 24 Feb 2014 20:30:43 +0100 Peter Zijlstra pet...@infradead.org wrote: On Mon, Feb 24, 2014 at 02:13:29PM -0500, Steven Rostedt wrote: Ah, and x86_64 saves off the cr2 register when entering NMI and restores it before returning. But it seems to be missing from the i386 code.

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-24 Thread H. Peter Anvin
On 02/24/2014 11:30 AM, Peter Zijlstra wrote: On Mon, Feb 24, 2014 at 02:13:29PM -0500, Steven Rostedt wrote: Ah, and x86_64 saves off the cr2 register when entering NMI and restores it before returning. But it seems to be missing from the i386 code. arch/x86/kernel/nmi.c: #define

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-23 Thread H. Peter Anvin
On 02/23/2014 07:02 PM, Vince Weaver wrote: > On Sun, 23 Feb 2014, Vince Weaver wrote: >> >> and as far as I can tell nothing touches rbp again until the segfault. >> Nothing in _memset_sse2 does as far as I can tell. > > I only know enough about ftrace to be dangerous, but here is what I think

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-23 Thread Vince Weaver
On Sun, 23 Feb 2014, Vince Weaver wrote: > > and as far as I can tell nothing touches rbp again until the segfault. > Nothing in _memset_sse2 does as far as I can tell. I only know enough about ftrace to be dangerous, but here is what I think is the trace of the problem: perf_fuzzer-11492

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-23 Thread Vince Weaver
On Sat, 22 Feb 2014, H. Peter Anvin wrote: > I'd be interested in how rbp gets set, too. It might just be a > coincidence and the value in rbp has some other meaning here. The code in question does this: i=find_random_active_event(); if (i<0) return; if

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-23 Thread Vince Weaver
On Sat, 22 Feb 2014, H. Peter Anvin wrote: I'd be interested in how rbp gets set, too. It might just be a coincidence and the value in rbp has some other meaning here. The code in question does this: i=find_random_active_event(); if (i0) return; if

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-23 Thread Vince Weaver
On Sun, 23 Feb 2014, Vince Weaver wrote: and as far as I can tell nothing touches rbp again until the segfault. Nothing in _memset_sse2 does as far as I can tell. I only know enough about ftrace to be dangerous, but here is what I think is the trace of the problem: perf_fuzzer-11492

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-23 Thread H. Peter Anvin
On 02/23/2014 07:02 PM, Vince Weaver wrote: On Sun, 23 Feb 2014, Vince Weaver wrote: and as far as I can tell nothing touches rbp again until the segfault. Nothing in _memset_sse2 does as far as I can tell. I only know enough about ftrace to be dangerous, but here is what I think is the

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-22 Thread H. Peter Anvin
I'd be interested in how rbp gets set, too. It might just be a coincidence and the value in rbp has some other meaning here. On February 22, 2014 9:18:17 PM PST, Vince Weaver wrote: >On Fri, 21 Feb 2014, H. Peter Anvin wrote: > >> Error 6 reflects a write in userspace to a not-present page.

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-22 Thread H. Peter Anvin
What is the instructions around it, by any chance? On February 22, 2014 9:18:17 PM PST, Vince Weaver wrote: >On Fri, 21 Feb 2014, H. Peter Anvin wrote: > >> Error 6 reflects a write in userspace to a not-present page. >> >> Since your previous trace indicates that the value of the register in

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-22 Thread Vince Weaver
On Fri, 21 Feb 2014, H. Peter Anvin wrote: > Error 6 reflects a write in userspace to a not-present page. > > Since your previous trace indicates that the value of the register in question > is a different one, I'm guessing that what we have here is PEBS getting > activated. 0x120 is 2*0x90,

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-22 Thread Vince Weaver
On Fri, 21 Feb 2014, H. Peter Anvin wrote: Error 6 reflects a write in userspace to a not-present page. Since your previous trace indicates that the value of the register in question is a different one, I'm guessing that what we have here is PEBS getting activated. 0x120 is 2*0x90, and

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-22 Thread H. Peter Anvin
What is the instructions around it, by any chance? On February 22, 2014 9:18:17 PM PST, Vince Weaver vincent.wea...@maine.edu wrote: On Fri, 21 Feb 2014, H. Peter Anvin wrote: Error 6 reflects a write in userspace to a not-present page. Since your previous trace indicates that the value of

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-22 Thread H. Peter Anvin
I'd be interested in how rbp gets set, too. It might just be a coincidence and the value in rbp has some other meaning here. On February 22, 2014 9:18:17 PM PST, Vince Weaver vincent.wea...@maine.edu wrote: On Fri, 21 Feb 2014, H. Peter Anvin wrote: Error 6 reflects a write in userspace to a

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-21 Thread H. Peter Anvin
On 02/21/2014 08:50 PM, Vince Weaver wrote: So I changed the perf_fuzzer so when it randomly stomps all over the perf_event_mmap_page, it uses a constant value of 0xdeadbeef rather than a random value. The result is below. The segfaults make a bit more sense now, it almost looks like what is

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-21 Thread H. Peter Anvin
Those are segfaults in user space, though? On February 21, 2014 8:50:38 PM PST, Vince Weaver wrote: > >So I changed the perf_fuzzer so when it randomly stomps all over the >perf_event_mmap_page, it uses a constant value of 0xdeadbeef rather >than a random value. > >The result is below. The

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-21 Thread Vince Weaver
So I changed the perf_fuzzer so when it randomly stomps all over the perf_event_mmap_page, it uses a constant value of 0xdeadbeef rather than a random value. The result is below. The segfaults make a bit more sense now, it almost looks like what is happening is we are corrupting an address

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-21 Thread Vince Weaver
On Fri, 21 Feb 2014, Vince Weaver wrote: > On Fri, 21 Feb 2014, Vince Weaver wrote: > > > So I'm not sure who exactly to report this to. Some perf people CC'd as > > I trigger it while using the perf_fuzzer. > > > > This is with 3.14-rc3 on a core2 machine, although I've had the reboots > >

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-21 Thread Vince Weaver
cc'ing x32 people On Fri, 21 Feb 2014, Vince Weaver wrote: > So I'm not sure who exactly to report this to. Some perf people CC'd as > I trigger it while using the perf_fuzzer. > > This is with 3.14-rc3 on a core2 machine, although I've had the reboots > happen throughout at least 3.14-rc* >

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-21 Thread Vince Weaver
cc'ing x32 people On Fri, 21 Feb 2014, Vince Weaver wrote: So I'm not sure who exactly to report this to. Some perf people CC'd as I trigger it while using the perf_fuzzer. This is with 3.14-rc3 on a core2 machine, although I've had the reboots happen throughout at least 3.14-rc* I'm

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-21 Thread Vince Weaver
On Fri, 21 Feb 2014, Vince Weaver wrote: On Fri, 21 Feb 2014, Vince Weaver wrote: So I'm not sure who exactly to report this to. Some perf people CC'd as I trigger it while using the perf_fuzzer. This is with 3.14-rc3 on a core2 machine, although I've had the reboots happen

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-21 Thread Vince Weaver
So I changed the perf_fuzzer so when it randomly stomps all over the perf_event_mmap_page, it uses a constant value of 0xdeadbeef rather than a random value. The result is below. The segfaults make a bit more sense now, it almost looks like what is happening is we are corrupting an address

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-21 Thread H. Peter Anvin
Those are segfaults in user space, though? On February 21, 2014 8:50:38 PM PST, Vince Weaver vincent.wea...@maine.edu wrote: So I changed the perf_fuzzer so when it randomly stomps all over the perf_event_mmap_page, it uses a constant value of 0xdeadbeef rather than a random value. The result

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-21 Thread H. Peter Anvin
On 02/21/2014 08:50 PM, Vince Weaver wrote: So I changed the perf_fuzzer so when it randomly stomps all over the perf_event_mmap_page, it uses a constant value of 0xdeadbeef rather than a random value. The result is below. The segfaults make a bit more sense now, it almost looks like what is

<    1   2