loop4: detected capacity change from 0 to 512 EXT4-fs (loop4): Warning: mounting with an experimental mount option 'dioread_nolock' for blocksize < PAGE_SIZE ================================================================== BUG: KASAN: slab-out-of-bounds in __ext4_iget+0x2ee/0x3f00 fs/ext4/inode.c:4652 Read of size 8 at addr ffff88805ff1ff40 by task syz.4.490/6689 CPU: 0 PID: 6689 Comm: syz.4.490 Not tainted 5.15.178-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106 print_address_description+0x63/0x3b0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0x16b/0x1c0 mm/kasan/report.c:451 __ext4_iget+0x2ee/0x3f00 fs/ext4/inode.c:4652 ext4_fill_super+0x7e9d/0xa110 fs/ext4/super.c:4841 mount_bdev+0x2c9/0x3f0 fs/super.c:1400 legacy_get_tree+0xeb/0x180 fs/fs_context.c:611 vfs_get_tree+0x88/0x270 fs/super.c:1530 do_new_mount+0x2ba/0xb40 fs/namespace.c:3012 do_mount fs/namespace.c:3355 [inline] __do_sys_mount fs/namespace.c:3563 [inline] __se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3540 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fa26dad890a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 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:00007fa26b91ee68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fa26b91eef0 RCX: 00007fa26dad890a RDX: 0000400000000440 RSI: 00004000000000c0 RDI: 00007fa26b91eeb0 RBP: 0000400000000440 R08: 00007fa26b91eef0 R09: 0000000000000002 R10: 0000000000000002 R11: 0000000000000246 R12: 00004000000000c0 R13: 00007fa26b91eeb0 R14: 0000000000000451 R15: 000000000000002c Allocated by task 0: (stack is not available) The buggy address belongs to the object at ffff88805ff1f348 which belongs to the cache gfs2_inode of size 1608 The buggy address is located 1456 bytes to the right of 1608-byte region [ffff88805ff1f348, ffff88805ff1f990) The buggy address belongs to the page: page:ffffea00017fc600 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5ff18 head:ffffea00017fc600 order:3 compound_mapcount:0 compound_pincount:0 memcg:ffff888073782501 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 0000000000000000 dead000000000122 ffff88801e9198c0 raw: 0000000000000000 0000000080120012 00000001ffffffff ffff888073782501 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Reclaimable, gfp_mask 0x1d20d0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL|__GFP_RECLAIMABLE), pid 4267, ts 73218135624, free_ts 19352761486 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x3b78/0x3d40 mm/page_alloc.c:4192 __alloc_pages+0x272/0x700 mm/page_alloc.c:5465 alloc_slab_page mm/slub.c:1775 [inline] allocate_slab mm/slub.c:1912 [inline] new_slab+0xbb/0x4b0 mm/slub.c:1975 ___slab_alloc+0x6f6/0xe10 mm/slub.c:3008 __slab_alloc mm/slub.c:3095 [inline] slab_alloc_node mm/slub.c:3186 [inline] slab_alloc mm/slub.c:3228 [inline] kmem_cache_alloc+0x18e/0x280 mm/slub.c:3233 gfs2_alloc_inode+0x45/0x110 fs/gfs2/super.c:1447 alloc_inode fs/inode.c:236 [inline] iget5_locked+0x9c/0x260 fs/inode.c:1238 gfs2_iget fs/gfs2/inode.c:64 [inline] gfs2_inode_lookup+0x133/0xd10 fs/gfs2/inode.c:140 gfs2_dir_search+0x225/0x2f0 fs/gfs2/dir.c:1665 gfs2_lookupi+0x45b/0x5e0 fs/gfs2/inode.c:332 gfs2_lookup_simple+0xf2/0x170 fs/gfs2/inode.c:273 init_inodes+0x118/0x310 fs/gfs2/ops_fstype.c:897 gfs2_fill_super+0x1c2c/0x2750 fs/gfs2/ops_fstype.c:1249 get_tree_bdev+0x3fe/0x620 fs/super.c:1325 gfs2_get_tree+0x50/0x210 fs/gfs2/ops_fstype.c:1332 vfs_get_tree+0x88/0x270 fs/super.c:1530 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1340 [inline] free_pcp_prepare mm/page_alloc.c:1391 [inline] free_unref_page_prepare+0xc34/0xcf0 mm/page_alloc.c:3317 free_unref_page+0x95/0x2d0 mm/page_alloc.c:3396 free_contig_range+0x95/0xf0 mm/page_alloc.c:9384 destroy_args+0xfe/0x980 mm/debug_vm_pgtable.c:1018 debug_vm_pgtable+0x40d/0x470 mm/debug_vm_pgtable.c:1331 do_one_initcall+0x22b/0x7a0 init/main.c:1302 do_initcall_level+0x157/0x210 init/main.c:1375 do_initcalls+0x49/0x90 init/main.c:1391 kernel_init_freeable+0x425/0x5c0 init/main.c:1615 kernel_init+0x19/0x290 init/main.c:1506 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Memory state around the buggy address: ffff88805ff1fe00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88805ff1fe80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88805ff1ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88805ff1ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88805ff20000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================