]> www.infradead.org Git - users/dwmw2/linux.git/commit
x86/sev: Disable KMSAN for memory encryption TUs
authorChangbin Du <changbin.du@huawei.com>
Fri, 8 Mar 2024 04:44:01 +0000 (12:44 +0800)
committerBorislav Petkov (AMD) <bp@alien8.de>
Fri, 8 Mar 2024 07:59:22 +0000 (08:59 +0100)
commitc0935fca6ba4799e5efc6daeee37887e84707d01
tree96a4564fb48908764868a5dba61c00b8010931d8
parentd7b69b590bc9a5d299c82d3b27772cece0238d38
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 <changbin.du@huawei.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20240308044401.1120395-1-changbin.du@huawei.com
arch/x86/kernel/Makefile
arch/x86/mm/Makefile