================================================================== BUG: KASAN: slab-use-after-free in __list_del_entry_valid_or_report+0xb5/0x190 lib/list_debug.c:65 Read of size 8 at addr ffff8880767b3070 by task kworker/u8:3/50 CPU: 0 UID: 0 PID: 50 Comm: kworker/u8:3 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025 Workqueue: xfs-cil/loop0 xlog_cil_push_work Call Trace: dump_stack_lvl+0x189/0x250 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 __list_del_entry_valid_or_report+0xb5/0x190 lib/list_debug.c:65 __list_del_entry_valid include/linux/list.h:132 [inline] __list_del_entry include/linux/list.h:223 [inline] list_del_init include/linux/list.h:295 [inline] xlog_cil_build_lv_chain fs/xfs/xfs_log_cil.c:1246 [inline] xlog_cil_push_work+0x11c0/0x2570 fs/xfs/xfs_log_cil.c:1374 process_one_work+0x94a/0x15d0 kernel/workqueue.c:3267 process_scheduled_works kernel/workqueue.c:3350 [inline] worker_thread+0x9b0/0xee0 kernel/workqueue.c:3431 kthread+0x711/0x8a0 kernel/kthread.c:463 ret_from_fork+0x599/0xb30 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Allocated by task 43: kasan_save_stack mm/kasan/common.c:56 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:77 unpoison_slab_object mm/kasan/common.c:339 [inline] __kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:365 kasan_slab_alloc include/linux/kasan.h:252 [inline] slab_post_alloc_hook mm/slub.c:4982 [inline] slab_alloc_node mm/slub.c:5292 [inline] kmem_cache_alloc_noprof+0x37d/0x700 mm/slub.c:5299 xfs_buf_item_init+0x66/0x670 fs/xfs/xfs_buf_item.c:878 _xfs_trans_bjoin+0x46/0x110 fs/xfs/xfs_trans_buf.c:75 xfs_trans_read_buf_map+0x28f/0x8e0 fs/xfs/xfs_trans_buf.c:325 xfs_trans_read_buf fs/xfs/xfs_trans.h:210 [inline] xfs_btree_read_buf_block+0x290/0x470 fs/xfs/libxfs/xfs_btree.c:1402 xfs_btree_lookup_get_block+0x28d/0x500 fs/xfs/libxfs/xfs_btree.c:1907 xfs_btree_lookup+0x4e1/0x1410 fs/xfs/libxfs/xfs_btree.c:2018 xfs_alloc_lookup fs/xfs/libxfs/xfs_alloc.c:166 [inline] xfs_alloc_lookup_le fs/xfs/libxfs/xfs_alloc.c:212 [inline] xfs_free_ag_extent+0x25d/0x1760 fs/xfs/libxfs/xfs_alloc.c:2080 __xfs_free_extent+0x2f1/0x470 fs/xfs/libxfs/xfs_alloc.c:4047 xfs_extent_free_finish_item+0x28b/0x670 fs/xfs/xfs_extfree_item.c:555 xfs_defer_finish_one+0x5c8/0xcf0 fs/xfs/libxfs/xfs_defer.c:595 xfs_defer_finish_noroll+0x910/0x12d0 fs/xfs/libxfs/xfs_defer.c:707 xfs_defer_finish+0x1c/0x180 fs/xfs/libxfs/xfs_defer.c:741 xfs_bunmapi_range+0xc4/0x140 fs/xfs/libxfs/xfs_bmap.c:6169 xfs_itruncate_extents_flags+0x306/0x990 fs/xfs/xfs_inode.c:1077 xfs_itruncate_extents fs/xfs/xfs_inode.h:604 [inline] xfs_inactive_truncate+0x125/0x1b0 fs/xfs/xfs_inode.c:1179 xfs_inactive+0x949/0xcd0 fs/xfs/xfs_inode.c:1465 xfs_inodegc_inactivate fs/xfs/xfs_icache.c:1942 [inline] xfs_inodegc_worker+0x31b/0x7c0 fs/xfs/xfs_icache.c:1988 process_one_work+0x94a/0x15d0 kernel/workqueue.c:3267 process_scheduled_works kernel/workqueue.c:3350 [inline] worker_thread+0x9b0/0xee0 kernel/workqueue.c:3431 kthread+0x711/0x8a0 kernel/kthread.c:463 ret_from_fork+0x599/0xb30 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Freed by task 5901: kasan_save_stack mm/kasan/common.c:56 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:77 kasan_save_free_info+0x46/0x50 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:252 [inline] __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:284 kasan_slab_free include/linux/kasan.h:234 [inline] slab_free_hook mm/slub.c:2547 [inline] slab_free mm/slub.c:6642 [inline] kmem_cache_free+0x19b/0x690 mm/slub.c:6752 __xfs_buf_ioend+0x29c/0x6f0 fs/xfs/xfs_buf.c:1199 xfs_buf_iowait+0x167/0x480 fs/xfs/xfs_buf.c:1381 _xfs_buf_read fs/xfs/xfs_buf.c:643 [inline] xfs_buf_read_map+0x335/0xa50 fs/xfs/xfs_buf.c:709 xfs_trans_read_buf_map+0x1d7/0x8e0 fs/xfs/xfs_trans_buf.c:304 xfs_trans_read_buf fs/xfs/xfs_trans.h:210 [inline] xfs_btree_read_buf_block+0x290/0x470 fs/xfs/libxfs/xfs_btree.c:1402 xfs_btree_lookup_get_block+0x28d/0x500 fs/xfs/libxfs/xfs_btree.c:1907 xfs_btree_lookup+0x4e1/0x1410 fs/xfs/libxfs/xfs_btree.c:2018 xfs_alloc_lookup fs/xfs/libxfs/xfs_alloc.c:166 [inline] xfs_alloc_lookup_le fs/xfs/libxfs/xfs_alloc.c:212 [inline] xfs_free_ag_extent+0x25d/0x1760 fs/xfs/libxfs/xfs_alloc.c:2080 __xfs_free_extent+0x2f1/0x470 fs/xfs/libxfs/xfs_alloc.c:4047 xfs_extent_free_finish_item+0x28b/0x670 fs/xfs/xfs_extfree_item.c:555 xfs_defer_finish_one+0x5c8/0xcf0 fs/xfs/libxfs/xfs_defer.c:595 xfs_defer_finish_noroll+0x910/0x12d0 fs/xfs/libxfs/xfs_defer.c:707 xfs_defer_finish+0x1c/0x180 fs/xfs/libxfs/xfs_defer.c:741 xfs_bunmapi_range+0xc4/0x140 fs/xfs/libxfs/xfs_bmap.c:6169 xfs_itruncate_extents_flags+0x306/0x990 fs/xfs/xfs_inode.c:1077 xfs_itruncate_extents fs/xfs/xfs_inode.h:604 [inline] xfs_inactive_truncate+0x125/0x1b0 fs/xfs/xfs_inode.c:1179 xfs_inactive+0x949/0xcd0 fs/xfs/xfs_inode.c:1465 xfs_inodegc_inactivate fs/xfs/xfs_icache.c:1942 [inline] xfs_inodegc_worker+0x31b/0x7c0 fs/xfs/xfs_icache.c:1988 process_one_work+0x94a/0x15d0 kernel/workqueue.c:3267 process_scheduled_works kernel/workqueue.c:3350 [inline] worker_thread+0x9b0/0xee0 kernel/workqueue.c:3431 kthread+0x711/0x8a0 kernel/kthread.c:463 ret_from_fork+0x599/0xb30 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 The buggy address belongs to the object at ffff8880767b3000 which belongs to the cache xfs_buf_item of size 272 The buggy address is located 112 bytes inside of freed 272-byte region [ffff8880767b3000, ffff8880767b3110) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x767b3 anon flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000000 ffff888140a9d000 0000000000000000 0000000000000001 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 Unmovable, gfp_mask 0x52cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 6484, tgid 6483 (syz.0.21), ts 132832876973, free_ts 129840450837 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x2365/0x2440 mm/page_alloc.c:3920 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5209 alloc_pages_mpol+0x232/0x4a0 mm/mempolicy.c:2486 alloc_slab_page mm/slub.c:3063 [inline] allocate_slab+0x96/0x350 mm/slub.c:3236 new_slab mm/slub.c:3290 [inline] ___slab_alloc+0xf56/0x1990 mm/slub.c:4659 __slab_alloc+0x65/0x100 mm/slub.c:4782 __slab_alloc_node mm/slub.c:4858 [inline] slab_alloc_node mm/slub.c:5280 [inline] kmem_cache_alloc_noprof+0x40f/0x700 mm/slub.c:5299 xfs_buf_item_init+0x66/0x670 fs/xfs/xfs_buf_item.c:878 xlog_recover_validate_buf_type+0xa2e/0xdb0 fs/xfs/xfs_buf_item_recover.c:452 xlog_recover_buf_commit_pass2+0xe2b/0x1a10 fs/xfs/xfs_buf_item_recover.c:1108 xlog_recover_items_pass2+0xe9/0x130 fs/xfs/xfs_log_recover.c:2009 xlog_recover_commit_trans+0x658/0x8a0 fs/xfs/xfs_log_recover.c:2078 xlog_recovery_process_trans+0xab/0x1c0 fs/xfs/xfs_log_recover.c:2309 xlog_recover_process_ophdr+0x2f5/0x380 fs/xfs/xfs_log_recover.c:2455 xlog_recover_process_data+0x1a5/0x430 fs/xfs/xfs_log_recover.c:2500 page last free pid 15 tgid 15 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] __free_frozen_pages+0xbc8/0xd30 mm/page_alloc.c:2948 __tlb_remove_table_free mm/mmu_gather.c:227 [inline] tlb_remove_table_rcu+0x85/0x100 mm/mmu_gather.c:290 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0xcab/0x1770 kernel/rcu/tree.c:2861 handle_softirqs+0x286/0x870 kernel/softirq.c:626 run_ksoftirqd+0x9b/0x100 kernel/softirq.c:1067 smpboot_thread_fn+0x542/0xa60 kernel/smpboot.c:160 kthread+0x711/0x8a0 kernel/kthread.c:463 ret_from_fork+0x599/0xb30 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Memory state around the buggy address: ffff8880767b2f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8880767b2f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff8880767b3000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880767b3080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880767b3100: fb fb fc fc fc fc fc fc fc fc fa fb fb fb fb fb ==================================================================