================================================================== 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 ffff88807c960460 by task kworker/u8:7/1334 CPU: 1 UID: 0 PID: 1334 Comm: kworker/u8:7 Not tainted 6.17.0-rc1-next-20250814-syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/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:124 [inline] __list_del_entry include/linux/list.h:215 [inline] list_del_init include/linux/list.h:287 [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 kernel/workqueue.c:3236 [inline] process_scheduled_works+0xae1/0x17b0 kernel/workqueue.c:3319 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3400 kthread+0x711/0x8a0 kernel/kthread.c:463 ret_from_fork+0x3f9/0x770 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Allocated by task 980: 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:250 [inline] slab_post_alloc_hook mm/slub.c:4180 [inline] slab_alloc_node mm/slub.c:4229 [inline] kmem_cache_alloc_noprof+0x1c1/0x3c0 mm/slub.c:4236 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:4048 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:6178 xfs_itruncate_extents_flags+0x306/0x990 fs/xfs/xfs_inode.c:1066 xfs_itruncate_extents fs/xfs/xfs_inode.h:604 [inline] xfs_inactive_truncate+0x125/0x1b0 fs/xfs/xfs_inode.c:1168 xfs_inactive+0x949/0xcd0 fs/xfs/xfs_inode.c:1454 xfs_inodegc_inactivate fs/xfs/xfs_icache.c:1944 [inline] xfs_inodegc_worker+0x31b/0x7c0 fs/xfs/xfs_icache.c:1990 process_one_work kernel/workqueue.c:3236 [inline] process_scheduled_works+0xae1/0x17b0 kernel/workqueue.c:3319 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3400 kthread+0x711/0x8a0 kernel/kthread.c:463 ret_from_fork+0x3f9/0x770 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Freed by task 5874: 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:587 kasan_save_free_info mm/kasan/kasan.h:406 [inline] poison_slab_object mm/kasan/common.c:252 [inline] __kasan_slab_free+0x5b/0x80 mm/kasan/common.c:284 kasan_slab_free include/linux/kasan.h:233 [inline] slab_free_hook mm/slub.c:2417 [inline] slab_free mm/slub.c:4680 [inline] kmem_cache_free+0x18f/0x400 mm/slub.c:4782 __xfs_buf_ioend+0x29c/0x6f0 fs/xfs/xfs_buf.c:1202 xfs_buf_iowait+0x167/0x480 fs/xfs/xfs_buf.c:1384 _xfs_buf_read fs/xfs/xfs_buf.c:646 [inline] xfs_buf_read_map+0x335/0xa50 fs/xfs/xfs_buf.c:712 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:4048 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:6178 xfs_itruncate_extents_flags+0x306/0x990 fs/xfs/xfs_inode.c:1066 xfs_itruncate_extents fs/xfs/xfs_inode.h:604 [inline] xfs_inactive_truncate+0x125/0x1b0 fs/xfs/xfs_inode.c:1168 xfs_inactive+0x949/0xcd0 fs/xfs/xfs_inode.c:1454 xfs_inodegc_inactivate fs/xfs/xfs_icache.c:1944 [inline] xfs_inodegc_worker+0x31b/0x7c0 fs/xfs/xfs_icache.c:1990 process_one_work kernel/workqueue.c:3236 [inline] process_scheduled_works+0xae1/0x17b0 kernel/workqueue.c:3319 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3400 kthread+0x711/0x8a0 kernel/kthread.c:463 ret_from_fork+0x3f9/0x770 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 The buggy address belongs to the object at ffff88807c9603f0 which belongs to the cache xfs_buf_item of size 272 The buggy address is located 112 bytes inside of freed 272-byte region [ffff88807c9603f0, ffff88807c960500) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7c960 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000000 ffff888146ad1640 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 Unmovable, gfp_mask 0x52c40(GFP_NOFS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 5968, tgid 5968 (syz-executor), ts 89104566223, free_ts 89015232915 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+0x21e4/0x22c0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5148 alloc_pages_mpol+0x232/0x4a0 mm/mempolicy.c:2416 alloc_slab_page mm/slub.c:2487 [inline] allocate_slab+0x8a/0x370 mm/slub.c:2655 new_slab mm/slub.c:2709 [inline] ___slab_alloc+0xbeb/0x1410 mm/slub.c:3891 __slab_alloc mm/slub.c:3981 [inline] __slab_alloc_node mm/slub.c:4056 [inline] slab_alloc_node mm/slub.c:4217 [inline] kmem_cache_alloc_noprof+0x283/0x3c0 mm/slub.c:4236 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_imap_to_bp+0x127/0x2f0 fs/xfs/libxfs/xfs_inode_buf.c:139 xfs_inode_item_precommit+0x708/0xb00 fs/xfs/xfs_inode_item.c:188 xfs_trans_run_precommits fs/xfs/xfs_trans.c:799 [inline] __xfs_trans_commit+0x2ed/0xbd0 fs/xfs/xfs_trans.c:842 xfs_trans_commit+0x13e/0x1c0 fs/xfs/xfs_trans.c:927 xfs_remove+0x58c/0x960 fs/xfs/xfs_inode.c:1953 xfs_vn_unlink+0xfb/0x210 fs/xfs/xfs_iops.c:413 page last free pid 5978 tgid 5978 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] __free_frozen_pages+0xbc4/0xd30 mm/page_alloc.c:2895 discard_slab mm/slub.c:2753 [inline] __put_partials+0x156/0x1a0 mm/slub.c:3218 put_cpu_partial+0x17c/0x250 mm/slub.c:3293 __slab_free+0x2d5/0x3c0 mm/slub.c:4550 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x97/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:349 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4180 [inline] slab_alloc_node mm/slub.c:4229 [inline] kmem_cache_alloc_noprof+0x1c1/0x3c0 mm/slub.c:4236 getname_flags+0xb8/0x540 fs/namei.c:146 do_readlinkat+0xbc/0x500 fs/stat.c:575 __do_sys_readlink fs/stat.c:613 [inline] __se_sys_readlink fs/stat.c:610 [inline] __x64_sys_readlink+0x7f/0x90 fs/stat.c:610 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88807c960300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88807c960380: fb fb fb fb fb fb fc fc fc fc fc fc fc fc fa fb >ffff88807c960400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88807c960480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88807c960500: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 ==================================================================