loop1: detected capacity change from 0 to 2048 ================================================================== 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+0x2bb/0x3e80 fs/ext4/inode.c:4874 Read of size 8 at addr ffff8880551f7f30 by task syz.1.8655/23725 CPU: 1 PID: 23725 Comm: syz.1.8655 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: dump_stack_lvl+0x188/0x24e lib/dump_stack.c:106 print_address_description mm/kasan/report.c:316 [inline] print_report+0xa8/0x210 mm/kasan/report.c:420 kasan_report+0x10b/0x140 mm/kasan/report.c:524 check_igot_inode fs/ext4/inode.c:-1 [inline] __ext4_iget+0x2bb/0x3e80 fs/ext4/inode.c:4874 __ext4_fill_super fs/ext4/super.c:5465 [inline] ext4_fill_super+0x614c/0x78f0 fs/ext4/super.c:5693 get_tree_bdev+0x3e6/0x610 fs/super.c:1377 vfs_get_tree+0x88/0x270 fs/super.c:1584 do_new_mount+0x247/0xa40 fs/namespace.c:3078 do_mount fs/namespace.c:3421 [inline] __do_sys_mount fs/namespace.c:3629 [inline] __se_sys_mount+0x2e3/0x3d0 fs/namespace.c:3606 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f226279f3ca 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:00007f22636eae58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f22636eaee0 RCX: 00007f226279f3ca RDX: 0000200000001140 RSI: 00002000000007c0 RDI: 00007f22636eaea0 RBP: 0000200000001140 R08: 00007f22636eaee0 R09: 0000000000400c84 R10: 0000000000400c84 R11: 0000000000000246 R12: 00002000000007c0 R13: 00007f22636eaea0 R14: 0000000000000792 R15: 0000200000000000 Allocated by task 12872: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 __kasan_slab_alloc+0x6b/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x4b/0x490 mm/slab.h:737 slab_alloc_node mm/slub.c:3359 [inline] slab_alloc mm/slub.c:3367 [inline] __kmem_cache_alloc_lru mm/slub.c:3374 [inline] kmem_cache_alloc+0x18b/0x2f0 mm/slub.c:3383 radix_tree_node_alloc+0x197/0x3a0 lib/radix-tree.c:251 idr_get_free+0x28b/0xa10 lib/radix-tree.c:1504 idr_alloc_u32 lib/idr.c:48 [inline] idr_alloc_cyclic+0x286/0x610 lib/idr.c:127 __kernfs_new_node+0x135/0x7f0 fs/kernfs/dir.c:620 kernfs_new_node+0x148/0x250 fs/kernfs/dir.c:690 __kernfs_create_file+0x47/0x2e0 fs/kernfs/file.c:1068 cgroup_add_file kernel/cgroup/cgroup.c:4225 [inline] cgroup_addrm_files+0x80c/0xd50 kernel/cgroup/cgroup.c:4285 css_populate_dir+0x157/0x3b0 kernel/cgroup/cgroup.c:1794 cgroup_apply_control_enable+0x641/0xb00 kernel/cgroup/cgroup.c:3291 cgroup_mkdir+0xc7f/0xe70 kernel/cgroup/cgroup.c:5789 kernfs_iop_mkdir+0x23d/0x3d0 fs/kernfs/dir.c:1221 vfs_mkdir+0x386/0x570 fs/namei.c:4157 do_mkdirat+0x1d8/0x440 fs/namei.c:4182 __do_sys_mkdirat fs/namei.c:4197 [inline] __se_sys_mkdirat fs/namei.c:4195 [inline] __x64_sys_mkdirat+0x85/0x90 fs/namei.c:4195 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Last potentially related work creation: kasan_save_stack+0x3a/0x60 mm/kasan/common.c:46 __kasan_record_aux_stack+0xb2/0xc0 mm/kasan/generic.c:486 call_rcu+0x14f/0x950 kernel/rcu/tree.c:2849 xa_node_free lib/xarray.c:260 [inline] xas_delete_node lib/xarray.c:497 [inline] update_node lib/xarray.c:761 [inline] xas_store+0x1025/0x19e0 lib/xarray.c:846 memcg_destroy_list_lru mm/list_lru.c:385 [inline] list_lru_destroy+0x2b2/0x650 mm/list_lru.c:597 deactivate_locked_super+0xab/0xf0 fs/super.c:340 cleanup_mnt+0x471/0x4f0 fs/namespace.c:1191 task_work_run+0x1d0/0x260 kernel/task_work.c:203 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xe6/0x110 kernel/entry/common.c:177 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:303 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Second to last potentially related work creation: kasan_save_stack+0x3a/0x60 mm/kasan/common.c:46 __kasan_record_aux_stack+0xb2/0xc0 mm/kasan/generic.c:486 call_rcu+0x14f/0x950 kernel/rcu/tree.c:2849 radix_tree_node_free lib/radix-tree.c:308 [inline] radix_tree_shrink lib/radix-tree.c:534 [inline] delete_node+0x5a5/0xa30 lib/radix-tree.c:552 radix_tree_delete_item+0x2df/0x3f0 lib/radix-tree.c:1428 free_pid+0x17d/0x260 kernel/pid.c:152 __unhash_process kernel/exit.c:128 [inline] __exit_signal kernel/exit.c:198 [inline] release_task+0xced/0x1680 kernel/exit.c:261 wait_task_zombie kernel/exit.c:1216 [inline] wait_consider_task+0x19e1/0x2e70 kernel/exit.c:1443 do_wait_thread kernel/exit.c:1506 [inline] do_wait+0x31d/0xb80 kernel/exit.c:1623 kernel_wait4+0x22b/0x2b0 kernel/exit.c:1786 __do_sys_wait4 kernel/exit.c:1814 [inline] __se_sys_wait4 kernel/exit.c:1810 [inline] __x64_sys_wait4+0x163/0x230 kernel/exit.c:1810 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff8880551f7c80 which belongs to the cache radix_tree_node of size 576 The buggy address is located 112 bytes to the right of 576-byte region [ffff8880551f7c80, ffff8880551f7ec0) The buggy address belongs to the physical page: page:ffffea0001547d00 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff8880551f6940 pfn:0x551f4 head:ffffea0001547d00 order:2 compound_mapcount:0 compound_pincount:0 memcg:ffff8880231ff101 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 ffffea0001c58608 ffffea0001549508 ffff88801744fdc0 raw: ffff8880551f6940 0000000000170006 00000001ffffffff ffff8880231ff101 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Reclaimable, gfp_mask 0x152810(GFP_NOWAIT|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL|__GFP_RECLAIMABLE), pid 4583, tgid 4581 (syz.0.101), ts 99742209461, free_ts 25660013909 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2560 prep_new_page mm/page_alloc.c:2567 [inline] get_page_from_freelist+0x206b/0x2180 mm/page_alloc.c:4358 __alloc_pages+0x1ec/0x4f0 mm/page_alloc.c:5658 alloc_slab_page+0x5d/0x180 mm/slub.c:1799 allocate_slab mm/slub.c:1944 [inline] new_slab+0x87/0x2d0 mm/slub.c:1997 ___slab_alloc+0xbc5/0x1240 mm/slub.c:3154 __slab_alloc mm/slub.c:3240 [inline] slab_alloc_node mm/slub.c:3325 [inline] slab_alloc mm/slub.c:3367 [inline] __kmem_cache_alloc_lru mm/slub.c:3374 [inline] kmem_cache_alloc_lru+0x104/0x2e0 mm/slub.c:3390 xas_alloc lib/xarray.c:377 [inline] xas_expand lib/xarray.c:584 [inline] xas_create+0x6ee/0x1720 lib/xarray.c:655 xas_store+0x9f/0x19e0 lib/xarray.c:789 __filemap_add_folio+0x6e6/0x1920 mm/filemap.c:908 filemap_add_folio+0xa8/0x3d0 mm/filemap.c:962 do_read_cache_folio+0x1d7/0x790 mm/filemap.c:3626 read_mapping_folio include/linux/pagemap.h:799 [inline] read_part_sector+0xce/0x360 block/partitions/core.c:724 amiga_partition+0xdc/0x17e0 block/partitions/amiga.c:53 check_partition block/partitions/core.c:146 [inline] blk_add_partitions block/partitions/core.c:609 [inline] bdev_disk_changed+0x7f9/0x1450 block/partitions/core.c:695 loop_reread_partitions drivers/block/loop.c:513 [inline] loop_set_status+0x72a/0x910 drivers/block/loop.c:1318 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1487 [inline] free_pcp_prepare mm/page_alloc.c:1537 [inline] free_unref_page_prepare+0x8e5/0x9e0 mm/page_alloc.c:3414 free_unref_page+0x2e/0x3f0 mm/page_alloc.c:3509 free_contig_range+0x9d/0x150 mm/page_alloc.c:9498 destroy_args+0xef/0xa0e mm/debug_vm_pgtable.c:1031 debug_vm_pgtable+0x33c/0x38e mm/debug_vm_pgtable.c:1359 do_one_initcall+0x257/0x800 init/main.c:1270 do_initcall_level+0x13d/0x1ed init/main.c:1343 do_initcalls+0x4b/0x8a init/main.c:1359 kernel_init_freeable+0x401/0x5ab init/main.c:1598 kernel_init+0x19/0x1b0 init/main.c:1486 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Memory state around the buggy address: ffff8880551f7e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880551f7e80: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc >ffff8880551f7f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880551f7f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880551f8000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================