bisecting fixing commit since c3038e718a19fc596f7b1baba0f83d5146dc7784 building syzkaller on 04ca72cd45348daab9d896bbec8ea4c2d13455ac testing commit c3038e718a19fc596f7b1baba0f83d5146dc7784 with gcc (GCC) 8.1.0 kernel signature: 7af3c70e4b180c8075b294983bf28bb882ee320e00bbf5a15c34f1fca48515eb run #0: crashed: WARNING in bpf_prog_kallsyms_find run #1: crashed: WARNING in bpf_prog_kallsyms_find run #2: crashed: BUG: unable to handle kernel paging request in bpf_prog_kallsyms_find run #3: crashed: WARNING 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: WARNING in bpf_prog_kallsyms_find run #9: crashed: BUG: unable to handle kernel paging request in bpf_prog_kallsyms_find testing current HEAD 54b4fa6d39551639cb10664f6ac78b01993a1d7e testing commit 54b4fa6d39551639cb10664f6ac78b01993a1d7e with gcc (GCC) 8.1.0 kernel signature: 3f99a38f4da0f9929af5a22d52102f293631a78b55ff76676a4deb9b4e71dddb 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: 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: KASAN: use-after-free Read 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: 26m14.029953484s (build: 17m22.810102805s, test: 7m51.608045399s) the crash still happens on HEAD commit msg: Linux 4.19.113 crash: BUG: unable to handle kernel paging request in bpf_prog_kallsyms_find BUG: unable to handle kernel paging request at ffffc90005a79030 PGD 12c2f0067 P4D 12c2f0067 PUD 21bc31067 PMD 216487067 PTE 0 Oops: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 17428 Comm: syz-executor.3 Not tainted 4.19.113-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: 0018:ffff8880a385f5a8 EFLAGS: 00010246 RAX: 1ffff92000b4f206 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000012164 RDI: ffffc90005a79002 RBP: ffff8880a385f5e8 R08: ffffffff87e0dbc0 R09: ffffed1015d64732 R10: ffffed1015d64732 R11: ffff8880aeb23993 R12: ffff8880a41c64b0 R13: ffffc90005a79000 R14: dffffc0000000000 R15: ffff8880a41c64b0 FS: 0000000000a79940(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffc90005a79030 CR3: 00000000a48ea000 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 kmem_cache_zalloc include/linux/slab.h:699 [inline] inode_alloc_security security/selinux/hooks.c:255 [inline] selinux_inode_alloc_security+0xb1/0x290 security/selinux/hooks.c:3007 security_inode_alloc+0x5d/0xa0 security/security.c:444 inode_init_always+0x599/0xb60 fs/inode.c:169 alloc_inode+0x69/0x150 fs/inode.c:218 new_inode_pseudo+0xc/0xd0 fs/inode.c:911 new_inode+0x14/0x30 fs/inode.c:940 __ext4_new_inode+0x335/0x43d0 fs/ext4/ialloc.c:832 ext4_symlink+0x2e8/0xab0 fs/ext4/namei.c:3136 vfs_symlink+0x2f4/0x520 fs/namei.c:4129 do_symlinkat+0x192/0x1e0 fs/namei.c:4156 __do_sys_symlink fs/namei.c:4175 [inline] __se_sys_symlink fs/namei.c:4173 [inline] __x64_sys_symlink+0x54/0x80 fs/namei.c:4173 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x459c67 Code: 0f 1f 00 b8 5c 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 6d b9 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 b8 58 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 4d b9 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fff3efbce38 EFLAGS: 00000202 ORIG_RAX: 0000000000000058 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000459c67 RDX: 00007fff3efbced3 RSI: 00000000004bf939 RDI: 00007fff3efbcec0 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000013 R10: 0000000000000075 R11: 0000000000000202 R12: 0000000000000001 R13: 00007fff3efbce70 R14: 0000000000000000 R15: 00007fff3efbce80 Modules linked in: CR2: ffffc90005a79030 ---[ end trace 96c575fa849558de ]--- 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: 0018:ffff8880a385f5a8 EFLAGS: 00010246 RAX: 1ffff92000b4f206 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000012164 RDI: ffffc90005a79002 RBP: ffff8880a385f5e8 R08: ffffffff87e0dbc0 R09: ffffed1015d64732 R10: ffffed1015d64732 R11: ffff8880aeb23993 R12: ffff8880a41c64b0 R13: ffffc90005a79000 R14: dffffc0000000000 R15: ffff8880a41c64b0 FS: 0000000000a79940(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffc90005a79030 CR3: 00000000a48ea000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400