]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/8xx: Activate KUEP at all time
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Tue, 19 Oct 2021 07:29:13 +0000 (09:29 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 9 Dec 2021 11:41:17 +0000 (22:41 +1100)
commitc4b93195a345a2393c8875ec3d7c5182c710125b
tree9fa4157708c5765962619f71fce6f866dfd68abd
parenta852ebe89a7335136dede3d1c74ff529f9d58a80
powerpc/8xx: Activate KUEP at all time

On the 8xx, there is absolutely no runtime impact with KUEP. Protection
against execution of user code in kernel mode is set up at boot time
by configuring the groups with contain all user pages as having swapped
protection rights, in extenso EX for user and NA for supervisor.

Configure KUEP at startup and force selection of CONFIG_PPC_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/2129e86944323ffe9ed07fffbeafdfd2e363690a.1634627931.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/nohash/32/mmu-8xx.h
arch/powerpc/mm/nohash/8xx.c
arch/powerpc/platforms/Kconfig.cputype