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)
commitfe4a6856cb4f4353a6cb8d3629bcfe9204e3d57d
tree37caff45bf740f9658442199797cbb85f678111b
parent93a98695f2f9f9c48a29ab6249334fdc6e9722cb
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