================================================================== BUG: KASAN: slab-use-after-free in xfs_inode_item_push+0x396/0x680 fs/xfs/xfs_inode_item.c:798 Read of size 8 at addr ffff8880501c5698 by task xfsaild/loop2/7938 CPU: 0 UID: 0 PID: 7938 Comm: xfsaild/loop2 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xca/0x240 mm/kasan/report.c:482 kasan_report+0x118/0x150 mm/kasan/report.c:595 xfs_inode_item_push+0x396/0x680 fs/xfs/xfs_inode_item.c:798 xfsaild_push_item fs/xfs/xfs_trans_ail.c:390 [inline] xfsaild_push fs/xfs/xfs_trans_ail.c:518 [inline] xfsaild+0xd95/0x28c0 fs/xfs/xfs_trans_ail.c:700 kthread+0x389/0x480 kernel/kthread.c:467 ret_from_fork+0x510/0xa50 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Allocated by task 7915: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 unpoison_slab_object mm/kasan/common.c:340 [inline] __kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:366 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:5187 [inline] slab_alloc_node mm/slub.c:5500 [inline] kmem_cache_alloc_noprof+0x37d/0x710 mm/slub.c:5507 xfs_inode_item_init+0x33/0xc0 fs/xfs/xfs_inode_item.c:926 xfs_trans_ijoin+0xe5/0x130 fs/xfs/libxfs/xfs_trans_inode.c:36 xfs_icreate fs/xfs/xfs_inode.c:605 [inline] xfs_create_tmpfile+0x38c/0x5d0 fs/xfs/xfs_inode.c:829 xfs_generic_create+0x3a5/0xad0 fs/xfs/xfs_iops.c:227 xfs_vn_tmpfile+0x63/0xd0 fs/xfs/xfs_iops.c:1276 vfs_tmpfile+0x400/0x890 fs/namei.c:4720 kernel_tmpfile_open+0x4d/0x90 fs/namei.c:4764 ovl_do_tmpfile fs/overlayfs/overlayfs.h:400 [inline] ovl_make_workdir fs/overlayfs/super.c:708 [inline] ovl_get_workdir fs/overlayfs/super.c:840 [inline] ovl_fill_super_creds fs/overlayfs/super.c:1453 [inline] ovl_fill_super+0x392c/0x5a90 fs/overlayfs/super.c:1567 vfs_get_super fs/super.c:1324 [inline] get_tree_nodev+0xbb/0x150 fs/super.c:1343 vfs_get_tree+0x92/0x2a0 fs/super.c:1751 fc_mount fs/namespace.c:1204 [inline] do_new_mount_fc fs/namespace.c:3763 [inline] do_new_mount+0x31a/0xcf0 fs/namespace.c:3839 do_mount fs/namespace.c:4162 [inline] __do_sys_mount fs/namespace.c:4351 [inline] __se_sys_mount+0x313/0x410 fs/namespace.c:4328 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xec/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 5840: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 kasan_save_free_info+0x46/0x50 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:253 [inline] __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2768 [inline] slab_free mm/slub.c:6911 [inline] kmem_cache_free+0x195/0x630 mm/slub.c:7022 xfs_inode_free_callback+0x14f/0x1c0 fs/xfs/xfs_icache.c:161 rcu_do_batch kernel/rcu/tree.c:2617 [inline] rcu_core+0x7bd/0x1060 kernel/rcu/tree.c:2869 handle_softirqs+0x22b/0x7c0 kernel/softirq.c:626 __do_softirq kernel/softirq.c:660 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0x60/0x150 kernel/softirq.c:727 irq_exit_rcu+0x9/0x30 kernel/softirq.c:743 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1056 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1056 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 The buggy address belongs to the object at ffff8880501c5668 which belongs to the cache xfs_ili of size 264 The buggy address is located 48 bytes inside of freed 264-byte region [ffff8880501c5668, ffff8880501c5770) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x501c5 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000000 ffff88801c7fb780 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 6844, tgid 6844 (syz-executor), ts 201218498336, free_ts 196059804586 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x23d/0x2a0 mm/page_alloc.c:1887 prep_new_page mm/page_alloc.c:1895 [inline] get_page_from_freelist+0x23a5/0x2440 mm/page_alloc.c:3948 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5236 alloc_pages_mpol+0x232/0x4a0 mm/mempolicy.c:2486 alloc_slab_page mm/slub.c:3303 [inline] allocate_slab+0x87/0x670 mm/slub.c:3478 new_slab mm/slub.c:3536 [inline] ___slab_alloc+0xdb6/0x17b0 mm/slub.c:4890 __slab_alloc+0x65/0x100 mm/slub.c:5013 __slab_alloc_node mm/slub.c:5089 [inline] slab_alloc_node mm/slub.c:5488 [inline] kmem_cache_alloc_noprof+0x40f/0x710 mm/slub.c:5507 xfs_inode_item_init+0x33/0xc0 fs/xfs/xfs_inode_item.c:926 xfs_trans_ijoin+0xe5/0x130 fs/xfs/libxfs/xfs_trans_inode.c:36 xfs_trans_alloc_dir+0x178/0x620 fs/xfs/xfs_trans.c:1378 xfs_remove+0x481/0x940 fs/xfs/xfs_inode.c:1952 xfs_vn_unlink+0xfb/0x210 fs/xfs/xfs_iops.c:413 vfs_unlink+0x272/0x6c0 fs/namei.c:5468 filename_unlinkat+0x3bb/0x5f0 fs/namei.c:5538 __do_sys_unlink fs/namei.c:5573 [inline] __se_sys_unlink+0x2e/0x140 fs/namei.c:5570 page last free pid 7788 tgid 7788 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1436 [inline] __free_frozen_pages+0xb99/0xd10 mm/page_alloc.c:2976 discard_slab mm/slub.c:3580 [inline] __put_partials+0x146/0x170 mm/slub.c:4120 __slab_free+0x294/0x320 mm/slub.c:6193 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x97/0x100 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:350 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:5187 [inline] slab_alloc_node mm/slub.c:5500 [inline] kmem_cache_alloc_noprof+0x37d/0x710 mm/slub.c:5507 vm_area_dup+0x2b/0x680 mm/vma_init.c:123 __split_vma+0x1a9/0xa00 mm/vma.c:513 vms_gather_munmap_vmas+0x4c6/0x12f0 mm/vma.c:1423 __mmap_setup mm/vma.c:2405 [inline] __mmap_region mm/vma.c:2734 [inline] mmap_region+0x72c/0x1d40 mm/vma.c:2830 do_mmap+0xc45/0x10d0 mm/mmap.c:558 vm_mmap_pgoff+0x2a6/0x4d0 mm/util.c:581 ksys_mmap_pgoff+0x51f/0x760 mm/mmap.c:604 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xec/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff8880501c5580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880501c5600: fb fb fb fb fb fc fc fc fc fc fc fc fc fa fb fb >ffff8880501c5680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880501c5700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc ffff8880501c5780: fc fc fc fc fc fc fa fb fb fb fb fb fb fb fb fb ==================================================================