]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/stackprotector/64: Only export __ref_stack_chk_guard on CONFIG_SMP
authorIngo Molnar <mingo@kernel.org>
Wed, 12 Mar 2025 11:48:49 +0000 (12:48 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Jun 2025 12:41:56 +0000 (14:41 +0200)
commit7124a9b6824e11f8d4e0b10e8320ea3be7dc2d7f
tree103d7ac2d039c17b85f0cd76eb7b1582822bca7c
parent1752ceaa72d370c9c29d4a943324d46714c4d408
x86/stackprotector/64: Only export __ref_stack_chk_guard on CONFIG_SMP

[ Upstream commit 91d5451d97ce35cbd510277fa3b7abf9caa4e34d ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/entry/entry.S