From c0935fca6ba4799e5efc6daeee37887e84707d01 Mon Sep 17 00:00:00 2001 From: Changbin Du Date: Fri, 8 Mar 2024 12:44:01 +0800 Subject: x86/sev: Disable KMSAN for memory encryption TUs Instrumenting sev.c and mem_encrypt_identity.c with KMSAN will result in a triple-faulting kernel. Some of the code is invoked too early during boot, before KMSAN is ready. Disable KMSAN instrumentation for the two translation units. [ bp: Massage commit message. ] Signed-off-by: Changbin Du Signed-off-by: Borislav Petkov (AMD) Link: https://lore.kernel.org/r/20240308044401.1120395-1-changbin.du@huawei.com --- arch/x86/kernel/Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'arch/x86/kernel/Makefile') diff --git a/arch/x86/kernel/Makefile b/arch/x86/kernel/Makefile index 0000325ab98f..04591d0145e0 100644 --- a/arch/x86/kernel/Makefile +++ b/arch/x86/kernel/Makefile @@ -33,6 +33,7 @@ KASAN_SANITIZE_sev.o := n KCSAN_SANITIZE := n KMSAN_SANITIZE_head$(BITS).o := n KMSAN_SANITIZE_nmi.o := n +KMSAN_SANITIZE_sev.o := n # If instrumentation of the following files is enabled, boot hangs during # first second. -- cgit