summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/Kconfig
diff options
context:
space:
mode:
authorKees Cook2016-06-24 00:10:01 +0200
committerKees Cook2016-07-26 23:41:51 +0200
commit1d3c1324746fed0e34a5b94d3ed303e7521ed603 (patch)
treed66dc4264cc9e9ac2832e463d8ba24ebf46d65f9 /arch/powerpc/Kconfig
parentia64/uaccess: Enable hardened usercopy (diff)
downloadkernel-qcow2-linux-1d3c1324746fed0e34a5b94d3ed303e7521ed603.tar.gz
kernel-qcow2-linux-1d3c1324746fed0e34a5b94d3ed303e7521ed603.tar.xz
kernel-qcow2-linux-1d3c1324746fed0e34a5b94d3ed303e7521ed603.zip
powerpc/uaccess: Enable hardened usercopy
Enables CONFIG_HARDENED_USERCOPY checks on powerpc. Based on code from PaX and grsecurity. Signed-off-by: Kees Cook <keescook@chromium.org> Tested-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/Kconfig')
-rw-r--r--arch/powerpc/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index 0a9d439bcda6..0ac48a81632d 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -164,6 +164,7 @@ config PPC
select ARCH_HAS_UBSAN_SANITIZE_ALL
select ARCH_SUPPORTS_DEFERRED_STRUCT_PAGE_INIT
select HAVE_LIVEPATCH if HAVE_DYNAMIC_FTRACE_WITH_REGS
+ select HAVE_ARCH_HARDENED_USERCOPY
config GENERIC_CSUM
def_bool CPU_LITTLE_ENDIAN