loop4: detected capacity change from 0 to 512 ================================================================== BUG: KASAN: slab-out-of-bounds in check_igot_inode fs/ext4/inode.c:-1 [inline] BUG: KASAN: slab-out-of-bounds in __ext4_iget+0x23c/0x3180 fs/ext4/inode.c:4673 Read of size 8 at addr ffff0000efb07f40 by task syz.4.6194/17127 CPU: 1 PID: 17127 Comm: syz.4.6194 Not tainted 5.15.189-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call trace: dump_backtrace+0x0/0x43c arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf8/0x160 lib/dump_stack.c:106 print_address_description+0x78/0x30c mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0xec/0x15c mm/kasan/report.c:451 __asan_report_load8_noabort+0x44/0x50 mm/kasan/report_generic.c:309 check_igot_inode fs/ext4/inode.c:-1 [inline] __ext4_iget+0x23c/0x3180 fs/ext4/inode.c:4673 ext4_fill_super+0x623c/0x812c fs/ext4/super.c:4839 mount_bdev+0x264/0x358 fs/super.c:1400 ext4_mount+0x44/0x58 fs/ext4/super.c:6630 legacy_get_tree+0xd4/0x16c fs/fs_context.c:611 vfs_get_tree+0x90/0x274 fs/super.c:1530 do_new_mount+0x228/0x810 fs/namespace.c:3014 path_mount+0x5b4/0x1000 fs/namespace.c:3344 do_mount fs/namespace.c:3357 [inline] __do_sys_mount fs/namespace.c:3565 [inline] __se_sys_mount fs/namespace.c:3542 [inline] __arm64_sys_mount+0x514/0x5e4 fs/namespace.c:3542 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x78/0x1e0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Allocated by task 14983: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] __kasan_slab_alloc+0x8c/0xcc mm/kasan/common.c:467 kasan_slab_alloc include/linux/kasan.h:254 [inline] slab_post_alloc_hook+0x74/0x408 mm/slab.h:519 slab_alloc_node mm/slub.c:3220 [inline] slab_alloc mm/slub.c:3228 [inline] kmem_cache_alloc+0x1e0/0x3e4 mm/slub.c:3233 xfs_inode_alloc+0x64/0x524 fs/xfs/xfs_icache.c:80 xfs_iget_cache_miss fs/xfs/xfs_icache.c:601 [inline] xfs_iget+0x9b0/0x2d2c fs/xfs/xfs_icache.c:767 xfs_rtmount_inodes+0xa4/0x170 fs/xfs/xfs_rtalloc.c:1304 xfs_mountfs+0xa74/0x15f8 fs/xfs/xfs_mount.c:823 xfs_fs_fill_super+0xe1c/0x106c fs/xfs/xfs_super.c:1675 get_tree_bdev+0x358/0x544 fs/super.c:1325 xfs_fs_get_tree+0x28/0x38 fs/xfs/xfs_super.c:1722 vfs_get_tree+0x90/0x274 fs/super.c:1530 do_new_mount+0x228/0x810 fs/namespace.c:3014 path_mount+0x5b4/0x1000 fs/namespace.c:3344 do_mount fs/namespace.c:3357 [inline] __do_sys_mount fs/namespace.c:3565 [inline] __se_sys_mount fs/namespace.c:3542 [inline] __arm64_sys_mount+0x514/0x5e4 fs/namespace.c:3542 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x78/0x1e0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Last potentially related work creation: kasan_save_stack+0x38/0x68 mm/kasan/common.c:38 kasan_record_aux_stack+0xcc/0x114 mm/kasan/generic.c:348 __call_rcu kernel/rcu/tree.c:3011 [inline] call_rcu+0x114/0x8fc kernel/rcu/tree.c:3091 __xfs_inode_free+0x194/0x240 fs/xfs/xfs_icache.c:158 xfs_reclaim_inode fs/xfs/xfs_icache.c:960 [inline] xfs_icwalk_process_inode fs/xfs/xfs_icache.c:1642 [inline] xfs_icwalk_ag+0xe54/0x1490 fs/xfs/xfs_icache.c:1724 xfs_icwalk fs/xfs/xfs_icache.c:1773 [inline] xfs_reclaim_inodes+0x154/0x23c fs/xfs/xfs_icache.c:993 xfs_unmount_flush_inodes+0xbc/0x104 fs/xfs/xfs_mount.c:554 xfs_unmountfs+0xbc/0x1a8 fs/xfs/xfs_mount.c:1016 xfs_fs_put_super+0x70/0x250 fs/xfs/xfs_super.c:1095 generic_shutdown_super+0x130/0x2f0 fs/super.c:475 kill_block_super+0x70/0xdc fs/super.c:1427 deactivate_locked_super+0xb8/0x13c fs/super.c:335 deactivate_super+0xf8/0x118 fs/super.c:366 cleanup_mnt+0x3a4/0x458 fs/namespace.c:1139 __cleanup_mnt+0x20/0x30 fs/namespace.c:1146 task_work_run+0x12c/0x1e0 kernel/task_work.c:188 tracehook_notify_resume include/linux/tracehook.h:189 [inline] do_notify_resume+0x24b4/0x3128 arch/arm64/kernel/signal.c:949 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline] el0_svc+0xf0/0x1e0 arch/arm64/kernel/entry-common.c:609 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 The buggy address belongs to the object at ffff0000efb07800 which belongs to the cache xfs_inode of size 1752 The buggy address is located 104 bytes to the right of 1752-byte region [ffff0000efb07800, ffff0000efb07ed8) The buggy address belongs to the page: page:000000004fc1e511 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff0000efb02d00 pfn:0x12fb00 head:000000004fc1e511 order:3 compound_mapcount:0 compound_pincount:0 memcg:ffff0000c2055801 flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000010200 0000000000000000 0000000100000001 ffff0000c6ccc480 raw: ffff0000efb02d00 0000000080110000 00000001ffffffff ffff0000c2055801 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000efb07e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff0000efb07e80: fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc fc >ffff0000efb07f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff0000efb07f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000efb08000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== EXT4-fs (loop4): corrupt root inode, run e2fsck EXT4-fs (loop4): mount failed