================================================================== BUG: KASAN: slab-use-after-free in inode_state_read_once include/linux/fs.h:884 [inline] BUG: KASAN: slab-use-after-free in iput+0x3a7/0xe80 fs/inode.c:1986 Read of size 4 at addr ffff888057406bb8 by task kworker/1:0/17452 CPU: 1 UID: 0 PID: 17452 Comm: kworker/1:0 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026 Workqueue: events fserror_worker Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xba/0x230 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 inode_state_read_once include/linux/fs.h:884 [inline] iput+0x3a7/0xe80 fs/inode.c:1986 fserror_worker+0x230/0x350 fs/fserror.c:69 process_one_work+0x949/0x1650 kernel/workqueue.c:3279 process_scheduled_works kernel/workqueue.c:3362 [inline] worker_thread+0xb46/0x1140 kernel/workqueue.c:3443 kthread+0x388/0x470 kernel/kthread.c:467 ret_from_fork+0x51e/0xb90 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Allocated by task 30898: 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:4501 [inline] slab_alloc_node mm/slub.c:4830 [inline] kmem_cache_alloc_lru_noprof+0x2b8/0x640 mm/slub.c:4849 xfs_inode_alloc+0x7e/0x710 fs/xfs/xfs_icache.c:97 xfs_iget_cache_miss fs/xfs/xfs_icache.c:635 [inline] xfs_iget+0xa8f/0x2e40 fs/xfs/xfs_icache.c:799 xfs_lookup+0x321/0x670 fs/xfs/xfs_inode.c:553 xfs_vn_lookup+0x130/0x200 fs/xfs/xfs_iops.c:327 __lookup_slow+0x2b7/0x410 fs/namei.c:1916 lookup_slow+0x53/0x70 fs/namei.c:1933 walk_component fs/namei.c:2279 [inline] lookup_last fs/namei.c:2780 [inline] path_lookupat+0x3f5/0x8c0 fs/namei.c:2804 filename_lookup+0x256/0x5d0 fs/namei.c:2833 filename_listxattr fs/xattr.c:945 [inline] path_listxattrat+0x13b/0x3f0 fs/xattr.c:975 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 17452: 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:2687 [inline] slab_free mm/slub.c:6124 [inline] kmem_cache_free+0x187/0x630 mm/slub.c:6254 rcu_do_batch kernel/rcu/tree.c:2617 [inline] rcu_core+0x7cd/0x1070 kernel/rcu/tree.c:2869 handle_softirqs+0x22a/0x870 kernel/softirq.c:626 do_softirq+0x76/0xd0 kernel/softirq.c:523 __local_bh_enable_ip+0xf8/0x130 kernel/softirq.c:450 local_bh_enable include/linux/bottom_half.h:33 [inline] update_defense_level+0x91e/0xd70 net/netfilter/ipvs/ip_vs_ctl.c:209 defense_work_handler+0x2d/0xd0 net/netfilter/ipvs/ip_vs_ctl.c:234 process_one_work+0x949/0x1650 kernel/workqueue.c:3279 process_scheduled_works kernel/workqueue.c:3362 [inline] worker_thread+0xb46/0x1140 kernel/workqueue.c:3443 kthread+0x388/0x470 kernel/kthread.c:467 ret_from_fork+0x51e/0xb90 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Last potentially related work creation: kasan_save_stack+0x3e/0x60 mm/kasan/common.c:57 kasan_record_aux_stack+0xbd/0xd0 mm/kasan/generic.c:556 __call_rcu_common kernel/rcu/tree.c:3131 [inline] call_rcu+0xee/0x890 kernel/rcu/tree.c:3251 xfs_iget_cache_miss fs/xfs/xfs_icache.c:740 [inline] xfs_iget+0xb0e/0x2e40 fs/xfs/xfs_icache.c:799 xfs_lookup+0x321/0x670 fs/xfs/xfs_inode.c:553 xfs_vn_lookup+0x130/0x200 fs/xfs/xfs_iops.c:327 __lookup_slow+0x2b7/0x410 fs/namei.c:1916 lookup_slow+0x53/0x70 fs/namei.c:1933 walk_component fs/namei.c:2279 [inline] lookup_last fs/namei.c:2780 [inline] path_lookupat+0x3f5/0x8c0 fs/namei.c:2804 filename_lookup+0x256/0x5d0 fs/namei.c:2833 filename_listxattr fs/xattr.c:945 [inline] path_listxattrat+0x13b/0x3f0 fs/xattr.c:975 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff888057406900 which belongs to the cache xfs_inode of size 1784 The buggy address is located 696 bytes inside of freed 1784-byte region [ffff888057406900, ffff888057406ff8) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888057400780 pfn:0x57400 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff888057400721 flags: 0xfff00000000240(workingset|head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000240 ffff88801eb68b40 ffff88801eb69288 ffffea0001e5fa10 raw: ffff888057400780 000007800011000c 00000000f5000000 ffff888057400721 head: 00fff00000000240 ffff88801eb68b40 ffff88801eb69288 ffffea0001e5fa10 head: ffff888057400780 000007800011000c 00000000f5000000 ffff888057400721 head: 00fff00000000003 ffffea00015d0001 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Reclaimable, gfp_mask 0xd20d0(__GFP_RECLAIMABLE|__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 6024, tgid 6023 (syz.4.17), ts 78651615162, free_ts 19231509264 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x231/0x280 mm/page_alloc.c:1889 prep_new_page mm/page_alloc.c:1897 [inline] get_page_from_freelist+0x24dc/0x2580 mm/page_alloc.c:3962 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5250 alloc_slab_page mm/slub.c:3255 [inline] allocate_slab+0x77/0x660 mm/slub.c:3444 new_slab mm/slub.c:3502 [inline] refill_objects+0x331/0x3c0 mm/slub.c:7134 refill_sheaf+0x29/0x50 mm/slub.c:2804 alloc_full_sheaf mm/slub.c:2825 [inline] __pcs_replace_empty_main+0x3ef/0x620 mm/slub.c:4588 alloc_from_pcs mm/slub.c:4681 [inline] slab_alloc_node mm/slub.c:4815 [inline] kmem_cache_alloc_lru_noprof+0x37c/0x640 mm/slub.c:4849 xfs_inode_alloc+0x7e/0x710 fs/xfs/xfs_icache.c:97 xfs_iget_cache_miss fs/xfs/xfs_icache.c:635 [inline] xfs_iget+0xa8f/0x2e40 fs/xfs/xfs_icache.c:799 xfs_mountfs+0x110c/0x22e0 fs/xfs/xfs_mount.c:1072 xfs_fs_fill_super+0x11b5/0x1600 fs/xfs/xfs_super.c:1938 get_tree_bdev_flags+0x431/0x4f0 fs/super.c:1694 vfs_get_tree+0x92/0x2a0 fs/super.c:1754 fc_mount fs/namespace.c:1193 [inline] do_new_mount_fc fs/namespace.c:3763 [inline] do_new_mount+0x341/0xd30 fs/namespace.c:3839 do_mount fs/namespace.c:4172 [inline] __do_sys_mount fs/namespace.c:4361 [inline] __se_sys_mount+0x31d/0x420 fs/namespace.c:4338 page last free pid 1 tgid 1 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1433 [inline] __free_frozen_pages+0xc2b/0xdb0 mm/page_alloc.c:2978 __free_pages mm/page_alloc.c:5369 [inline] free_contig_range+0xbb/0x170 mm/page_alloc.c:7373 destroy_args+0x4e5/0x570 mm/debug_vm_pgtable.c:993 debug_vm_pgtable+0x3f8/0x410 mm/debug_vm_pgtable.c:1368 do_one_initcall+0x250/0x8d0 init/main.c:1382 do_initcall_level+0x104/0x190 init/main.c:1444 do_initcalls+0x59/0xa0 init/main.c:1460 kernel_init_freeable+0x2a6/0x3e0 init/main.c:1692 kernel_init+0x1d/0x1d0 init/main.c:1582 ret_from_fork+0x51e/0xb90 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: ffff888057406a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888057406b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888057406b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888057406c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888057406c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================