Re: [PATCH v2 1/2] powerpc: Fix virt_addr_valid() check

2022-01-19 Thread Christophe Leroy
Le 19/01/2022 à 02:15, Kefeng Wang a écrit : > > On 2022/1/11 14:04, Christophe Leroy wrote: >> >> Le 11/01/2022 à 05:37, Nicholas Piggin a écrit : >>> Excerpts from Kefeng Wang's message of January 8, 2022 9:58 pm: Hi PPC maintainers, ping.. >>> Hmm. I might have confused myself about this

Re: [PATCH v2 1/2] powerpc: Fix virt_addr_valid() check

2022-01-10 Thread Christophe Leroy
Le 11/01/2022 à 05:37, Nicholas Piggin a écrit : > Excerpts from Kefeng Wang's message of January 8, 2022 9:58 pm: >> Hi PPC maintainers, ping.. > > Hmm. I might have confused myself about this. I'm going back and > trying to work out what I was thinking when I suggested it. This > works on 64e

Re: [PATCH v2 1/2] powerpc: Fix virt_addr_valid() check

2022-01-10 Thread Nicholas Piggin
Excerpts from Kefeng Wang's message of January 8, 2022 9:58 pm: > Hi PPC maintainers, ping.. Hmm. I might have confused myself about this. I'm going back and trying to work out what I was thinking when I suggested it. This works on 64e because vmalloc space is below the kernel linear map, right?

Re: [PATCH v2 1/2] powerpc: Fix virt_addr_valid() check

2022-01-10 Thread Christophe Leroy
Le 25/12/2021 à 13:06, Kefeng Wang a écrit : > When run ethtool eth0, the BUG occurred, > >usercopy: Kernel memory exposure attempt detected from SLUB object not in > SLUB page?! (offset 0, size 1048)! >kernel BUG at mm/usercopy.c:99 >... >usercopy_abort+0x64/0xa0 (unreliable) >