Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

x86/stackprotector/64: Only export __ref_stack_chk_guard on CONFIG_SMP

The __ref_stack_chk_guard symbol doesn't exist on UP:

<stdin>:4:15: error: ‘__ref_stack_chk_guard’ undeclared here (not in a function)

Fix the #ifdef around the entry.S export.

Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Ard Biesheuvel <ardb@kernel.org>
Cc: Uros Bizjak <ubizjak@gmail.com>
Link: https://lore.kernel.org/r/20250123190747.745588-8-brgerst@gmail.com

+1 -1
+1 -1
arch/x86/entry/entry.S
··· 64 64 * entirely in the C code, and use an alias emitted by the linker script 65 65 * instead. 66 66 */ 67 - #ifdef CONFIG_STACKPROTECTOR 67 + #if defined(CONFIG_STACKPROTECTOR) && defined(CONFIG_SMP) 68 68 EXPORT_SYMBOL(__ref_stack_chk_guard); 69 69 #endif