Skip to content

Commit 05dbaf8

Browse files
committed
Merge tag 'x86-urgent-2025-01-28' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 fix from Ingo Molnar: "Fix a potential early boot crash in SEV-SNP guests, where certain config and build environment combinations can generate absolute references to symbols in the early boot code" * tag 'x86-urgent-2025-01-28' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/sev: Disable jump tables in SEV startup code
2 parents b88fe2b + 1105ab4 commit 05dbaf8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

arch/x86/coco/sev/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
obj-y += core.o
44

5+
# jump tables are emitted using absolute references in non-PIC code
6+
# so they cannot be used in the early SEV startup code
7+
CFLAGS_core.o += -fno-jump-tables
8+
59
ifdef CONFIG_FUNCTION_TRACER
610
CFLAGS_REMOVE_core.o = -pg
711
endif

0 commit comments

Comments
 (0)