diff options
author | Laura Abbott <labbott@redhat.com> | 2018-07-20 14:41:54 -0700 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2018-07-26 11:36:34 +0100 |
commit | 0b3e336601b82c6afa0e9cf21db9cb8793e25399 (patch) | |
tree | 1ea6cdfc5d69f4ad5ad0e60ced11decc74ed0360 /arch/arm64/Kconfig | |
parent | 8a1ccfbc9e0256baafbbce85ccdb72ec89af2aab (diff) | |
download | lwn-0b3e336601b82c6afa0e9cf21db9cb8793e25399.tar.gz lwn-0b3e336601b82c6afa0e9cf21db9cb8793e25399.zip |
arm64: Add support for STACKLEAK gcc plugin
This adds support for the STACKLEAK gcc plugin to arm64 by implementing
stackleak_check_alloca(), based heavily on the x86 version, and adding the
two helpers used by the stackleak common code: current_top_of_stack() and
on_thread_stack(). The stack erasure calls are made at syscall returns.
Additionally, this disables the plugin in hypervisor and EFI stub code,
which are out of scope for the protection.
Acked-by: Alexander Popov <alex.popov@linux.com>
Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/Kconfig')
-rw-r--r-- | arch/arm64/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 27fd50e86dfe..1494d5cfd681 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -108,6 +108,7 @@ config ARM64 select HAVE_ARCH_MMAP_RND_BITS select HAVE_ARCH_MMAP_RND_COMPAT_BITS if COMPAT select HAVE_ARCH_SECCOMP_FILTER + select HAVE_ARCH_STACKLEAK select HAVE_ARCH_THREAD_STRUCT_WHITELIST select HAVE_ARCH_TRACEHOOK select HAVE_ARCH_TRANSPARENT_HUGEPAGE |