diff options
Diffstat (limited to 'arch/x86/coco/sev/Makefile')
-rw-r--r-- | arch/x86/coco/sev/Makefile | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/arch/x86/coco/sev/Makefile b/arch/x86/coco/sev/Makefile index 4e375e7305ac..342d79f0ab6a 100644 --- a/arch/x86/coco/sev/Makefile +++ b/arch/x86/coco/sev/Makefile @@ -1,15 +1,10 @@ # SPDX-License-Identifier: GPL-2.0 -obj-y += core.o +obj-y += core.o sev-nmi.o vc-handle.o -ifdef CONFIG_FUNCTION_TRACER -CFLAGS_REMOVE_core.o = -pg -endif +# Clang 14 and older may fail to respect __no_sanitize_undefined when inlining +UBSAN_SANITIZE_sev-nmi.o := n -KASAN_SANITIZE_core.o := n -KMSAN_SANITIZE_core.o := n -KCOV_INSTRUMENT_core.o := n - -# With some compiler versions the generated code results in boot hangs, caused -# by several compilation units. To be safe, disable all instrumentation. -KCSAN_SANITIZE := n +# 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 |