loop1: 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+0x2bd/0x3f60 fs/ext4/inode.c:4850 Read of size 8 at addr ffff88805cb37f30 by task syz.1.7751/23340 CPU: 1 PID: 23340 Comm: syz.1.7751 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/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+0x2bd/0x3f60 fs/ext4/inode.c:4850 __ext4_fill_super fs/ext4/super.c:5517 [inline] ext4_fill_super+0x512e/0x6870 fs/ext4/super.c:5744 get_tree_bdev+0x3e5/0x520 fs/super.c:1591 vfs_get_tree+0x8c/0x280 fs/super.c:1764 do_new_mount+0x24a/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/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f716e79e0ca 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:00007f716f5abe58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f716f5abee0 RCX: 00007f716e79e0ca RDX: 0000200000000580 RSI: 00002000000005c0 RDI: 00007f716f5abea0 RBP: 0000200000000580 R08: 00007f716f5abee0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00002000000005c0 R13: 00007f716f5abea0 R14: 0000000000000561 R15: 0000200000000600 Allocated by task 23224: 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+0x6a/0x4d0 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+0x17e/0x2c0 mm/slub.c:3519 radix_tree_node_alloc+0x197/0x3a0 lib/radix-tree.c:253 __radix_tree_create lib/radix-tree.c:624 [inline] radix_tree_insert+0x1fd/0x650 lib/radix-tree.c:712 btrfs_insert_fs_root+0xf8/0x4e0 fs/btrfs/disk-io.c:1177 btrfs_get_root_ref+0x6a8/0xb10 fs/btrfs/disk-io.c:1345 btrfs_get_fs_root fs/btrfs/disk-io.c:1377 [inline] btrfs_read_roots fs/btrfs/disk-io.c:2239 [inline] init_tree_roots+0xf1b/0x1d50 fs/btrfs/disk-io.c:2633 open_ctree+0x18a1/0x2d50 fs/btrfs/disk-io.c:3384 btrfs_fill_super+0x1c2/0x300 fs/btrfs/super.c:1163 btrfs_mount_root+0x88b/0x8f0 fs/btrfs/super.c:1527 legacy_get_tree+0xea/0x180 fs/fs_context.c:662 vfs_get_tree+0x8c/0x280 fs/super.c:1764 fc_mount fs/namespace.c:1117 [inline] vfs_kern_mount+0xbe/0x160 fs/namespace.c:1147 btrfs_mount+0x32d/0xb10 fs/btrfs/super.c:1587 legacy_get_tree+0xea/0x180 fs/fs_context.c:662 vfs_get_tree+0x8c/0x280 fs/super.c:1764 do_new_mount+0x24a/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/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Freed by task 22: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4e/0x70 mm/kasan/common.c:53 kasan_save_free_info+0x28/0x40 mm/kasan/generic.c:522 ____kasan_slab_free+0x126/0x1f0 mm/kasan/common.c:237 kasan_slab_free include/linux/kasan.h:164 [inline] slab_free_hook mm/slub.c:1811 [inline] slab_free_freelist_hook+0x130/0x1a0 mm/slub.c:1837 slab_free mm/slub.c:3830 [inline] kmem_cache_free+0xf8/0x290 mm/slub.c:3852 rcu_do_batch kernel/rcu/tree.c:2194 [inline] rcu_core+0x9c1/0x17f0 kernel/rcu/tree.c:2467 handle_softirqs+0x27d/0x820 kernel/softirq.c:578 run_ksoftirqd+0xa8/0x100 kernel/softirq.c:950 smpboot_thread_fn+0x651/0x9f0 kernel/smpboot.c:164 kthread+0x2fa/0x390 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293 Last potentially related work creation: kasan_save_stack+0x3e/0x60 mm/kasan/common.c:46 __kasan_record_aux_stack+0xaf/0xc0 mm/kasan/generic.c:492 __call_rcu_common kernel/rcu/tree.c:2721 [inline] call_rcu+0x153/0x900 kernel/rcu/tree.c:2837 radix_tree_node_free lib/radix-tree.c:310 [inline] delete_node+0x1b8/0xa30 lib/radix-tree.c:573 radix_tree_delete_item+0x2e3/0x3f0 lib/radix-tree.c:1430 btrfs_drop_and_free_fs_root+0x7b/0x210 fs/btrfs/disk-io.c:4174 btrfs_free_fs_roots+0x2ed/0x3c0 fs/btrfs/disk-io.c:1844 close_ctree+0x7d6/0xcc0 fs/btrfs/disk-io.c:4461 generic_shutdown_super+0x134/0x2b0 fs/super.c:693 kill_anon_super+0x3b/0x70 fs/super.c:1303 btrfs_kill_super+0x41/0x50 fs/btrfs/super.c:2146 deactivate_locked_super+0x97/0x100 fs/super.c:481 cleanup_mnt+0x3d7/0x460 fs/namespace.c:1259 task_work_run+0x1d4/0x260 kernel/task_work.c:245 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:291 [inline] syscall_exit_to_user_mode+0x1a/0x50 kernel/entry/common.c:302 do_syscall_64+0x61/0xb0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Second to last potentially related work creation: kasan_save_stack+0x3e/0x60 mm/kasan/common.c:46 __kasan_record_aux_stack+0xaf/0xc0 mm/kasan/generic.c:492 __call_rcu_common kernel/rcu/tree.c:2721 [inline] call_rcu+0x153/0x900 kernel/rcu/tree.c:2837 xa_node_free lib/xarray.c:258 [inline] xas_delete_node lib/xarray.c:495 [inline] update_node lib/xarray.c:759 [inline] xas_store+0x1029/0x19e0 lib/xarray.c:844 __xa_erase lib/xarray.c:1495 [inline] xa_erase+0x68/0x100 lib/xarray.c:1516 simple_offset_remove+0x62/0x90 fs/libfs.c:331 shmem_unlink+0x1ad/0x2e0 mm/shmem.c:3357 shmem_rmdir+0x6b/0x80 mm/shmem.c:3375 vfs_rmdir+0x352/0x4b0 fs/namei.c:4204 do_rmdir+0x29f/0x590 fs/namei.c:4263 __do_sys_unlinkat fs/namei.c:4441 [inline] __se_sys_unlinkat fs/namei.c:4435 [inline] __x64_sys_unlinkat+0xc4/0xe0 fs/namei.c:4435 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff88805cb37c80 which belongs to the cache radix_tree_node of size 576 The buggy address is located 112 bytes to the right of allocated 576-byte region [ffff88805cb37c80, ffff88805cb37ec0) The buggy address belongs to the physical page: page:ffffea000172cd00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5cb34 head:ffffea000172cd00 order:2 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff88802bc29501 flags: 0xfff00000000840(slab|head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000840 ffff888017c4fdc0 ffffea00017dfd00 dead000000000004 raw: 0000000000000000 0000000000170017 00000001ffffffff ffff88802bc29501 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 6241, tgid 6241 (udevd), ts 256691796209, free_ts 193037705869 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1c1/0x200 mm/page_alloc.c:1582 prep_new_page mm/page_alloc.c:1589 [inline] get_page_from_freelist+0x2181/0x22a0 mm/page_alloc.c:3221 __alloc_pages+0x1f0/0x460 mm/page_alloc.c:4501 alloc_slab_page+0x5d/0x180 mm/slub.c:1881 allocate_slab mm/slub.c:2028 [inline] new_slab+0x87/0x2d0 mm/slub.c:2081 ___slab_alloc+0xc5c/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_lru+0xfc/0x2b0 mm/slub.c:3526 xas_alloc lib/xarray.c:375 [inline] xas_create+0x111f/0x1760 lib/xarray.c:677 xas_store+0xa3/0x19e0 lib/xarray.c:787 __filemap_add_folio+0x6ae/0x16d0 mm/filemap.c:913 filemap_add_folio+0xac/0x3d0 mm/filemap.c:967 page_cache_ra_unbounded+0x19d/0x740 mm/readahead.c:250 do_page_cache_ra mm/readahead.c:299 [inline] force_page_cache_ra mm/readahead.c:330 [inline] page_cache_sync_ra+0x3db/0x490 mm/readahead.c:694 page_cache_sync_readahead include/linux/pagemap.h:1325 [inline] filemap_get_pages+0x3d2/0x1f10 mm/filemap.c:2594 filemap_read+0x409/0xf20 mm/filemap.c:2690 blkdev_read_iter+0x34a/0x480 block/fops.c:744 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1182 [inline] free_unref_page_prepare+0x7d7/0x8f0 mm/page_alloc.c:2366 free_unref_page+0x32/0x2e0 mm/page_alloc.c:2459 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+0x6a/0x4d0 mm/slab.h:767 slab_alloc_node mm/slub.c:3495 [inline] __kmem_cache_alloc_node+0x194/0x250 mm/slub.c:3534 __do_kmalloc_node mm/slab_common.c:1006 [inline] __kmalloc+0xa7/0x240 mm/slab_common.c:1020 kmalloc include/linux/slab.h:604 [inline] tomoyo_realpath_from_path+0xe6/0x5c0 security/tomoyo/realpath.c:251 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_check_open_permission+0x224/0x460 security/tomoyo/file.c:771 security_file_open+0x62/0xa0 security/security.c:2855 do_dentry_open+0x32b/0x14b0 fs/open.c:916 do_open fs/namei.c:3640 [inline] path_openat+0x284f/0x3270 fs/namei.c:3797 Memory state around the buggy address: ffff88805cb37e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88805cb37e80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc >ffff88805cb37f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88805cb37f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88805cb38000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================