================================================================== 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 ffff88805b438bb8 by task xfsaild/loop6/7683 CPU: 1 UID: 0 PID: 7683 Comm: xfsaild/loop6 Not tainted 6.15.0-rc7-syzkaller #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+0xb4/0x290 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+0xd92/0x2940 fs/xfs/xfs_trans_ail.c:700 kthread+0x711/0x8a0 kernel/kthread.c:464 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:153 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Allocated by task 7656: 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:4147 [inline] slab_alloc_node mm/slub.c:4196 [inline] kmem_cache_alloc_noprof+0x1c1/0x3c0 mm/slub.c:4203 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:3701 [inline] open_last_lookups fs/namei.c:3800 [inline] path_openat+0x14f1/0x3830 fs/namei.c:4036 do_filp_open+0x1fa/0x410 fs/namei.c:4066 do_sys_openat2+0x121/0x1c0 fs/open.c:1429 do_sys_open fs/open.c:1444 [inline] __do_sys_creat fs/open.c:1522 [inline] __se_sys_creat fs/open.c:1516 [inline] __x64_sys_creat+0x8f/0xc0 fs/open.c:1516 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf6/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 7524: 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:2380 [inline] slab_free mm/slub.c:4642 [inline] kmem_cache_free+0x192/0x3f0 mm/slub.c:4744 xfs_inode_free_callback+0x14f/0x1c0 fs/xfs/xfs_icache.c:161 rcu_do_batch kernel/rcu/tree.c:2568 [inline] rcu_core+0xca5/0x1710 kernel/rcu/tree.c:2824 handle_softirqs+0x283/0x870 kernel/softirq.c:579 __do_softirq kernel/softirq.c:613 [inline] invoke_softirq kernel/softirq.c:453 [inline] __irq_exit_rcu+0xca/0x1f0 kernel/softirq.c:680 irq_exit_rcu+0x9/0x30 kernel/softirq.c:696 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1049 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 The buggy address belongs to the object at ffff88805b438b88 which belongs to the cache xfs_ili of size 264 The buggy address is located 48 bytes inside of freed 264-byte region [ffff88805b438b88, ffff88805b438c90) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5b438 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000000 ffff88801d789000 dead000000000122 0000000000000000 raw: 0000000000000000 00000000800c000c 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 5950, tgid 5947 (syz.0.11), ts 102096663181, free_ts 29611014957 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1d8/0x230 mm/page_alloc.c:1714 prep_new_page mm/page_alloc.c:1722 [inline] get_page_from_freelist+0x21c7/0x22a0 mm/page_alloc.c:3684 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:4966 alloc_pages_mpol+0x232/0x4a0 mm/mempolicy.c:2301 alloc_slab_page mm/slub.c:2450 [inline] allocate_slab+0x8a/0x3b0 mm/slub.c:2618 new_slab mm/slub.c:2672 [inline] ___slab_alloc+0xbfc/0x1480 mm/slub.c:3858 __slab_alloc mm/slub.c:3948 [inline] __slab_alloc_node mm/slub.c:4023 [inline] slab_alloc_node mm/slub.c:4184 [inline] kmem_cache_alloc_noprof+0x283/0x3c0 mm/slub.c:4203 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+0x48a/0x6b0 fs/xfs/xfs_qm.c:1876 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/0x22f0 fs/xfs/xfs_mount.c:1053 xfs_fs_fill_super+0x1286/0x16d0 fs/xfs/xfs_super.c:1915 page last free pid 1 tgid 1 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1258 [inline] __free_frozen_pages+0xb05/0xcd0 mm/page_alloc.c:2721 __free_pages mm/page_alloc.c:5078 [inline] free_contig_range+0x159/0x440 mm/page_alloc.c:6934 destroy_args+0x86/0x460 mm/debug_vm_pgtable.c:1017 debug_vm_pgtable+0x3cf/0x410 mm/debug_vm_pgtable.c:1397 do_one_initcall+0x233/0x820 init/main.c:1257 do_initcall_level+0x137/0x1f0 init/main.c:1319 do_initcalls+0x69/0xd0 init/main.c:1335 kernel_init_freeable+0x3d9/0x570 init/main.c:1567 kernel_init+0x1d/0x1d0 init/main.c:1457 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:153 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Memory state around the buggy address: ffff88805b438a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88805b438b00: fb fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc >ffff88805b438b80: fc fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88805b438c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88805b438c80: fb fb fc fc fc fc fc fc fc fc fa fb fb fb fb fb ==================================================================