]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pkeys: Avoid using lockless page table walk
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Tue, 5 May 2020 07:17:08 +0000 (12:47 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 5 May 2020 11:20:13 +0000 (21:20 +1000)
commit6fe31c4b9d9f2271302f5b0476f37734e1120c9e
tree37caff45bf740f9658442199797cbb85f678111b
parentfd6bec7268f20578558a5e1e51f0d21d7bc1c1b3
powerpc/pkeys: Avoid using lockless page table walk

Fetch pkey from vma instead of linux page table. Also document the fact that in
some cases the pkey returned in siginfo won't be the same as the one we took
keyfault on. Even with linux page table walk, we can end up in a similar scenario.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200505071729.54912-2-aneesh.kumar@linux.ibm.com
arch/powerpc/include/asm/mmu.h
arch/powerpc/mm/book3s64/hash_utils.c
arch/powerpc/mm/fault.c