================================================================== BUG: KASAN: use-after-free in __read_once_size include/linux/compiler.h:193 [inline] BUG: KASAN: use-after-free in __lt_find include/linux/rbtree_latch.h:118 [inline] BUG: KASAN: use-after-free in latch_tree_find include/linux/rbtree_latch.h:208 [inline] BUG: KASAN: use-after-free in bpf_prog_kallsyms_find kernel/bpf/core.c:511 [inline] BUG: KASAN: use-after-free in bpf_prog_kallsyms_find+0x2a9/0x2c0 kernel/bpf/core.c:504 Read of size 8 at addr ffff8880a09ac380 by task blkid/29433 CPU: 1 PID: 29433 Comm: blkid Not tainted 4.19.101-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+0x197/0x210 lib/dump_stack.c:118 print_address_description.cold+0x7c/0x20d mm/kasan/report.c:256 9pnet: Insufficient options for proto=fd kasan_report_error mm/kasan/report.c:354 [inline] kasan_report mm/kasan/report.c:412 [inline] kasan_report.cold+0x8c/0x2ba mm/kasan/report.c:396 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433 __read_once_size include/linux/compiler.h:193 [inline] __lt_find include/linux/rbtree_latch.h:118 [inline] latch_tree_find include/linux/rbtree_latch.h:208 [inline] bpf_prog_kallsyms_find kernel/bpf/core.c:511 [inline] bpf_prog_kallsyms_find+0x2a9/0x2c0 kernel/bpf/core.c:504 is_bpf_text_address+0x78/0x170 kernel/bpf/core.c:546 kernel_text_address+0x73/0xf0 kernel/extable.c:152 __kernel_text_address+0xd/0x40 kernel/extable.c:107 unwind_get_return_address arch/x86/kernel/unwind_frame.c:18 [inline] unwind_get_return_address+0x61/0xa0 arch/x86/kernel/unwind_frame.c:13 __save_stack_trace+0x99/0x100 arch/x86/kernel/stacktrace.c:45 save_stack_trace+0x1a/0x20 arch/x86/kernel/stacktrace.c:60 save_stack+0x45/0xd0 mm/kasan/kasan.c:448 9pnet: Insufficient options for proto=fd set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc mm/kasan/kasan.c:553 [inline] kasan_kmalloc+0xce/0xf0 mm/kasan/kasan.c:531 kasan_slab_alloc+0xf/0x20 mm/kasan/kasan.c:490 kmem_cache_alloc+0x12e/0x700 mm/slab.c:3559 getname_flags fs/namei.c:140 [inline] getname_flags+0xd6/0x5b0 fs/namei.c:129 user_path_at_empty+0x2f/0x50 fs/namei.c:2609 user_path_at include/linux/namei.h:57 [inline] vfs_statx+0x129/0x200 fs/stat.c:185 vfs_fstatat include/linux/fs.h:3139 [inline] __do_sys_newfstatat+0xad/0x130 fs/stat.c:364 __se_sys_newfstatat fs/stat.c:358 [inline] __x64_sys_newfstatat+0x97/0xf0 fs/stat.c:358 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f442d7b1e1a Code: 83 c8 ff c3 90 90 90 90 90 90 90 90 90 90 90 90 83 ff 01 89 f0 48 89 d6 77 1e 48 63 f8 4d 63 d0 48 89 ca b8 06 01 00 00 0f 05 <48> 3d 00 f0 ff ff 77 1a f3 c3 0f 1f 40 00 48 8b 05 e9 4f 2b 00 64 RSP: 002b:00007ffd0ae04f38 EFLAGS: 00000246 ORIG_RAX: 0000000000000106 RAX: ffffffffffffffda RBX: 00007ffd0ae05010 RCX: 00007f442d7b1e1a RDX: 00007ffd0ae04f70 RSI: 00007f442da88e96 RDI: 0000000000000004 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f442da88e96 R13: 00007ffd0ae04f70 R14: 00007f442dc93820 R15: 00007f442da892a2 Allocated by task 29431: save_stack+0x45/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc mm/kasan/kasan.c:553 [inline] kasan_kmalloc+0xce/0xf0 mm/kasan/kasan.c:531 kmem_cache_alloc_trace+0x152/0x760 mm/slab.c:3625 kmalloc include/linux/slab.h:515 [inline] kzalloc include/linux/slab.h:709 [inline] bpf_prog_alloc+0x216/0x2a0 kernel/bpf/core.c:90 jit_subprogs kernel/bpf/verifier.c:5826 [inline] fixup_call_args kernel/bpf/verifier.c:5945 [inline] bpf_check+0x3e7f/0x6259 kernel/bpf/verifier.c:6352 bpf_prog_load+0xdcb/0x1430 kernel/bpf/syscall.c:1445 __do_sys_bpf kernel/bpf/syscall.c:2411 [inline] __se_sys_bpf kernel/bpf/syscall.c:2373 [inline] __x64_sys_bpf+0x32b/0x4c0 kernel/bpf/syscall.c:2373 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 14106: save_stack+0x45/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/kasan.c:521 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528 __cache_free mm/slab.c:3503 [inline] kfree+0xcf/0x220 mm/slab.c:3822 bpf_jit_free+0xa5/0x300 bpf_prog_free_deferred+0x1a6/0x420 kernel/bpf/core.c:1809 process_one_work+0x989/0x1750 kernel/workqueue.c:2153 worker_thread+0x98/0xe40 kernel/workqueue.c:2296 kthread+0x354/0x420 kernel/kthread.c:246 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 The buggy address belongs to the object at ffff8880a09ac340 which belongs to the cache kmalloc-256 of size 256 The buggy address is located 64 bytes inside of 256-byte region [ffff8880a09ac340, ffff8880a09ac440) The buggy address belongs to the page: page:ffffea0002826b00 count:1 mapcount:0 mapping:ffff88812c31c7c0 index:0xffff8880a09ac840 flags: 0xfffe0000000100(slab) raw: 00fffe0000000100 ffffea0002a2fc48 ffffea00023ccdc8 ffff88812c31c7c0 raw: ffff8880a09ac840 ffff8880a09ac0c0 0000000100000007 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880a09ac280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880a09ac300: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb >ffff8880a09ac380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880a09ac400: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff8880a09ac480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== 9pnet: Insufficient options for proto=fd 9pnet: Insufficient options for proto=fd