mirror of
https://github.com/torvalds/linux.git
synced 2026-06-09 15:12:59 +02:00
BACKPORT: FROMLIST: arm64: vdso: disable Shadow Call Stack
Shadow stacks are only available in the kernel, so disable SCS instrumentation for the vDSO. Bug: 145210207 Change-Id: I6e01b2c7788ba52d3b754b1fbd5bfb908b45741b (am from https://lore.kernel.org/patchwork/patch/1149061/) Reviewed-by: Nick Desaulniers <ndesaulniers@google.com> Reviewed-by: Kees Cook <keescook@chromium.org> Reviewed-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
This commit is contained in:
parent
947e357d12
commit
f49ee5bd17
|
|
@ -17,6 +17,8 @@ ccflags-y += -nostdlib -Wl,-soname=linux-vdso.so.1 \
|
|||
$(call cc-ldoption, -Wl$(comma)--hash-style=sysv)
|
||||
ccflags-y += $(DISABLE_LTO)
|
||||
|
||||
CFLAGS_REMOVE_vgettimeofday.o += $(CC_FLAGS_SCS)
|
||||
|
||||
# Disable gcov profiling for VDSO code
|
||||
GCOV_PROFILE := n
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user