loop2: detected capacity change from 0 to 32768 ocfs2: Mounting device (7,2) on (node local, slot 0) with ordered data mode. ================================================================== BUG: KASAN: use-after-free in ocfs2_find_victim_chain fs/ocfs2/suballoc.c:1445 [inline] BUG: KASAN: use-after-free in ocfs2_claim_suballoc_bits+0x950/0x1e0c fs/ocfs2/suballoc.c:1982 Read of size 4 at addr ffff0000df18e000 by task syz.2.187/7409 CPU: 1 UID: 0 PID: 7409 Comm: syz.2.187 Not tainted 6.14.0-syzkaller-gd6b13dbd03b7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:466 (C) __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0xe4/0x150 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:408 [inline] print_report+0x198/0x550 mm/kasan/report.c:521 kasan_report+0xd8/0x138 mm/kasan/report.c:634 __asan_report_load4_noabort+0x20/0x2c mm/kasan/report_generic.c:380 ocfs2_find_victim_chain fs/ocfs2/suballoc.c:1445 [inline] ocfs2_claim_suballoc_bits+0x950/0x1e0c fs/ocfs2/suballoc.c:1982 ocfs2_claim_new_inode+0x2dc/0x7a8 fs/ocfs2/suballoc.c:2267 ocfs2_mknod_locked+0x134/0x2e4 fs/ocfs2/namei.c:634 ocfs2_mknod+0x10a0/0x2438 fs/ocfs2/namei.c:381 ocfs2_create+0x194/0x4d4 fs/ocfs2/namei.c:673 lookup_open fs/namei.c:3651 [inline] open_last_lookups fs/namei.c:3750 [inline] path_openat+0x13ec/0x2b1c fs/namei.c:3986 do_filp_open+0x1e8/0x404 fs/namei.c:4016 do_sys_openat2+0x124/0x1b8 fs/open.c:1428 do_sys_open fs/open.c:1443 [inline] __do_sys_openat fs/open.c:1459 [inline] __se_sys_openat fs/open.c:1454 [inline] __arm64_sys_openat+0x1f0/0x240 fs/open.c:1454 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:744 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 The buggy address belongs to the physical page: page: refcount:1 mapcount:1 mapping:0000000000000000 index:0xffffb9f67 pfn:0x11f18e memcg:ffff0000f3f96000 anon flags: 0x5ffc00000020828(uptodate|lru|owner_2|swapbacked|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000020828 fffffdffc3d53d48 fffffdffc3d1f008 ffff0000d2d12001 raw: 0000000ffffb9f67 0000000000000000 0000000100000000 ffff0000f3f96000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000df18df00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff0000df18df80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff0000df18e000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff0000df18e080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff0000df18e100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== (syz.2.187,7409,1):ocfs2_read_blocks:239 ERROR: status = -12 (syz.2.187,7409,1):ocfs2_search_chain:1814 ERROR: status = -12 (syz.2.187,7409,1):ocfs2_search_chain:1926 ERROR: status = -12 (syz.2.187,7409,1):ocfs2_claim_suballoc_bits:1995 ERROR: status = -12 (syz.2.187,7409,1):ocfs2_claim_suballoc_bits:2038 ERROR: status = -12 (syz.2.187,7409,1):ocfs2_claim_new_inode:2273 ERROR: status = -12 (syz.2.187,7409,1):ocfs2_claim_new_inode:2288 ERROR: status = -12 (syz.2.187,7409,1):ocfs2_mknod_locked:638 ERROR: status = -12 (syz.2.187,7409,1):ocfs2_mknod:385 ERROR: status = -12 (syz.2.187,7409,1):ocfs2_mknod:502 ERROR: status = -12 (syz.2.187,7409,1):ocfs2_create:675 ERROR: status = -12