]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/book3s64/pkeys: Prevent key 1 modification from userspace.
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Thu, 9 Jul 2020 03:29:30 +0000 (08:59 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 20 Jul 2020 12:57:58 +0000 (22:57 +1000)
commit2bf5b047032c5f0af69b467e0802e3f8aac2ec63
tree54ac6e0f1d0f3dffb4d2117aa6ffa9806e7c7d4a
parenta934645f54a50fd8f77d167c660f141bc3ac149f
powerpc/book3s64/pkeys: Prevent key 1 modification from userspace.

Key 1 is marked reserved by ISA. Setup uamor to prevent userspace modification
of the same.

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/20200709032946.881753-8-aneesh.kumar@linux.ibm.com
arch/powerpc/mm/book3s64/pkeys.c