Skip to content

Commit

Permalink
um: Fix kcov crash during startup
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marek Majkowski authored and Richard Weinberger committed Jul 2, 2019
1 parent 80b81cd commit c4683cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/um/kernel/skas/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c4683cd

Please sign in to comment.