Skip to content

Commit

Permalink
Merge tag 'x86-urgent-2025-01-28' of git://git.kernel.org/pub/scm/lin…
Browse files Browse the repository at this point in the history
…ux/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
  • Loading branch information
Linus Torvalds committed Jan 28, 2025
2 parents b88fe2b + 1105ab4 commit 05dbaf8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/x86/coco/sev/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

obj-y += core.o

# jump tables are emitted using absolute references in non-PIC code
# so they cannot be used in the early SEV startup code
CFLAGS_core.o += -fno-jump-tables

ifdef CONFIG_FUNCTION_TRACER
CFLAGS_REMOVE_core.o = -pg
endif
Expand Down

0 comments on commit 05dbaf8

Please sign in to comment.