summaryrefslogtreecommitdiffstats
path: root/arch/arm64/kernel/process.c
diff options
context:
space:
mode:
authorLaura Abbott <lauraa@codeaurora.org>2014-06-26 00:55:03 +0200
committerCatalin Marinas <catalin.marinas@arm.com>2014-07-09 13:23:48 +0200
commitc0c264ae5112d1cdb7d37d4e208b7a7e766a7418 (patch)
tree6e9de5e48ed2b0b91e4a371d53eda59ff578a5f9 /arch/arm64/kernel/process.c
parentarm64: topology: add MPIDR-based detection (diff)
downloadlinux-c0c264ae5112d1cdb7d37d4e208b7a7e766a7418.tar.xz
linux-c0c264ae5112d1cdb7d37d4e208b7a7e766a7418.zip
arm64: Add CONFIG_CC_STACKPROTECTOR
arm64 currently lacks support for -fstack-protector. Add similar functionality to arm to detect stack corruption. Acked-by: Will Deacon <will.deacon@arm.com> Acked-by: Kees Cook <keescook@chromium.org> Signed-off-by: Laura Abbott <lauraa@codeaurora.org> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/kernel/process.c')
-rw-r--r--arch/arm64/kernel/process.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm64/kernel/process.c b/arch/arm64/kernel/process.c
index 43b7c34f92cb..1309d64aa926 100644
--- a/arch/arm64/kernel/process.c
+++ b/arch/arm64/kernel/process.c
@@ -51,6 +51,12 @@
#include <asm/processor.h>
#include <asm/stacktrace.h>
+#ifdef CONFIG_CC_STACKPROTECTOR
+#include <linux/stackprotector.h>
+unsigned long __stack_chk_guard __read_mostly;
+EXPORT_SYMBOL(__stack_chk_guard);
+#endif
+
static void setup_restart(void)
{
/*