bisecting fixing commit since 32ee7492f104d82b01a44fc4b4ae17d5d2bb237b building syzkaller on 2274ad39c8bee8efda31dc31ec8933d5624e8fe4 testing commit 32ee7492f104d82b01a44fc4b4ae17d5d2bb237b with gcc (GCC) 8.1.0 kernel signature: 8ebe5675e0bc6147290dcc1b9ef85605ad17493454f3ab0655124a2c04fcc310 run #0: crashed: BUG: unable to handle kernel paging request in bpf_prog_kallsyms_find run #1: crashed: BUG: unable to handle kernel paging request in bpf_prog_kallsyms_find run #2: crashed: BUG: unable to handle kernel paging request in bpf_prog_kallsyms_find run #3: crashed: BUG: unable to handle kernel paging request in bpf_prog_kallsyms_find run #4: crashed: WARNING in bpf_prog_kallsyms_find run #5: crashed: BUG: unable to handle kernel paging request in bpf_prog_kallsyms_find run #6: crashed: BUG: unable to handle kernel paging request in bpf_prog_kallsyms_find run #7: crashed: BUG: unable to handle kernel paging request in bpf_prog_kallsyms_find run #8: crashed: BUG: unable to handle kernel paging request in bpf_prog_kallsyms_find run #9: crashed: KASAN: use-after-free Read in bpf_prog_kallsyms_find testing current HEAD c14d30dc9987047b439b03d6e6db7d54d9f7f180 testing commit c14d30dc9987047b439b03d6e6db7d54d9f7f180 with gcc (GCC) 8.1.0 kernel signature: fc29ed3418eaa9d603fbdfad524b1c5545c55d8d546b39bdbd41638bc78bdee1 run #0: crashed: KASAN: use-after-free Read in bpf_prog_kallsyms_find run #1: crashed: BUG: unable to handle kernel paging request in bpf_prog_kallsyms_find run #2: crashed: BUG: unable to handle kernel paging request in bpf_prog_kallsyms_find run #3: crashed: BUG: unable to handle kernel paging request in bpf_prog_kallsyms_find run #4: crashed: BUG: unable to handle kernel paging request in bpf_prog_kallsyms_find run #5: crashed: BUG: unable to handle kernel paging request in bpf_prog_kallsyms_find run #6: crashed: BUG: unable to handle kernel paging request in bpf_prog_kallsyms_find run #7: crashed: BUG: unable to handle kernel paging request in bpf_prog_kallsyms_find run #8: crashed: BUG: unable to handle kernel paging request in bpf_prog_kallsyms_find run #9: crashed: WARNING in bpf_prog_kallsyms_find revisions tested: 2, total time: 30m37.057403066s (build: 19m47.545319977s, test: 9m6.269592006s) the crash still happens on HEAD commit msg: Linux 4.19.139 crash: WARNING in bpf_prog_kallsyms_find WARNING: CPU: 1 PID: 28725 at kernel/bpf/core.c:383 bpf_prog_ebpf_jited include/linux/filter.h:884 [inline] WARNING: CPU: 1 PID: 28725 at kernel/bpf/core.c:383 bpf_get_prog_addr_region kernel/bpf/core.c:383 [inline] WARNING: CPU: 1 PID: 28725 at kernel/bpf/core.c:383 bpf_tree_comp kernel/bpf/core.c:437 [inline] WARNING: CPU: 1 PID: 28725 at kernel/bpf/core.c:383 __lt_find include/linux/rbtree_latch.h:115 [inline] WARNING: CPU: 1 PID: 28725 at kernel/bpf/core.c:383 latch_tree_find include/linux/rbtree_latch.h:208 [inline] WARNING: CPU: 1 PID: 28725 at kernel/bpf/core.c:383 bpf_prog_kallsyms_find+0xf5/0x2e0 kernel/bpf/core.c:511 Kernel panic - not syncing: panic_on_warn set ... CPU: 1 PID: 28725 Comm: syz-executor.5 Not tainted 4.19.139-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x123/0x177 lib/dump_stack.c:118 panic+0x1cd/0x375 kernel/panic.c:186 __warn.cold.8+0x1b/0x3e kernel/panic.c:541 report_bug+0x1a4/0x200 lib/bug.c:186 fixup_bug arch/x86/kernel/traps.c:178 [inline] do_error_trap+0x200/0x350 arch/x86/kernel/traps.c:296 do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:316 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038 RIP: 0010:bpf_get_prog_addr_region kernel/bpf/core.c:383 [inline] RIP: 0010:bpf_tree_comp kernel/bpf/core.c:437 [inline] RIP: 0010:__lt_find include/linux/rbtree_latch.h:115 [inline] RIP: 0010:latch_tree_find include/linux/rbtree_latch.h:208 [inline] RIP: 0010:bpf_prog_kallsyms_find+0xf5/0x2e0 kernel/bpf/core.c:511 Code: 89 f9 48 c1 e8 03 41 83 e1 07 42 0f b6 04 30 48 81 e3 00 f0 ff ff 44 38 c8 7f 08 84 c0 0f 85 fa 00 00 00 41 f6 45 02 01 75 02 <0f> 0b 48 39 da 0f 82 92 00 00 00 48 89 d8 48 c1 e8 03 42 0f b6 04 RSP: 0018:ffff8880954a7990 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 00000000000253ac RDI: ffffc900019f6002 RBP: ffff8880954a79d0 R08: ffffffff8840db80 R09: 0000000000000002 R10: ffffed1015d64732 R11: ffff8880aeb23993 R12: ffff888099628c30 R13: ffffc900019f6000 R14: dffffc0000000000 R15: ffff888099628c30 is_bpf_text_address+0x48/0xe0 kernel/bpf/core.c:546 kernel_text_address+0x79/0xf0 kernel/extable.c:152 __kernel_text_address+0xd/0x40 kernel/extable.c:107 unwind_get_return_address+0x61/0xa0 arch/x86/kernel/unwind_frame.c:18 __save_stack_trace+0x9c/0x100 arch/x86/kernel/stacktrace.c:45 save_stack_trace+0x1a/0x20 arch/x86/kernel/stacktrace.c:60 save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc+0xc7/0xe0 mm/kasan/kasan.c:553 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:490 slab_post_alloc_hook mm/slab.h:445 [inline] slab_alloc mm/slab.c:3397 [inline] kmem_cache_alloc+0x11b/0x730 mm/slab.c:3557 getname_flags+0xb8/0x520 fs/namei.c:140 user_path_at_empty+0x1e/0x40 fs/namei.c:2609 user_path_at include/linux/namei.h:57 [inline] ksys_chdir+0x8e/0x180 fs/open.c:458 __do_sys_chdir fs/open.c:480 [inline] __se_sys_chdir fs/open.c:478 [inline] __x64_sys_chdir+0x2c/0x40 fs/open.c:478 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45aa07 Code: 44 00 00 b8 21 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 2d c0 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 b8 50 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 0d c0 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffeabf07638 EFLAGS: 00000246 ORIG_RAX: 0000000000000050 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000045aa07 RDX: 0000000000000001 RSI: 000000000071de90 RDI: 00007ffeabf07680 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000001e38940 R10: 0000000001e38c10 R11: 0000000000000246 R12: 0000000000000001 R13: 00007ffeabf07670 R14: 0000000000000000 R15: 00007ffeabf07680 Kernel Offset: disabled Rebooting in 86400 seconds..