]> 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)
commit97aacc32b5e684b3107953b04a3fd187e2224324
tree37caff45bf740f9658442199797cbb85f678111b
parentd9537011e7b8e4320b071262ef3e2d1d8eba9ca8
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