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+0x2c0/0x3f40 fs/ext4/inode.c:4843 Read of size 8 at addr ffff8880782aff30 by task syz.4.13672/5194 CPU: 0 PID: 5194 Comm: syz.4.13672 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/24/2026 Call Trace: dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0xa8/0x210 mm/kasan/report.c:468 kasan_report+0x117/0x150 mm/kasan/report.c:581 check_igot_inode fs/ext4/inode.c:-1 [inline] __ext4_iget+0x2c0/0x3f40 fs/ext4/inode.c:4843 __ext4_fill_super fs/ext4/super.c:5513 [inline] ext4_fill_super+0x5020/0x6790 fs/ext4/super.c:5740 get_tree_bdev+0x3f3/0x520 fs/super.c:1591 vfs_get_tree+0x8c/0x280 fs/super.c:1764 do_new_mount+0x24b/0xa40 fs/namespace.c:3386 do_mount fs/namespace.c:3726 [inline] __do_sys_mount fs/namespace.c:3935 [inline] __se_sys_mount+0x2e7/0x3d0 fs/namespace.c:3912 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fe15699d20a Code: 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fe1577bae58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fe1577baee0 RCX: 00007fe15699d20a RDX: 0000200000000080 RSI: 0000200000000480 RDI: 00007fe1577baea0 RBP: 0000200000000080 R08: 00007fe1577baee0 R09: 0000000000000010 R10: 0000000000000010 R11: 0000000000000246 R12: 0000200000000480 R13: 00007fe1577baea0 R14: 00000000000004c2 R15: 00002000000000c0 Allocated by task 18069: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4e/0x70 mm/kasan/common.c:53 __kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:188 [inline] slab_post_alloc_hook+0x6e/0x4b0 mm/slab.h:767 slab_alloc_node mm/slub.c:3495 [inline] slab_alloc mm/slub.c:3503 [inline] __kmem_cache_alloc_lru mm/slub.c:3510 [inline] kmem_cache_alloc+0x11a/0x2d0 mm/slub.c:3519 kmem_cache_zalloc include/linux/slab.h:711 [inline] alloc_buffer_head+0x2d/0x280 fs/buffer.c:3027 folio_alloc_buffers+0x39b/0x980 fs/buffer.c:935 folio_create_empty_buffers+0x3a/0x720 fs/buffer.c:1648 ntfs_read_block fs/ntfs/aops.c:192 [inline] ntfs_read_folio+0xe1f/0x2990 fs/ntfs/aops.c:436 filemap_read_folio+0x172/0x760 mm/filemap.c:2420 do_read_cache_folio+0x468/0x7d0 mm/filemap.c:3804 do_read_cache_page+0x32/0x250 mm/filemap.c:3870 read_mapping_page include/linux/pagemap.h:892 [inline] ntfs_map_page fs/ntfs/aops.h:75 [inline] check_mft_mirror fs/ntfs/super.c:1117 [inline] load_system_files+0x4f5/0x4550 fs/ntfs/super.c:1780 ntfs_fill_super+0x1818/0x2a50 fs/ntfs/super.c:2900 mount_bdev+0x221/0x2d0 fs/super.c:1643 legacy_get_tree+0xea/0x180 fs/fs_context.c:662 vfs_get_tree+0x8c/0x280 fs/super.c:1764 do_new_mount+0x24b/0xa40 fs/namespace.c:3386 do_mount fs/namespace.c:3726 [inline] __do_sys_mount fs/namespace.c:3935 [inline] __se_sys_mount+0x2e7/0x3d0 fs/namespace.c:3912 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff8880782afe80 which belongs to the cache buffer_head of size 168 The buggy address is located 8 bytes to the right of allocated 168-byte region [ffff8880782afe80, ffff8880782aff28) The buggy address belongs to the physical page: page:ffffea0001e0abc0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x782af memcg:ffff8880258c6201 flags: 0xfff00000000800(slab|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000800 ffff88801b276c80 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000110011 00000001ffffffff ffff8880258c6201 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Reclaimable, gfp_mask 0x112c50(GFP_NOFS|__GFP_NOWARN|__GFP_NORETRY|__GFP_HARDWALL|__GFP_RECLAIMABLE), pid 18069, tgid 18068 (syz.2.5344), ts 690330377374, free_ts 682325222525 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1c1/0x200 mm/page_alloc.c:1581 prep_new_page mm/page_alloc.c:1588 [inline] get_page_from_freelist+0x1951/0x19e0 mm/page_alloc.c:3220 __alloc_pages+0x1f0/0x460 mm/page_alloc.c:4486 alloc_slab_page+0x5d/0x160 mm/slub.c:1881 allocate_slab mm/slub.c:2028 [inline] new_slab+0x87/0x2d0 mm/slub.c:2081 ___slab_alloc+0xc5d/0x12f0 mm/slub.c:3253 __slab_alloc mm/slub.c:3339 [inline] __slab_alloc_node mm/slub.c:3392 [inline] slab_alloc_node mm/slub.c:3485 [inline] slab_alloc mm/slub.c:3503 [inline] __kmem_cache_alloc_lru mm/slub.c:3510 [inline] kmem_cache_alloc+0x1b3/0x2d0 mm/slub.c:3519 kmem_cache_zalloc include/linux/slab.h:711 [inline] alloc_buffer_head+0x2d/0x280 fs/buffer.c:3027 folio_alloc_buffers+0x39b/0x980 fs/buffer.c:935 folio_create_empty_buffers+0x3a/0x720 fs/buffer.c:1648 ntfs_read_block fs/ntfs/aops.c:192 [inline] ntfs_read_folio+0xe1f/0x2990 fs/ntfs/aops.c:436 filemap_read_folio+0x172/0x760 mm/filemap.c:2420 do_read_cache_folio+0x468/0x7d0 mm/filemap.c:3804 do_read_cache_page+0x32/0x250 mm/filemap.c:3870 read_mapping_page include/linux/pagemap.h:892 [inline] ntfs_map_page fs/ntfs/aops.h:75 [inline] check_mft_mirror fs/ntfs/super.c:1117 [inline] load_system_files+0x4f5/0x4550 fs/ntfs/super.c:1780 ntfs_fill_super+0x1818/0x2a50 fs/ntfs/super.c:2900 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1181 [inline] free_unref_page_prepare+0x7b2/0x8c0 mm/page_alloc.c:2365 free_unref_page+0x32/0x2e0 mm/page_alloc.c:2458 discard_slab mm/slub.c:2127 [inline] __unfreeze_partials+0x1cf/0x210 mm/slub.c:2667 put_cpu_partial+0x17c/0x250 mm/slub.c:2743 __slab_free+0x319/0x400 mm/slub.c:3700 qlink_free mm/kasan/quarantine.c:166 [inline] qlist_free_all+0x75/0xd0 mm/kasan/quarantine.c:185 kasan_quarantine_reduce+0x143/0x160 mm/kasan/quarantine.c:292 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:306 kasan_slab_alloc include/linux/kasan.h:188 [inline] slab_post_alloc_hook+0x6e/0x4b0 mm/slab.h:767 slab_alloc_node mm/slub.c:3495 [inline] __kmem_cache_alloc_node+0x13a/0x250 mm/slub.c:3534 __do_kmalloc_node mm/slab_common.c:1006 [inline] __kmalloc+0xa4/0x230 mm/slab_common.c:1020 kmalloc include/linux/slab.h:604 [inline] tomoyo_realpath_from_path+0xe3/0x5d0 security/tomoyo/realpath.c:251 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_perm+0x282/0x560 security/tomoyo/file.c:822 security_inode_getattr+0xd3/0x120 security/security.c:2153 vfs_getattr fs/stat.c:173 [inline] vfs_fstat fs/stat.c:198 [inline] __do_sys_newfstat fs/stat.c:473 [inline] __se_sys_newfstat fs/stat.c:470 [inline] __x64_sys_newfstat+0x12c/0x250 fs/stat.c:470 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xa0 arch/x86/entry/common.c:76 Memory state around the buggy address: ffff8880782afe00: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ffff8880782afe80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880782aff00: 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880782aff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880782b0000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================