================================================================== BUG: KASAN: slab-use-after-free in xfs_inode_item_push+0x28f/0x2e0 fs/xfs/xfs_inode_item.c:797 Read of size 8 at addr ffff888079941030 by task xfsaild/loop7/9398 CPU: 0 UID: 0 PID: 9398 Comm: xfsaild/loop7 Not tainted 6.15.0-syzkaller-11802-g1af80d00e1e0 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:408 [inline] print_report+0xd2/0x2b0 mm/kasan/report.c:521 kasan_report+0x118/0x150 mm/kasan/report.c:634 xfs_inode_item_push+0x28f/0x2e0 fs/xfs/xfs_inode_item.c:797 xfsaild_push_item fs/xfs/xfs_trans_ail.c:390 [inline] xfsaild_push fs/xfs/xfs_trans_ail.c:518 [inline] xfsaild+0xd95/0x2940 fs/xfs/xfs_trans_ail.c:700 kthread+0x711/0x8a0 kernel/kthread.c:464 ret_from_fork+0x3f9/0x770 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Allocated by task 9374: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:68 unpoison_slab_object mm/kasan/common.c:319 [inline] __kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:345 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4148 [inline] slab_alloc_node mm/slub.c:4197 [inline] kmem_cache_alloc_noprof+0x1c1/0x3c0 mm/slub.c:4204 xfs_inode_item_init+0x33/0xc0 fs/xfs/xfs_inode_item.c:892 xfs_trans_ijoin+0xe5/0x130 fs/xfs/libxfs/xfs_trans_inode.c:36 xfs_icreate+0xe4/0x160 fs/xfs/xfs_inode.c:605 xfs_create+0x627/0xad0 fs/xfs/xfs_inode.c:721 xfs_generic_create+0x3c9/0xad0 fs/xfs/xfs_iops.c:216 lookup_open fs/namei.c:3708 [inline] open_last_lookups fs/namei.c:3807 [inline] path_openat+0x14f4/0x3830 fs/namei.c:4043 do_filp_open+0x1fa/0x410 fs/namei.c:4073 do_sys_openat2+0x121/0x1c0 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_sys_creat fs/open.c:1530 [inline] __se_sys_creat fs/open.c:1524 [inline] __x64_sys_creat+0x8f/0xc0 fs/open.c:1524 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 23: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:68 kasan_save_free_info+0x46/0x50 mm/kasan/generic.c:576 poison_slab_object mm/kasan/common.c:247 [inline] __kasan_slab_free+0x62/0x70 mm/kasan/common.c:264 kasan_slab_free include/linux/kasan.h:233 [inline] slab_free_hook mm/slub.c:2381 [inline] slab_free mm/slub.c:4643 [inline] kmem_cache_free+0x18f/0x400 mm/slub.c:4745 xfs_inode_free_callback+0x14f/0x1c0 fs/xfs/xfs_icache.c:161 rcu_do_batch kernel/rcu/tree.c:2576 [inline] rcu_core+0xca8/0x1710 kernel/rcu/tree.c:2832 handle_softirqs+0x283/0x870 kernel/softirq.c:579 run_ksoftirqd+0x9b/0x100 kernel/softirq.c:968 smpboot_thread_fn+0x542/0xa60 kernel/smpboot.c:164 kthread+0x711/0x8a0 kernel/kthread.c:464 ret_from_fork+0x3f9/0x770 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 The buggy address belongs to the object at ffff888079941000 which belongs to the cache xfs_ili of size 264 The buggy address is located 48 bytes inside of freed 264-byte region [ffff888079941000, ffff888079941108) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x79941 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000000 ffff88801d7f7640 dead000000000122 0000000000000000 raw: 0000000000000000 00000000000c000c 00000000f5000000 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Reclaimable, gfp_mask 0x52c50(GFP_NOFS|__GFP_RECLAIMABLE|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 7536, tgid 7534 (syz.5.268), ts 207657985900, free_ts 205447350519 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1704 prep_new_page mm/page_alloc.c:1712 [inline] get_page_from_freelist+0x21d5/0x22b0 mm/page_alloc.c:3669 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:4959 alloc_pages_mpol+0x232/0x4a0 mm/mempolicy.c:2419 alloc_slab_page mm/slub.c:2451 [inline] allocate_slab+0x8a/0x3b0 mm/slub.c:2619 new_slab mm/slub.c:2673 [inline] ___slab_alloc+0xbfc/0x1480 mm/slub.c:3859 __slab_alloc mm/slub.c:3949 [inline] __slab_alloc_node mm/slub.c:4024 [inline] slab_alloc_node mm/slub.c:4185 [inline] kmem_cache_alloc_noprof+0x283/0x3c0 mm/slub.c:4204 xfs_inode_item_init+0x33/0xc0 fs/xfs/xfs_inode_item.c:892 xfs_trans_ijoin+0xe5/0x130 fs/xfs/libxfs/xfs_trans_inode.c:36 xfs_icreate+0xe4/0x160 fs/xfs/xfs_inode.c:605 xfs_qm_qino_alloc+0x232/0x6a0 fs/xfs/xfs_qm.c:1034 xfs_qm_init_quotainos+0x4bf/0x6b0 fs/xfs/xfs_qm.c:1884 xfs_qm_init_quotainfo+0x181/0x1160 fs/xfs/xfs_qm.c:860 xfs_qm_mount_quotas+0xa6/0x670 fs/xfs/xfs_qm.c:1727 xfs_mountfs+0x1b6f/0x2330 fs/xfs/xfs_mount.c:1205 xfs_fs_fill_super+0x11b3/0x1600 fs/xfs/xfs_super.c:1965 page last free pid 6284 tgid 6284 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1248 [inline] __free_frozen_pages+0xc65/0xe60 mm/page_alloc.c:2706 discard_slab mm/slub.c:2717 [inline] free_partial mm/slub.c:5872 [inline] __kmem_cache_shutdown+0x1ce/0x260 mm/slub.c:5897 kmem_cache_destroy+0x76/0x160 mm/slab_common.c:523 f2fs_put_super+0xb8c/0x1170 fs/f2fs/super.c:1712 generic_shutdown_super+0x135/0x2c0 fs/super.c:643 kill_block_super+0x44/0x90 fs/super.c:1753 kill_f2fs_super+0x390/0x6c0 fs/f2fs/super.c:5082 deactivate_locked_super+0xb9/0x130 fs/super.c:474 cleanup_mnt+0x425/0x4c0 fs/namespace.c:1417 task_work_run+0x1d4/0x260 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop+0xec/0x110 kernel/entry/common.c:114 exit_to_user_mode_prepare include/linux/entry-common.h:330 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:414 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:449 [inline] do_syscall_64+0x2bd/0x3b0 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff888079940f00: 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc ffff888079940f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888079941000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888079941080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888079941100: fb fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb ==================================================================