Re: kernel BUG at mm/usercopy.c:72!

2017-05-18 Thread Balbir Singh
On Thu, May 18, 2017 at 8:16 PM, Michael Ellerman wrote: > Kees Cook writes: >> On Tue, May 16, 2017 at 4:09 AM, Michael Ellerman >> wrote: >>> Yeah it looks like powerpc also suffers from the same bug that arm64 >>> used to, ie.

Re: kernel BUG at mm/usercopy.c:72!

2017-05-18 Thread Michael Ellerman
Breno Leitao writes: > Hello, > > Kernel 4.12-rc1 is showing a bug when I try it on a POWER8 virtual > machine. Justing SSHing into the machine causes this issue. Can you try this? cheers diff --git a/arch/powerpc/include/asm/page.h b/arch/powerpc/include/asm/page.h index

Re: kernel BUG at mm/usercopy.c:72!

2017-05-18 Thread Michael Ellerman
Kees Cook writes: > On Tue, May 16, 2017 at 4:09 AM, Michael Ellerman wrote: >> Yeah it looks like powerpc also suffers from the same bug that arm64 >> used to, ie. virt_addr_valid() will return true for some vmalloc >> addresses. >> >>

Re: kernel BUG at mm/usercopy.c:72!

2017-05-17 Thread Michael Ellerman
el memory overwrite attempt detected to >>>> d00003d80030 (mm_struct) (560 bytes) >>>> [23.138195] [ cut here ] >>>> [23.138229] kernel BUG at mm/usercopy.c:72! >>>> [23.138252] Oops: Exception in kernel mode, sig: 5 [#3]

Re: kernel BUG at mm/usercopy.c:72!

2017-05-17 Thread Balbir Singh
> > Kees, depending on how that turns out we may ask you to revert > > 517e1fbeb65f ("mm/usercopy: Drop extra is_vmalloc_or_module() check"). > > That's fine by me. Let me know what you think would be best. > > Laura, I don't see much harm in putting this back in place. It seems > like it's just

Re: kernel BUG at mm/usercopy.c:72!

2017-05-16 Thread Breno Leitao
ue. > > > > [23.138124] usercopy: kernel memory overwrite attempt detected to > > d3d80030 (mm_struct) (560 bytes) > > [23.138195] --------[ cut here ]---- > > [23.138229] kernel BUG at mm/usercopy.c:72! > > [23.138252] Oops: Ex

Re: kernel BUG at mm/usercopy.c:72!

2017-05-16 Thread Laura Abbott
showing a bug when I try it on a POWER8 virtual >>> machine. Justing SSHing into the machine causes this issue. >>> >>> [23.138124] usercopy: kernel memory overwrite attempt detected to >>> d3d80030 (mm_struct) (560 bytes) >>>

Re: kernel BUG at mm/usercopy.c:72!

2017-05-16 Thread Kees Cook
ing SSHing into the machine causes this issue. >> >> [23.138124] usercopy: kernel memory overwrite attempt detected to >> d3d80030 (mm_struct) (560 bytes) >> [23.138195] --------[ cut here ] >> [23.138229] kernel BUG at mm/use

Re: kernel BUG at mm/usercopy.c:72!

2017-05-16 Thread Michael Ellerman
erwrite attempt detected to > d3d80030 (mm_struct) (560 bytes) > [23.138195] [ cut here ]-------- > [23.138229] kernel BUG at mm/usercopy.c:72! > [23.138252] Oops: Exception in kernel mode, sig: 5 [#3] > [23.138280] SMP NR_CPUS=2048 > [23

Re: kernel BUG at mm/usercopy.c:72!

2017-05-16 Thread Michael Ellerman
0003d80030 (mm_struct) (560 bytes) > [23.138195] [ cut here ]-------- > [23.138229] kernel BUG at mm/usercopy.c:72! > [23.138252] Oops: Exception in kernel mode, sig: 5 [#3] > [23.138280] SMP NR_CPUS=2048 > [23.138280] NUMA > [2

Re: kernel BUG at mm/usercopy.c:72!

2017-05-15 Thread Anshuman Khandual
chine. Justing SSHing into the machine causes this issue. >>> >>> [23.138124] usercopy: kernel memory overwrite attempt detected to >>> d3d80030 (mm_struct) (560 bytes) >>> [23.138195] --------[ cut here ] >>> [23.138229] kern

Re: kernel BUG at mm/usercopy.c:72!

2017-05-15 Thread Balbir Singh
; > [23.138124] usercopy: kernel memory overwrite attempt detected to > > d3d80030 (mm_struct) (560 bytes) > > [23.138195] ----[ cut here ]---- > > [23.138229] kernel BUG at mm/usercopy.c:72! > > [23.138252] Oops: Exception i

Re: kernel BUG at mm/usercopy.c:72!

2017-05-15 Thread Anshuman Khandual
0003d80030 (mm_struct) (560 bytes) > [23.138195] [ cut here ]---- > [23.138229] kernel BUG at mm/usercopy.c:72! > [23.138252] Oops: Exception in kernel mode, sig: 5 [#3] > [23.138280] SMP NR_CPUS=2048 > [23.138280] NUMA >

kernel BUG at mm/usercopy.c:72!

2017-05-15 Thread Breno Leitao
] [23.138229] kernel BUG at mm/usercopy.c:72! [23.138252] Oops: Exception in kernel mode, sig: 5 [#3] [23.138280] SMP NR_CPUS=2048 [23.138280] NUMA [23.138302] pSeries [23.138330] Modules linked in: [23.138354] CPU: 4 PID: 2215 Comm