bisecting fixing commit since c3038e718a19fc596f7b1baba0f83d5146dc7784 building syzkaller on 04ca72cd45348daab9d896bbec8ea4c2d13455ac testing commit c3038e718a19fc596f7b1baba0f83d5146dc7784 with gcc (GCC) 8.1.0 kernel signature: dc3175ec8fa961a0d32402a9ceeca9fd4b1b2623104d1c54e5c94ee25a71cca7 run #0: crashed: BUG: unable to handle kernel paging request in bpf_prog_kallsyms_find run #1: crashed: WARNING in bpf_prog_kallsyms_find run #2: crashed: WARNING in bpf_prog_kallsyms_find run #3: crashed: KASAN: use-after-free Read 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: WARNING in bpf_prog_kallsyms_find run #8: crashed: BUG: unable to handle kernel paging request in bpf_prog_kallsyms_find run #9: crashed: BUG: unable to handle kernel paging request in bpf_prog_kallsyms_find testing current HEAD 765675379b6253b6901563e649a2f87d28ada3ff testing commit 765675379b6253b6901563e649a2f87d28ada3ff with gcc (GCC) 8.1.0 kernel signature: a963c9f2762113c6646a9590c77b36433decafa72aa8957db6545abfaf3ec938 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: KASAN: use-after-free Read in bpf_prog_kallsyms_find run #5: crashed: KASAN: use-after-free Read 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: BUG: unable to handle kernel paging request in bpf_prog_kallsyms_find revisions tested: 2, total time: 26m19.703964306s (build: 17m54.75368462s, test: 7m8.895467803s) the crash still happens on HEAD commit msg: Linux 4.19.119 crash: BUG: unable to handle kernel paging request in bpf_prog_kallsyms_find BUG: unable to handle kernel paging request at ffffc90005a8d002 PGD 12c2f0067 P4D 12c2f0067 PUD 21bc31067 PMD 9c33e067 PTE 0 Oops: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 6342 Comm: syz-executor.4 Not tainted 4.19.119-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:bpf_prog_ebpf_jited include/linux/filter.h:884 [inline] 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+0xee/0x2e0 kernel/bpf/core.c:511 Code: 8b 5d 30 48 89 f8 49 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 RSP: 0018:ffff88808689f6c8 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffffffffa00c8000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 000000000000ff8c RDI: ffffc90005a8d002 RBP: ffff88808689f708 R08: ffffffff87e0dbc0 R09: 0000000000000002 R10: ffffed1015d64732 R11: ffff8880aeb23993 R12: ffff8880986e2570 R13: ffffc90005a8d000 R14: dffffc0000000000 R15: ffff8880986e2570 FS: 0000000002a1a940(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffc90005a8d002 CR3: 000000009f092000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: 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 anon_vma_alloc mm/rmap.c:82 [inline] anon_vma_fork+0xd3/0x450 mm/rmap.c:341 dup_mmap kernel/fork.c:504 [inline] dup_mm kernel/fork.c:1288 [inline] copy_mm kernel/fork.c:1344 [inline] copy_process.part.34+0x3aa5/0x7370 kernel/fork.c:1897 copy_process kernel/fork.c:1694 [inline] _do_fork+0x15d/0xba0 kernel/fork.c:2207 __do_sys_clone kernel/fork.c:2314 [inline] __se_sys_clone kernel/fork.c:2308 [inline] __x64_sys_clone+0xba/0x140 kernel/fork.c:2308 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45850a Code: f7 d8 64 89 04 25 d4 02 00 00 64 4c 8b 0c 25 10 00 00 00 31 d2 4d 8d 91 d0 02 00 00 31 f6 bf 11 00 20 01 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 0f 87 f5 00 00 00 85 c0 41 89 c5 0f 85 fc 00 00 RSP: 002b:00007ffd36fa8670 EFLAGS: 00000246 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 00007ffd36fa8670 RCX: 000000000045850a RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011 RBP: 00007ffd36fa86b0 R08: 0000000000000001 R09: 0000000002a1a940 R10: 0000000002a1ac10 R11: 0000000000000246 R12: 0000000000000001 R13: 0000000000000000 R14: 0000000000000000 R15: 00007ffd36fa8700 Modules linked in: CR2: ffffc90005a8d002 ---[ end trace 75843ee6f99d78b5 ]--- RIP: 0010:bpf_prog_ebpf_jited include/linux/filter.h:884 [inline] 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+0xee/0x2e0 kernel/bpf/core.c:511 Code: 8b 5d 30 48 89 f8 49 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 RSP: 0018:ffff88808689f6c8 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffffffffa00c8000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 000000000000ff8c RDI: ffffc90005a8d002 RBP: ffff88808689f708 R08: ffffffff87e0dbc0 R09: 0000000000000002 R10: ffffed1015d64732 R11: ffff8880aeb23993 R12: ffff8880986e2570 R13: ffffc90005a8d000 R14: dffffc0000000000 R15: ffff8880986e2570 FS: 0000000002a1a940(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffc90005a8d002 CR3: 000000009f092000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400