powerpc: Add skeleton for Kernel Userspace Execution Prevention
This patch adds a skeleton for Kernel Userspace Execution Prevention. Then subarches implementing it have to define CONFIG_PPC_HAVE_KUEP and provide setup_kuep() function. Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> [mpe: Don't split strings, use pr_crit_ratelimited()] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:

committed by
Michael Ellerman

parent
69795cabe4
commit
0fb1c25ab5
@@ -345,6 +345,18 @@ config PPC_RADIX_MMU_DEFAULT
|
||||
|
||||
If you're unsure, say Y.
|
||||
|
||||
config PPC_HAVE_KUEP
|
||||
bool
|
||||
|
||||
config PPC_KUEP
|
||||
bool "Kernel Userspace Execution Prevention"
|
||||
depends on PPC_HAVE_KUEP
|
||||
default y
|
||||
help
|
||||
Enable support for Kernel Userspace Execution Prevention (KUEP)
|
||||
|
||||
If you're unsure, say Y.
|
||||
|
||||
config ARCH_ENABLE_HUGEPAGE_MIGRATION
|
||||
def_bool y
|
||||
depends on PPC_BOOK3S_64 && HUGETLB_PAGE && MIGRATION
|
||||
|
Reference in New Issue
Block a user