summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorSamuel Holland <samuel.holland@sifive.com>2024-01-22 09:52:01 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-02-23 09:51:28 +0100
commit204eda8c14a7c29f47f117ed01363432163184aa (patch)
tree35dad2f32f3b35baac3d2e51eace91e197242e6e /arch
parent97395c4e649fb30e63d8be62e8d0d469a5cacccc (diff)
downloadlinux-stable-204eda8c14a7c29f47f117ed01363432163184aa.tar.gz
linux-stable-204eda8c14a7c29f47f117ed01363432163184aa.tar.bz2
linux-stable-204eda8c14a7c29f47f117ed01363432163184aa.zip
scs: add CONFIG_MMU dependency for vfree_atomic()
commit 6f9dc684cae638dda0570154509884ee78d0f75c upstream. 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: a2abe7cbd8fe ("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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/Kconfig b/arch/Kconfig
index f4b210ab0612..a27129d48667 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -681,6 +681,7 @@ config SHADOW_CALL_STACK
bool "Shadow Call Stack"
depends on ARCH_SUPPORTS_SHADOW_CALL_STACK
depends on DYNAMIC_FTRACE_WITH_ARGS || DYNAMIC_FTRACE_WITH_REGS || !FUNCTION_GRAPH_TRACER
+ depends on MMU
help
This option enables the compiler's Shadow Call Stack, which
uses a shadow stack to protect function return addresses from