bisecting fixing commit since 32ee7492f104d82b01a44fc4b4ae17d5d2bb237b building syzkaller on 2274ad39c8bee8efda31dc31ec8933d5624e8fe4 testing commit 32ee7492f104d82b01a44fc4b4ae17d5d2bb237b with gcc (GCC) 8.1.0 kernel signature: e1faee5fa6f4c32ce0f500f088f90a4dfe867001355f9d60502d50af45c5e469 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: WARNING 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: KASAN: use-after-free Read 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 testing current HEAD dce0f88600e49746b4bda873965b671a23ff4313 testing commit dce0f88600e49746b4bda873965b671a23ff4313 with gcc (GCC) 8.1.0 kernel signature: 9c6fbcf580bbba5e6710385e44c934eaa09c4ed17fb4600405ead23ac77ff456 run #0: crashed: BUG: unable to handle kernel paging request in bpf_prog_kallsyms_find run #1: crashed: KASAN: use-after-free Read 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: WARNING 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: 26m46.681110368s (build: 18m16.57564565s, test: 7m18.276370928s) the crash still happens on HEAD commit msg: Linux 4.19.132 crash: BUG: unable to handle kernel paging request in bpf_prog_kallsyms_find BUG: unable to handle kernel paging request at ffffc900019f8030 PGD aa49b067 P4D aa49b067 PUD 21bc31067 PMD a5e8c067 PTE 80000000a88e6163 Oops: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 19456 Comm: syz-executor.1 Not tainted 4.19.132-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:bpf_jit_binary_hdr include/linux/filter.h:699 [inline] RIP: 0010:bpf_get_prog_addr_region kernel/bpf/core.c:380 [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+0xc3/0x2e0 kernel/bpf/core.c:511 Code: 03 42 80 3c 30 00 0f 85 1c 01 00 00 4d 8b 6f 50 49 8d 7d 30 48 89 f8 48 c1 e8 03 42 80 3c 30 00 0f 85 50 01 00 00 49 8d 7d 02 <49> 8b 5d 30 48 89 f8 49 89 f9 48 c1 e8 03 41 83 e1 07 42 0f b6 04 RSP: 0000:ffff88809092f7b0 EFLAGS: 00010246 RAX: 1ffff9200033f006 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000014a5c RDI: ffffc900019f8002 RBP: ffff88809092f7f0 R08: ffffffff8840db80 R09: ffffed1015d64732 R10: ffffed1015d64732 R11: ffff8880aeb23993 R12: ffff8880922266f0 R13: ffffc900019f8000 R14: dffffc0000000000 R15: ffff8880922266f0 FS: 00000000029b1940(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffc900019f8030 CR3: 00000000a86ad000 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 kmem_cache_alloc+0x12e/0x730 mm/slab.c:3559 ptlock_alloc+0x1d/0x70 mm/memory.c:4833 ptlock_init include/linux/mm.h:1897 [inline] pgtable_page_ctor include/linux/mm.h:1931 [inline] pte_alloc_one+0x4e/0x130 arch/x86/mm/pgtable.c:38 __pte_alloc+0x1d/0x2f0 mm/memory.c:653 do_anonymous_page mm/memory.c:3148 [inline] handle_pte_fault mm/memory.c:4039 [inline] __handle_mm_fault+0x26ce/0x3230 mm/memory.c:4165 handle_mm_fault+0x36b/0x8d0 mm/memory.c:4202 __do_page_fault+0x466/0xb20 arch/x86/mm/fault.c:1412 do_page_fault+0x64/0x3a7 arch/x86/mm/fault.c:1487 page_fault+0x1e/0x30 arch/x86/entry/entry_64.S:1205 RIP: 0033:0x40e54c Code: 8c 02 50 bf 75 00 48 83 c0 08 48 83 f8 48 75 e6 49 63 c6 0f b6 4c 24 5b 48 69 c0 a8 00 00 00 88 88 c0 bf 75 00 e8 44 4d ff ff <83> 05 b1 1a 55 00 01 80 7c 24 59 00 74 0b f6 44 24 08 01 0f 84 98 RSP: 002b:00007fff31ef91b0 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 000000000045b419 RDX: 00000000000f4240 RSI: 0000000000000081 RDI: 000000000075bf28 RBP: 000000000075bf2c R08: 00007fa7f9488700 R09: ffffffffffffffff R10: 0000000000000000 R11: 0000000000000246 R12: 000000000075bf20 R13: 0000000000000003 R14: 0000000000000000 R15: 000000000075bf2c Modules linked in: CR2: ffffc900019f8030 ---[ end trace 66e2069fa3868ef9 ]--- RIP: 0010:bpf_jit_binary_hdr include/linux/filter.h:699 [inline] RIP: 0010:bpf_get_prog_addr_region kernel/bpf/core.c:380 [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+0xc3/0x2e0 kernel/bpf/core.c:511 Code: 03 42 80 3c 30 00 0f 85 1c 01 00 00 4d 8b 6f 50 49 8d 7d 30 48 89 f8 48 c1 e8 03 42 80 3c 30 00 0f 85 50 01 00 00 49 8d 7d 02 <49> 8b 5d 30 48 89 f8 49 89 f9 48 c1 e8 03 41 83 e1 07 42 0f b6 04 RSP: 0000:ffff88809092f7b0 EFLAGS: 00010246 RAX: 1ffff9200033f006 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000014a5c RDI: ffffc900019f8002 RBP: ffff88809092f7f0 R08: ffffffff8840db80 R09: ffffed1015d64732 R10: ffffed1015d64732 R11: ffff8880aeb23993 R12: ffff8880922266f0 R13: ffffc900019f8000 R14: dffffc0000000000 R15: ffff8880922266f0 FS: 00000000029b1940(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffc900019f8030 CR3: 00000000a86ad000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400