diff options
author | 2025-07-20 11:27:52 -0700 | |
---|---|---|
committer | 2025-07-20 11:27:52 -0700 | |
commit | 07fa9cad54609df3eea00cd5b167df6088ce01a6 (patch) | |
tree | 12ef8d6cc24557342f09992acf2103db6902fd4a | |
parent | Merge tag 'locking-urgent-2025-07-20' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip (diff) | |
parent | x86/sev: Work around broken noinstr on GCC (diff) | |
download | wireguard-linux-07fa9cad54609df3eea00cd5b167df6088ce01a6.tar.xz wireguard-linux-07fa9cad54609df3eea00cd5b167df6088ce01a6.zip |
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
-rw-r--r-- | arch/x86/coco/sev/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/coco/sev/Makefile b/arch/x86/coco/sev/Makefile index db3255b979bd..342d79f0ab6a 100644 --- a/arch/x86/coco/sev/Makefile +++ b/arch/x86/coco/sev/Makefile @@ -5,5 +5,6 @@ obj-y += core.o sev-nmi.o vc-handle.o # Clang 14 and older may fail to respect __no_sanitize_undefined when inlining UBSAN_SANITIZE_sev-nmi.o := n -# GCC may fail to respect __no_sanitize_address when inlining +# GCC may fail to respect __no_sanitize_address or __no_kcsan when inlining KASAN_SANITIZE_sev-nmi.o := n +KCSAN_SANITIZE_sev-nmi.o := n |