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/20240122175204.2371009-1-samuel.holland@sifive.com Fixes: a2abe7c ("scs: switch to vmapped shadow stacks") Signed-off-by: Samuel Holland <samuel.holland@sifive.com> Reviewed-by: Sami Tolvanen <samitolvanen@google.com> Cc: Will Deacon <will@kernel.org> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent e4e3df2 commit 6f9dc68

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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)