================================================================== BUG: KASAN: slab-use-after-free in xfs_inode_item_push+0x705/0x730 fs/xfs/xfs_inode_item.c:801 Read of size 8 at addr ffff88804dd58178 by task xfsaild/loop9/9232 CPU: 0 UID: 0 PID: 9232 Comm: xfsaild/loop9 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xcd/0x630 mm/kasan/report.c:482 kasan_report+0xe0/0x110 mm/kasan/report.c:595 xfs_inode_item_push+0x705/0x730 fs/xfs/xfs_inode_item.c:801 xfsaild_push_item fs/xfs/xfs_trans_ail.c:390 [inline] xfsaild_push fs/xfs/xfs_trans_ail.c:518 [inline] xfsaild+0xc5b/0x2ba0 fs/xfs/xfs_trans_ail.c:700 kthread+0x3c5/0x780 kernel/kthread.c:463 ret_from_fork+0x983/0xb10 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:246 Allocated by task 9212: kasan_save_stack+0x33/0x60 mm/kasan/common.c:56 kasan_save_track+0x14/0x30 mm/kasan/common.c:77 unpoison_slab_object mm/kasan/common.c:342 [inline] __kasan_slab_alloc+0x89/0x90 mm/kasan/common.c:368 kasan_slab_alloc include/linux/kasan.h:252 [inline] slab_post_alloc_hook mm/slub.c:4978 [inline] slab_alloc_node mm/slub.c:5288 [inline] kmem_cache_alloc_noprof+0x250/0x720 mm/slub.c:5295 xfs_inode_item_init+0x24/0xc0 fs/xfs/xfs_inode_item.c:929 xfs_trans_ijoin+0xfc/0x160 fs/xfs/libxfs/xfs_trans_inode.c:36 xfs_create+0x8cd/0xc10 fs/xfs/xfs_inode.c:732 xfs_generic_create+0x6b3/0x830 fs/xfs/xfs_iops.c:216 lookup_open.isra.0+0x12dc/0x1780 fs/namei.c:4440 open_last_lookups fs/namei.c:4540 [inline] path_openat+0xa95/0x3140 fs/namei.c:4784 do_filp_open+0x20b/0x470 fs/namei.c:4814 do_sys_openat2+0x11f/0x280 fs/open.c:1430 do_sys_open fs/open.c:1436 [inline] __do_sys_open fs/open.c:1444 [inline] __se_sys_open fs/open.c:1440 [inline] __x64_sys_open+0x153/0x1e0 fs/open.c:1440 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 15: kasan_save_stack+0x33/0x60 mm/kasan/common.c:56 kasan_save_track+0x14/0x30 mm/kasan/common.c:77 __kasan_save_free_info+0x3b/0x60 mm/kasan/generic.c:587 kasan_save_free_info mm/kasan/kasan.h:406 [inline] poison_slab_object mm/kasan/common.c:252 [inline] __kasan_slab_free+0x5f/0x80 mm/kasan/common.c:284 kasan_slab_free include/linux/kasan.h:234 [inline] slab_free_hook mm/slub.c:2543 [inline] slab_free mm/slub.c:6642 [inline] kmem_cache_free+0x328/0x7d0 mm/slub.c:6752 xfs_inode_free_callback+0x159/0x240 fs/xfs/xfs_icache.c:161 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0x79c/0x1500 kernel/rcu/tree.c:2857 handle_softirqs+0x219/0x8b0 kernel/softirq.c:622 run_ksoftirqd kernel/softirq.c:1063 [inline] run_ksoftirqd+0x3a/0x60 kernel/softirq.c:1055 smpboot_thread_fn+0x3f7/0xae0 kernel/smpboot.c:160 kthread+0x3c5/0x780 kernel/kthread.c:463 ret_from_fork+0x983/0xb10 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:246 The buggy address belongs to the object at ffff88804dd58148 which belongs to the cache xfs_ili of size 264 The buggy address is located 48 bytes inside of freed 264-byte region [ffff88804dd58148, ffff88804dd58250) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x4dd58 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000000 ffff8881472d3780 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 0x152c50(GFP_NOFS|__GFP_RECLAIMABLE|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL), pid 9212, tgid 9211 (syz.9.711), ts 448731415496, free_ts 219114768127 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1af/0x220 mm/page_alloc.c:1845 prep_new_page mm/page_alloc.c:1853 [inline] get_page_from_freelist+0xd0b/0x31a0 mm/page_alloc.c:3879 __alloc_frozen_pages_noprof+0x25f/0x2440 mm/page_alloc.c:5178 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2416 alloc_slab_page mm/slub.c:3059 [inline] allocate_slab mm/slub.c:3232 [inline] new_slab+0x24a/0x360 mm/slub.c:3286 ___slab_alloc+0xee7/0x1cd0 mm/slub.c:4655 __slab_alloc.constprop.0+0x63/0x110 mm/slub.c:4778 __slab_alloc_node mm/slub.c:4854 [inline] slab_alloc_node mm/slub.c:5276 [inline] kmem_cache_alloc_noprof+0x43f/0x720 mm/slub.c:5295 xfs_inode_item_init+0x24/0xc0 fs/xfs/xfs_inode_item.c:929 xfs_trans_ijoin+0xfc/0x160 fs/xfs/libxfs/xfs_trans_inode.c:36 xfs_icreate+0x10a/0x170 fs/xfs/xfs_inode.c:605 xfs_create+0x72f/0xc10 fs/xfs/xfs_inode.c:721 xfs_generic_create+0x6b3/0x830 fs/xfs/xfs_iops.c:216 lookup_open.isra.0+0x12dc/0x1780 fs/namei.c:4440 open_last_lookups fs/namei.c:4540 [inline] path_openat+0xa95/0x3140 fs/namei.c:4784 do_filp_open+0x20b/0x470 fs/namei.c:4814 page last free pid 6152 tgid 6152 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1394 [inline] free_unref_folios+0xa15/0x1600 mm/page_alloc.c:2958 folios_put_refs+0x4be/0x750 mm/swap.c:1002 release_pages+0x2a2/0x4b0 mm/swap.c:1042 io_free_region+0x102/0x2e0 io_uring/memmap.c:102 io_rings_free io_uring/io_uring.c:2772 [inline] io_ring_ctx_free io_uring/io_uring.c:2866 [inline] io_ring_exit_work+0xa1d/0x10e0 io_uring/io_uring.c:3088 process_one_work+0x9ba/0x1b20 kernel/workqueue.c:3263 process_scheduled_works kernel/workqueue.c:3346 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3427 kthread+0x3c5/0x780 kernel/kthread.c:463 ret_from_fork+0x983/0xb10 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:246 Memory state around the buggy address: ffff88804dd58000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88804dd58080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88804dd58100: 00 fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb ^ ffff88804dd58180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88804dd58200: fb fb fb fb fb fb fb fb fb fb fc fc fc fc fc fc ==================================================================