From: Christophe Leroy Date: Wed, 15 Apr 2020 14:57:11 +0000 (+0000) Subject: powerpc/uaccess: Don't set KUEP by default on book3s/32 X-Git-Tag: v5.8-rc1~132^2~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c3ba4dbbd1d05b49ec01efe098e0a78857d3ce22;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/1492bb150c1aaa53d99a604b49992e60ea20cd5f.1586962582.git.christophe.leroy@c-s.fr --- diff --git a/arch/powerpc/platforms/Kconfig.cputype b/arch/powerpc/platforms/Kconfig.cputype index 9a7baf31d2769..d349603fb8890 100644 --- a/arch/powerpc/platforms/Kconfig.cputype +++ b/arch/powerpc/platforms/Kconfig.cputype @@ -377,7 +377,7 @@ config PPC_HAVE_KUEP config PPC_KUEP bool "Kernel Userspace Execution Prevention" depends on PPC_HAVE_KUEP - default y + default y if !PPC_BOOK3S_32 help Enable support for Kernel Userspace Execution Prevention (KUEP)