Skip to contentSkip to conversation

kasan: do not sanitize kexec purgatory

PATCH New [email protected] 1 participant 1 message Mar 31, 2017 x86

lore
Share & tools
lore
#0 lore raw

PATCH 11/11 kasan: do not sanitize kexec purgatory

From: Mike Galbraith <[email protected]>
Subject: kasan: do not sanitize kexec purgatory

[   24.121074] kexec: Undefined symbol: __asan_load8_noabort
[   24.121999] kexec-bzImage64: Loading purgatory failed

---

 arch/x86/purgatory/Makefile |    1 +
 1 file changed, 1 insertion(+)
arch/x86/purgatory/Makefile renamed from arch/x86/purgatory/Makefile~kasan-do-not-sanitize-kexec-purgatory +1 -0
diff -puN arch/x86/purgatory/Makefile~kasan-do-not-sanitize-kexec-purgatory arch/x86/purgatory/Makefile
@@ -8,6 +8,7 @@ PURGATORY_OBJS = $(addprefix $(obj)/,$(p
 LDFLAGS_purgatory.ro := -e purgatory_start -r --no-undefined -nostdlib -z nodefaultlib
 targets += purgatory.ro
 
+KASAN_SANITIZE	:= n
 KCOV_INSTRUMENT := n
 
 # Default KBUILD_CFLAGS can have -pg option set when FTRACE is enabled. That

_