From b17ae9398ce13bba91e6e7f2249df9dedbf8e561 Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Thu, 7 Jun 2018 11:09:57 +0200 Subject: bpf: enable full unwind and kallsym export support for jited images Helps syzkaller in particular for unwinding full stack in case of warnings or crashes. Signed-off-by: Daniel Borkmann --- CONTRIBUTORS | 1 + tools/create-image.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index c3400dbad..9825f3c61 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -32,3 +32,4 @@ Sumukha PK Mitchell Horne Denis Efremov Ondrej Mosnacek +Daniel Borkmann diff --git a/tools/create-image.sh b/tools/create-image.sh index 9f8248293..395a2a08d 100755 --- a/tools/create-image.sh +++ b/tools/create-image.sh @@ -23,6 +23,7 @@ echo 'SELINUX=disabled' | sudo tee $DIR/etc/selinux/config echo "kernel.printk = 7 4 1 3" | sudo tee -a $DIR/etc/sysctl.conf echo 'debug.exception-trace = 0' | sudo tee -a $DIR/etc/sysctl.conf echo "net.core.bpf_jit_enable = 1" | sudo tee -a $DIR/etc/sysctl.conf +echo "net.core.bpf_jit_kallsyms = 1" | sudo tee -a $DIR/etc/sysctl.conf echo "kernel.softlockup_all_cpu_backtrace = 1" | sudo tee -a $DIR/etc/sysctl.conf echo "kernel.kptr_restrict = 0" | sudo tee -a $DIR/etc/sysctl.conf echo "kernel.watchdog_thresh = 60" | sudo tee -a $DIR/etc/sysctl.conf -- cgit mrf-deployment