Skip to content

Commit c3ba4db

Browse files
chleroympe
authored andcommitted
powerpc/uaccess: Don't set KUEP by default on book3s/32
On book3s/32, KUEP is an heavy process as it requires to set/unset the NX bit in each of the 12 user segments everytime the kernel is entered/exited from/to user space. Don't select KUEP by default on book3s/32. Signed-off-by: Christophe Leroy <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/1492bb150c1aaa53d99a604b49992e60ea20cd5f.1586962582.git.christophe.leroy@c-s.fr
1 parent 547e687 commit c3ba4db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/powerpc/platforms/Kconfig.cputype

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ config PPC_HAVE_KUEP
377377
config PPC_KUEP
378378
bool "Kernel Userspace Execution Prevention"
379379
depends on PPC_HAVE_KUEP
380-
default y
380+
default y if !PPC_BOOK3S_32
381381
help
382382
Enable support for Kernel Userspace Execution Prevention (KUEP)
383383

0 commit comments

Comments
 (0)