powerpc: check key protection for user page access
authorRam Pai <linuxram@us.ibm.com>
Fri, 19 Jan 2018 01:50:38 +0000 (17:50 -0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 20 Jan 2018 11:59:04 +0000 (22:59 +1100)
commitbca7aacfe8be121ecefb3be609420220b0820c2c
tree8e49c046113a0e78973ccadb354507715d2a790c
parentf2407ef3ba225665ee24965f69bc84435fb590cf
powerpc: check key protection for user page access

Make sure that the kernel does not access user pages without
checking their key-protection.

Signed-off-by: Ram Pai <linuxram@us.ibm.com>
[mpe: Integrate with upstream version of pte_access_permitted()]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/book3s/64/pgtable.h