Skip to contentSkip to conversation

uml: fix kcov crash during startup

PATCH New Marek Majkowski 1 participant 1 message Jun 4, 2019 User-mode Linux (UML)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 uml: fix kcov crash during startup

Kcov fails to start when compiled with kcov. Disable KCOV on arch/uml/kernel/skas.

  $ gdb -q -ex r ./vmlinux
  Program received signal SIGSEGV, Segmentation fault.
  check_kcov_mode (t=<>, needed_mode=<>) at kernel/kcov.c:70
  70		mode = READ_ONCE(t->kcov_mode);
---
 arch/um/kernel/skas/Makefile | 2 ++
 1 file changed, 2 insertions(+)
arch/um/kernel/skas/Makefile +2 -0
index 0b76d8869c94..5bd3edfcfedf 100644
@@ -12,4 +12,6 @@ obj-y := clone.o mmu.o process.o syscall.o uaccess.o
 CFLAGS_clone.o := $(CFLAGS_NO_HARDENING)
 UNPROFILE_OBJS := clone.o
 
+KCOV_INSTRUMENT := n
+
 include arch/um/scripts/Makefile.rules
Signature · 7 lines
2.17.1


_______________________________________________
linux-um mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-um