summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Majkowski <marek@cloudflare.com>2019-06-04 13:20:50 +0200
committerRichard Weinberger <richard@nod.at>2019-07-02 23:27:42 +0200
commitc4683cd5fb243894a3de2d9ba2e0570ab339920c (patch)
tree3f5828bac7465ea73ef7e0ebab064cb7255dc320
parent80b81cdc66eda3dbb3d83155e6454cfd42b4a5dd (diff)
downloadlinux-c4683cd5fb243894a3de2d9ba2e0570ab339920c.tar.gz
linux-c4683cd5fb243894a3de2d9ba2e0570ab339920c.tar.bz2
linux-c4683cd5fb243894a3de2d9ba2e0570ab339920c.zip
um: 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); Signed-off-by: Marek Majkowski <marek@cloudflare.com> Signed-off-by: Richard Weinberger <richard@nod.at>
-rw-r--r--arch/um/kernel/skas/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/um/kernel/skas/Makefile b/arch/um/kernel/skas/Makefile
index 0b76d8869c94..5bd3edfcfedf 100644
--- a/arch/um/kernel/skas/Makefile
+++ b/arch/um/kernel/skas/Makefile
@@ -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