loop0: detected capacity change from 0 to 32768 ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. ================================================================== BUG: KASAN: use-after-free in ocfs2_find_victim_chain fs/ocfs2/suballoc.c:1447 [inline] BUG: KASAN: use-after-free in ocfs2_claim_suballoc_bits+0x8b2/0x2450 fs/ocfs2/suballoc.c:1996 Read of size 4 at addr ffff888054147000 by task syz.0.0/5330 CPU: 0 UID: 0 PID: 5330 Comm: syz.0.0 Not tainted 6.16.0-rc2-syzkaller-00087-g24770983ccfe #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:408 [inline] print_report+0xd2/0x2b0 mm/kasan/report.c:521 kasan_report+0x118/0x150 mm/kasan/report.c:634 ocfs2_find_victim_chain fs/ocfs2/suballoc.c:1447 [inline] ocfs2_claim_suballoc_bits+0x8b2/0x2450 fs/ocfs2/suballoc.c:1996 ocfs2_claim_new_inode+0x332/0x7a0 fs/ocfs2/suballoc.c:2292 ocfs2_mknod_locked+0x100/0x250 fs/ocfs2/namei.c:634 ocfs2_mknod+0x10c7/0x2050 fs/ocfs2/namei.c:381 ocfs2_mkdir+0x191/0x440 fs/ocfs2/namei.c:656 vfs_mkdir+0x306/0x510 fs/namei.c:4375 do_mkdirat+0x247/0x590 fs/namei.c:4408 __do_sys_mkdir fs/namei.c:4430 [inline] __se_sys_mkdir fs/namei.c:4428 [inline] __x64_sys_mkdir+0x6c/0x80 fs/namei.c:4428 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fdf08b8e929 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fdf09989038 EFLAGS: 00000246 ORIG_RAX: 0000000000000053 RAX: ffffffffffffffda RBX: 00007fdf08db5fa0 RCX: 00007fdf08b8e929 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000200000000000 RBP: 00007fdf08c10b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fdf08db5fa0 R15: 00007ffc86391b38 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x54147 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 ffffea0001505208 ffff88801fc41870 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner info is not present (never set?) Memory state around the buggy address: ffff888054146f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888054146f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888054147000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888054147080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888054147100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================