]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/44x: Implement Kernel Userspace Exec Protection (KUEP)
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Wed, 2 Jun 2021 06:42:10 +0000 (06:42 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 16 Jun 2021 14:09:07 +0000 (00:09 +1000)
commitffbccd83cc4c31742d96a486fd5db969f1bccbdc
tree47e29ca6d4f4828409d3c64d9a4f5493d13608fa
parent8ff0809b41b425ea65feb04e70974b5143f98e57
powerpc/44x: Implement Kernel Userspace Exec Protection (KUEP)

Powerpc 44x has two bits for exec protection in TLBs: one
for user (UX) and one for superviser (SX).

Clear SX on user pages in TLB miss handlers to provide KUEP.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/169310e08152aa1d96c979770291d165ec6896ae.1622616032.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/nohash/32/mmu-44x.h
arch/powerpc/kernel/head_44x.S
arch/powerpc/mm/nohash/44x.c
arch/powerpc/platforms/Kconfig.cputype