loop0: 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+0x2b5/0x3cc0 fs/ext4/inode.c:4673 Read of size 8 at addr ffff88806801ff40 by task syz.0.3849/13305 CPU: 0 PID: 13305 Comm: syz.0.3849 Not tainted 5.15.181-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025 Call Trace: dump_stack_lvl+0x168/0x230 lib/dump_stack.c:106 print_address_description+0x60/0x2d0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0xdf/0x130 mm/kasan/report.c:451 check_igot_inode fs/ext4/inode.c:-1 [inline] __ext4_iget+0x2b5/0x3cc0 fs/ext4/inode.c:4673 ext4_fill_super+0x77d5/0x9a00 fs/ext4/super.c:4841 mount_bdev+0x287/0x3c0 fs/super.c:1400 legacy_get_tree+0xe6/0x180 fs/fs_context.c:611 vfs_get_tree+0x88/0x270 fs/super.c:1530 do_new_mount+0x24a/0xa40 fs/namespace.c:3013 do_mount fs/namespace.c:3356 [inline] __do_sys_mount fs/namespace.c:3564 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3541 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7ff990aca10a 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:00007ff98e92fe68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007ff98e92fef0 RCX: 00007ff990aca10a RDX: 0000200000000180 RSI: 00002000000001c0 RDI: 00007ff98e92feb0 RBP: 0000200000000180 R08: 00007ff98e92fef0 R09: 0000000000800714 R10: 0000000000800714 R11: 0000000000000246 R12: 00002000000001c0 R13: 00007ff98e92feb0 R14: 00000000000004b7 R15: 0000200000000500 Allocated by task 3547: 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+0x9c/0xd0 mm/kasan/common.c:467 kasan_slab_alloc include/linux/kasan.h:254 [inline] slab_post_alloc_hook+0x4c/0x380 mm/slab.h:519 slab_alloc_node mm/slub.c:3220 [inline] slab_alloc mm/slub.c:3228 [inline] kmem_cache_alloc+0x100/0x290 mm/slub.c:3233 alloc_inode fs/inode.c:263 [inline] iget_locked+0x1f8/0x820 fs/inode.c:1308 kernfs_get_inode+0x4b/0x6d0 fs/kernfs/inode.c:250 kernfs_iop_lookup+0x1e5/0x310 fs/kernfs/dir.c:1143 __lookup_slow+0x27d/0x3d0 fs/namei.c:1663 lookup_slow+0x53/0x70 fs/namei.c:1680 walk_component+0x319/0x460 fs/namei.c:1976 link_path_walk+0x662/0xd40 fs/namei.c:-1 path_openat+0x27d/0x2f30 fs/namei.c:3738 do_filp_open+0x1b3/0x3e0 fs/namei.c:3769 do_sys_openat2+0x142/0x4a0 fs/open.c:1253 do_sys_open fs/open.c:1269 [inline] __do_sys_openat fs/open.c:1285 [inline] __se_sys_openat fs/open.c:1280 [inline] __x64_sys_openat+0x135/0x160 fs/open.c:1280 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 The buggy address belongs to the object at ffff88806801f7b0 which belongs to the cache inode_cache of size 1168 The buggy address is located 768 bytes to the right of 1168-byte region [ffff88806801f7b0, ffff88806801fc40) The buggy address belongs to the page: page:ffffea0001a00700 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x6801c head:ffffea0001a00700 order:2 compound_mapcount:0 compound_pincount:0 memcg:ffff888023365e01 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 ffffea0001a04f00 0000000400000004 ffff8880169e9780 raw: 0000000000000000 00000000000c000c 00000001ffffffff ffff888023365e01 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Reclaimable, gfp_mask 0x1d20d0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL|__GFP_RECLAIMABLE), pid 144, ts 68709050574, free_ts 58600136893 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x1b77/0x1c60 mm/page_alloc.c:4192 __alloc_pages+0x1e1/0x470 mm/page_alloc.c:5466 alloc_slab_page mm/slub.c:1775 [inline] allocate_slab mm/slub.c:1912 [inline] new_slab+0xc0/0x4b0 mm/slub.c:1975 ___slab_alloc+0x81e/0xdf0 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+0x195/0x290 mm/slub.c:3233 alloc_inode fs/inode.c:263 [inline] new_inode_pseudo+0x77/0x210 fs/inode.c:1001 new_inode+0x25/0x1c0 fs/inode.c:1030 debugfs_get_inode fs/debugfs/inode.c:72 [inline] __debugfs_create_file+0x148/0x510 fs/debugfs/inode.c:409 nsim_bpf_init+0x1c1/0x250 drivers/net/netdevsim/bpf.c:645 nsim_init_netdevsim drivers/net/netdevsim/netdev.c:311 [inline] nsim_create+0x2f7/0x3e0 drivers/net/netdevsim/netdev.c:365 __nsim_dev_port_add+0x5c7/0x980 drivers/net/netdevsim/dev.c:1312 nsim_dev_port_add_all+0x37/0x100 drivers/net/netdevsim/dev.c:1372 nsim_dev_reload_create drivers/net/netdevsim/dev.c:1421 [inline] nsim_dev_reload_up+0x48b/0x7f0 drivers/net/netdevsim/dev.c:910 devlink_reload+0x342/0x770 net/core/devlink.c:3970 devlink_pernet_pre_exit+0x19d/0x300 net/core/devlink.c:11543 ops_pre_exit_list net/core/net_namespace.c:162 [inline] cleanup_net+0x57b/0xb80 net/core/net_namespace.c:615 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+0x637/0x6c0 mm/page_alloc.c:3317 free_unref_page_list+0x122/0x7e0 mm/page_alloc.c:3433 release_pages+0x184b/0x1bb0 mm/swap.c:963 tlb_batch_pages_flush mm/mmu_gather.c:49 [inline] tlb_flush_mmu_free mm/mmu_gather.c:240 [inline] tlb_flush_mmu mm/mmu_gather.c:247 [inline] tlb_finish_mmu+0x164/0x2e0 mm/mmu_gather.c:338 unmap_region+0x315/0x360 mm/mmap.c:2657 __do_munmap+0x9d3/0xdc0 mm/mmap.c:2887 __vm_munmap+0x137/0x230 mm/mmap.c:2940 __do_sys_munmap mm/mmap.c:2966 [inline] __se_sys_munmap mm/mmap.c:2962 [inline] __x64_sys_munmap+0x67/0x70 mm/mmap.c:2962 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Memory state around the buggy address: ffff88806801fe00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88806801fe80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88806801ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88806801ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888068020000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================