Skip to content

Commit 07fa9ca

Browse files
committed
Merge tag 'x86-urgent-2025-07-20' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 bug fix from Thomas Gleixner: "A single fix for a GCC wreckage, which emits a KCSAN instrumentation call in __sev_es_nmi_complete() despite the function being annotated with 'noinstr'. As all functions in that source file are noinstr, exclude the whole file from KCSAN in the Makefile to cure it" * tag 'x86-urgent-2025-07-20' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/sev: Work around broken noinstr on GCC
2 parents 92329d5 + 6b995d0 commit 07fa9ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/x86/coco/sev/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ obj-y += core.o sev-nmi.o vc-handle.o
55
# Clang 14 and older may fail to respect __no_sanitize_undefined when inlining
66
UBSAN_SANITIZE_sev-nmi.o := n
77

8-
# GCC may fail to respect __no_sanitize_address when inlining
8+
# GCC may fail to respect __no_sanitize_address or __no_kcsan when inlining
99
KASAN_SANITIZE_sev-nmi.o := n
10+
KCSAN_SANITIZE_sev-nmi.o := n

0 commit comments

Comments
 (0)