================================================================== 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 ffff888051f881c0 by task kworker/u8:7/6713 CPU: 1 UID: 0 PID: 6713 Comm: kworker/u8:7 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025 Workqueue: xfs-cil/loop4 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 24: 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 6487: 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 ffff888051f88150 which belongs to the cache xfs_buf_item of size 272 The buggy address is located 112 bytes inside of freed 272-byte region [ffff888051f88150, ffff888051f88260) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x51f88 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000000 ffff8881442a7140 ffffea0001574700 0000000000000004 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 Unmovable, gfp_mask 0x52c40(GFP_NOFS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 6358, tgid 6358 (syz-executor), ts 170340790492, free_ts 170334300070 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 _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_read_agi+0x272/0x5b0 fs/xfs/libxfs/xfs_ialloc.c:2760 xfs_iunlink+0x1b7/0x3b0 fs/xfs/libxfs/xfs_inode_util.c:535 xfs_dir_remove_child+0x1b4/0x500 fs/xfs/libxfs/xfs_dir2.c:1016 xfs_remove+0x4c5/0x960 fs/xfs/xfs_inode.c:1959 xfs_vn_unlink+0xfb/0x210 fs/xfs/xfs_iops.c:413 page last free pid 6769 tgid 6768 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_batch_list_free mm/mmu_gather.c:159 [inline] tlb_finish_mmu+0x112/0x1d0 mm/mmu_gather.c:500 exit_mmap+0x444/0xb40 mm/mmap.c:1290 __mmput+0x118/0x430 kernel/fork.c:1132 exit_mm+0x1da/0x2c0 kernel/exit.c:581 do_exit+0x650/0x2300 kernel/exit.c:958 do_group_exit+0x21c/0x2d0 kernel/exit.c:1111 get_signal+0x1285/0x1340 kernel/signal.c:3034 arch_do_signal_or_restart+0x9a/0x7a0 arch/x86/kernel/signal.c:337 __exit_to_user_mode_loop kernel/entry/common.c:41 [inline] exit_to_user_mode_loop+0x87/0x4f0 kernel/entry/common.c:75 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:226 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:256 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:159 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:194 [inline] do_syscall_64+0x2e9/0xfa0 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff888051f88080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888051f88100: fb fb fc fc fc fc fc fc fc fc fa fb fb fb fb fb >ffff888051f88180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888051f88200: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ffff888051f88280: fc fc fc fc 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================