Skip to content

Commit 6f9dc68

Browse files
SiFiveHollandakpm00
authored andcommitted
scs: add CONFIG_MMU dependency for vfree_atomic()
The shadow call stack implementation fails to build without CONFIG_MMU: ld.lld: error: undefined symbol: vfree_atomic >>> referenced by scs.c >>> kernel/scs.o:(scs_free) in archive vmlinux.a Link: https://lkml.kernel.org/r/[email protected] Fixes: a2abe7c ("scs: switch to vmapped shadow stacks") Signed-off-by: Samuel Holland <[email protected]> Reviewed-by: Sami Tolvanen <[email protected]> Cc: Will Deacon <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent e4e3df2 commit 6f9dc68

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -673,6 +673,7 @@ config SHADOW_CALL_STACK
673673
bool "Shadow Call Stack"
674674
depends on ARCH_SUPPORTS_SHADOW_CALL_STACK
675675
depends on DYNAMIC_FTRACE_WITH_ARGS || DYNAMIC_FTRACE_WITH_REGS || !FUNCTION_GRAPH_TRACER
676+
depends on MMU
676677
help
677678
This option enables the compiler's Shadow Call Stack, which
678679
uses a shadow stack to protect function return addresses from

0 commit comments

Comments
 (0)