loop0: detected capacity change from 0 to 32768 ================================================================== BUG: KASAN: use-after-free in __ocfs2_find_path+0x1dc/0x6a8 fs/ocfs2/alloc.c:1824 Read of size 4 at addr ffff0000f9240000 by task syz.0.421/8290 CPU: 1 UID: 0 PID: 8290 Comm: syz.0.421 Not tainted 6.12.0-rc7-syzkaller-ga2995abceafa #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:484 (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:377 [inline] print_report+0x198/0x538 mm/kasan/report.c:488 kasan_report+0xd8/0x138 mm/kasan/report.c:601 __asan_report_load4_noabort+0x20/0x2c mm/kasan/report_generic.c:380 __ocfs2_find_path+0x1dc/0x6a8 fs/ocfs2/alloc.c:1824 ocfs2_find_leaf+0xd0/0x218 fs/ocfs2/alloc.c:1938 ocfs2_get_clusters_nocache+0x16c/0xa38 fs/ocfs2/extent_map.c:418 ocfs2_get_clusters+0x448/0x964 fs/ocfs2/extent_map.c:621 ocfs2_extent_map_get_blocks+0x1d8/0x650 fs/ocfs2/extent_map.c:668 ocfs2_read_virt_blocks+0x2e4/0xa28 fs/ocfs2/extent_map.c:983 ocfs2_read_dir_block fs/ocfs2/dir.c:508 [inline] ocfs2_find_entry_el fs/ocfs2/dir.c:715 [inline] ocfs2_find_entry+0x398/0x247c fs/ocfs2/dir.c:1080 ocfs2_find_files_on_disk+0x11c/0x3e8 fs/ocfs2/dir.c:1981 ocfs2_lookup_ino_from_name+0xb8/0x1d4 fs/ocfs2/dir.c:2003 _ocfs2_get_system_file_inode fs/ocfs2/sysfile.c:136 [inline] ocfs2_get_system_file_inode+0x2e0/0x6d8 fs/ocfs2/sysfile.c:112 ocfs2_init_global_system_inodes+0x2bc/0x618 fs/ocfs2/super.c:457 ocfs2_initialize_super fs/ocfs2/super.c:2248 [inline] ocfs2_fill_super+0x2758/0x49d0 fs/ocfs2/super.c:994 mount_bdev+0x1d4/0x2a0 fs/super.c:1693 ocfs2_mount+0x44/0x58 fs/ocfs2/super.c:1188 legacy_get_tree+0xd4/0x16c fs/fs_context.c:662 vfs_get_tree+0x90/0x28c fs/super.c:1814 do_new_mount+0x278/0x900 fs/namespace.c:3507 path_mount+0x590/0xe04 fs/namespace.c:3834 do_mount fs/namespace.c:3847 [inline] __do_sys_mount fs/namespace.c:4057 [inline] __se_sys_mount fs/namespace.c:4034 [inline] __arm64_sys_mount+0x4d4/0x5ac fs/namespace.c:4034 __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:0 mapcount:0 mapping:0000000000000000 index:0x513 pfn:0x139240 flags: 0x5ffc00000000000(node=0|zone=2|lastcpupid=0x7ff) page_type: f0(buddy) raw: 05ffc00000000000 fffffdffc3c7f408 fffffdffc3e9d408 0000000000000000 raw: 0000000000000513 0000000000000004 00000000f0000000 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000f923ff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff0000f923ff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff0000f9240000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff0000f9240080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff0000f9240100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== OCFS2: ERROR (device loop0): int __ocfs2_find_path(struct ocfs2_caching_info *, struct ocfs2_extent_list *, u32, path_insert_t *, void *): Owner 66 has bad blkno in extent list at depth 65533 (index 65534) On-disk corruption discovered. Please run fsck.ocfs2 once the filesystem is unmounted. OCFS2: File system is now read-only. (syz.0.421,8290,1):ocfs2_find_leaf:1940 ERROR: status = -30 (syz.0.421,8290,1):ocfs2_get_clusters_nocache:421 ERROR: status = -30 (syz.0.421,8290,1):ocfs2_get_clusters:624 ERROR: status = -30 (syz.0.421,8290,1):ocfs2_extent_map_get_blocks:671 ERROR: status = -30 (syz.0.421,8290,1):ocfs2_read_virt_blocks:987 ERROR: status = -30 (syz.0.421,8290,1):ocfs2_read_dir_block:511 ERROR: status = -30 (syz.0.421,8290,0):ocfs2_init_global_system_inodes:461 ERROR: status = -30 (syz.0.421,8290,0):ocfs2_init_global_system_inodes:463 ERROR: Unable to load system inode 1, possibly corrupt fs? (syz.0.421,8290,0):ocfs2_init_global_system_inodes:472 ERROR: status = -30 (syz.0.421,8290,0):ocfs2_initialize_super:2250 ERROR: status = -30 (syz.0.421,8290,0):ocfs2_fill_super:1178 ERROR: status = -30