]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/boot: Mark start_secondary() with __noendbr
authorPeter Zijlstra <peterz@infradead.org>
Fri, 7 Feb 2025 12:15:34 +0000 (13:15 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 14 Feb 2025 09:32:05 +0000 (10:32 +0100)
commit93f16a1ab78ca56e3cd997d1ea54c214774781ac
tree63b39f67d2102f59f7c6ad3d15aa8f48eff62912
parent582077c94052bd69a544b3f9d7619c9c6a67c34b
x86/boot: Mark start_secondary() with __noendbr

The handoff between the boot stubs and start_secondary() are before IBT is
enabled and is definitely not subject to kCFI. As such, suppress all that for
this function.

Notably when the ENDBR poison would become fatal (ud1 instead of nop) this will
trigger a tripple fault because we haven't set up the IDT to handle #UD yet.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Sami Tolvanen <samitolvanen@google.com>
Link: https://lore.kernel.org/r/20250207122546.509520369@infradead.org
arch/x86/kernel/smpboot.c
include/linux/objtool.h