loop0: detected capacity change from 0 to 32768 ======================================================= WARNING: The mand mount option has been deprecated and and is ignored by this kernel. Remove the mand option from the mount to silence this warning. ======================================================= JBD2: Ignoring recovery information on journal ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. x_tables: ip_tables: TCPOPTSTRIP target: only valid in mangle table, not raw (syz.0.0,5321,0):ocfs2_check_set_options:1244 ERROR: Invalid heartbeat mount options loop0: detected capacity change from 32768 to 32767 OCFS2: ERROR (device loop0): int ocfs2_validate_dx_root(struct super_block *, struct buffer_head *): Dir Index Root # 74 has bad signature XDIR01 On-disk corruption discovered. Please run fsck.ocfs2 once the filesystem is unmounted. OCFS2: File system is now read-only. (syz.0.0,5321,0):ocfs2_find_entry_dx:1029 ERROR: status = -30 ================================================================== BUG: KASAN: use-after-free in ocfs2_dx_dir_lookup_rec+0x206/0x810 fs/ocfs2/dir.c:805 Read of size 4 at addr ffff8880542342c0 by task syz.0.0/5321 CPU: 0 UID: 0 PID: 5321 Comm: syz.0.0 Not tainted 6.14.0-rc1-syzkaller-00276-g69b54314c975 #0 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 lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x169/0x550 mm/kasan/report.c:489 kasan_report+0x143/0x180 mm/kasan/report.c:602 ocfs2_dx_dir_lookup_rec+0x206/0x810 fs/ocfs2/dir.c:805 ocfs2_dx_dir_lookup+0x163/0x930 fs/ocfs2/dir.c:860 ocfs2_dx_dir_search fs/ocfs2/dir.c:920 [inline] ocfs2_find_entry_dx fs/ocfs2/dir.c:1034 [inline] ocfs2_find_entry+0x1309/0x2570 fs/ocfs2/dir.c:1071 ocfs2_check_dir_for_entry+0x17b/0x4a0 fs/ocfs2/dir.c:2040 ocfs2_mknod+0x83c/0x2b30 fs/ocfs2/namei.c:288 ocfs2_create+0x1ab/0x470 fs/ocfs2/namei.c:673 lookup_open fs/namei.c:3651 [inline] open_last_lookups fs/namei.c:3750 [inline] path_openat+0x193c/0x3590 fs/namei.c:3986 do_filp_open+0x27f/0x4e0 fs/namei.c:4016 do_sys_openat2+0x13e/0x1d0 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] __x64_sys_openat+0x247/0x2a0 fs/open.c:1454 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f953f38cde9 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:00007f9540256038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f953f5a5fa0 RCX: 00007f953f38cde9 RDX: 0000000000105042 RSI: 0000400000000080 RDI: ffffffffffffff9c RBP: 00007f953f40e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000000001ff R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f953f5a5fa0 R15: 00007fffdb5ecab8 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x54234 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000100 dead000000000122 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: ffff888054234180: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888054234200: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff888054234280: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888054234300: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888054234380: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================