diff options
author | Laura Abbott <lauraa@codeaurora.org> | 2014-06-25 23:55:03 +0100 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2014-07-09 12:23:48 +0100 |
commit | c0c264ae5112d1cdb7d37d4e208b7a7e766a7418 (patch) | |
tree | 6e9de5e48ed2b0b91e4a371d53eda59ff578a5f9 /arch/arm64/kernel/process.c | |
parent | 4e6f7084096c08e37f909d7b075a91b72580405f (diff) | |
download | op-kernel-dev-c0c264ae5112d1cdb7d37d4e208b7a7e766a7418.zip op-kernel-dev-c0c264ae5112d1cdb7d37d4e208b7a7e766a7418.tar.gz |
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.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm64/kernel/process.c b/arch/arm64/kernel/process.c index 43b7c34..1309d64 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) { /* |