Skip to content

Commit cde5dec

Browse files
samitolvanenwilldeacon
authored andcommitted
arm64: vdso: Disable Shadow Call Stack
Shadow stacks are only available in the kernel, so disable SCS instrumentation for the vDSO. Signed-off-by: Sami Tolvanen <[email protected]> Reviewed-by: Nick Desaulniers <[email protected]> Reviewed-by: Kees Cook <[email protected]> Reviewed-by: Mark Rutland <[email protected]> Acked-by: Will Deacon <[email protected]> Signed-off-by: Will Deacon <[email protected]>
1 parent e73f02c commit cde5dec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm64/kernel/vdso/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ ccflags-y += -DDISABLE_BRANCH_PROFILING
2525

2626
VDSO_LDFLAGS := -Bsymbolic
2727

28-
CFLAGS_REMOVE_vgettimeofday.o = $(CC_FLAGS_FTRACE) -Os
28+
CFLAGS_REMOVE_vgettimeofday.o = $(CC_FLAGS_FTRACE) -Os $(CC_FLAGS_SCS)
2929
KBUILD_CFLAGS += $(DISABLE_LTO)
3030
KASAN_SANITIZE := n
3131
UBSAN_SANITIZE := n

0 commit comments

Comments
 (0)