loop0: detected capacity change from 0 to 65536 ================================================================== BUG: KASAN: vmalloc-out-of-bounds in bpf_prog_get_recursion_context include/linux/bpf.h:2055 [inline] BUG: KASAN: vmalloc-out-of-bounds in __bpf_trace_run kernel/trace/bpf_trace.c:2080 [inline] BUG: KASAN: vmalloc-out-of-bounds in bpf_trace_run2+0x28c/0x840 kernel/trace/bpf_trace.c:2129 Read of size 8 at addr ffffc900014c8040 by task syz.0.0/5331 CPU: 0 UID: 0 PID: 5331 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xba/0x230 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 bpf_prog_get_recursion_context include/linux/bpf.h:2055 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2080 [inline] bpf_trace_run2+0x28c/0x840 kernel/trace/bpf_trace.c:2129 __do_trace_kfree include/trace/events/kmem.h:97 [inline] trace_kfree include/trace/events/kmem.h:97 [inline] kfree+0x5b2/0x630 mm/slub.c:6428 vfs_parse_fs_qstr fs/fs_context.c:174 [inline] vfs_parse_fs_string include/linux/fs_context.h:142 [inline] vfs_parse_monolithic_sep+0x290/0x360 fs/fs_context.c:213 do_new_mount+0x304/0xd30 fs/namespace.c:3832 do_mount fs/namespace.c:4159 [inline] __do_sys_mount fs/namespace.c:4348 [inline] __se_sys_mount+0x31d/0x420 fs/namespace.c:4325 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f227359d8ca Code: 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f22744f4e58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f22744f4ee0 RCX: 00007f227359d8ca RDX: 000020000000c740 RSI: 000020000000c780 RDI: 00007f22744f4ea0 RBP: 000020000000c740 R08: 00007f22744f4ee0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000020000000c780 R13: 00007f22744f4ea0 R14: 000000000000c718 R15: 00002000000002c0 The buggy address belongs to a vmalloc virtual mapping Memory state around the buggy address: ffffc900014c7f00: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ffffc900014c7f80: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 >ffffc900014c8000: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ^ ffffc900014c8080: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ffffc900014c8100: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ==================================================================