================================================================== BUG: KASAN: use-after-free in __hlist_del include/linux/list.h:906 [inline] BUG: KASAN: use-after-free in hlist_del_init_rcu include/linux/rculist.h:184 [inline] BUG: KASAN: use-after-free in __xfrm_state_delete+0x3db/0x940 net/xfrm/xfrm_state.c:700 Write of size 8 at addr ffff88801a776190 by task syz-executor/4280 CPU: 1 PID: 4280 Comm: syz-executor Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/15/2026 Call Trace: dump_stack_lvl+0x188/0x24e lib/dump_stack.c:106 print_address_description mm/kasan/report.c:316 [inline] print_report+0xa8/0x210 mm/kasan/report.c:420 kasan_report+0x10b/0x140 mm/kasan/report.c:524 __hlist_del include/linux/list.h:906 [inline] hlist_del_init_rcu include/linux/rculist.h:184 [inline] __xfrm_state_delete+0x3db/0x940 net/xfrm/xfrm_state.c:700 xfrm_timer_handler+0x10b/0x970 net/xfrm/xfrm_state.c:631 __run_hrtimer kernel/time/hrtimer.c:1751 [inline] __hrtimer_run_queues+0x522/0xc90 kernel/time/hrtimer.c:1815 hrtimer_run_softirq+0x173/0x290 kernel/time/hrtimer.c:1832 handle_softirqs+0x291/0x910 kernel/softirq.c:596 __do_softirq kernel/softirq.c:630 [inline] invoke_softirq kernel/softirq.c:470 [inline] __irq_exit_rcu+0x13b/0x230 kernel/softirq.c:679 irq_exit_rcu+0x5/0x20 kernel/softirq.c:691 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline] sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1118 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691 RIP: 0010:finish_task_switch+0x267/0x8e0 kernel/sched/core.c:5136 Code: dd 08 85 c0 0f 84 38 01 00 00 48 85 db 0f 85 57 01 00 00 e9 e7 04 00 00 4c 89 e7 e8 33 d6 e7 08 e8 5e 44 2f 00 fb 4c 8b 65 b8 <49> 8d bc 24 f8 15 00 00 48 89 f8 48 c1 e8 03 42 0f b6 04 30 84 c0 RSP: 0018:ffffc90003ee76c0 EFLAGS: 00000282 RAX: ad9124b9b0036b00 RBX: 0000000000000000 RCX: ad9124b9b0036b00 RDX: dffffc0000000000 RSI: ffffffff8aac1cc0 RDI: ffffffff8afe72a0 RBP: ffffc90003ee7710 R08: ffffffff91b62257 R09: 1ffffffff236c44a R10: dffffc0000000000 R11: fffffbfff236c44b R12: ffff88801ab59e00 R13: ffff8880b8d3ba48 R14: dffffc0000000000 R15: ffff8880b8d3b7d0 context_switch kernel/sched/core.c:5260 [inline] __schedule+0x1091/0x4140 kernel/sched/core.c:6584 schedule+0xb9/0x180 kernel/sched/core.c:6660 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6719 __mutex_lock_common kernel/locking/mutex.c:679 [inline] __mutex_lock+0x562/0xb40 kernel/locking/mutex.c:747 exp_funnel_lock kernel/rcu/tree_exp.h:323 [inline] synchronize_rcu_expedited+0x3c0/0x890 kernel/rcu/tree_exp.h:962 namespace_unlock+0x23f/0x440 fs/namespace.c:1502 do_umount fs/namespace.c:1728 [inline] path_umount+0xda1/0xe20 fs/namespace.c:1816 ksys_umount fs/namespace.c:1839 [inline] __do_sys_umount fs/namespace.c:1844 [inline] __se_sys_umount fs/namespace.c:1842 [inline] __x64_sys_umount+0x12d/0x170 fs/namespace.c:1842 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f8c6d3a0d57 Code: a2 c7 05 9c a9 25 00 00 00 00 00 eb 96 e8 e1 12 00 00 90 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007ffcb3d0d5b8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: ffffffffffffffda RBX: 00007f8c6d436fb3 RCX: 00007f8c6d3a0d57 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffcb3d0d670 RBP: 00007ffcb3d0d670 R08: 00007ffcb3d0e670 R09: 00000000ffffffff R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffcb3d0e700 R13: 00007f8c6d436fb3 R14: 00000000000406fa R15: 00007ffcb3d0e740 Allocated by task 7: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 ____kasan_kmalloc mm/kasan/common.c:375 [inline] __kasan_kmalloc+0x8e/0xa0 mm/kasan/common.c:384 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slab_common.c:936 [inline] __kmalloc+0xb3/0x240 mm/slab_common.c:949 xfrm_hash_resize+0x84/0xff0 net/xfrm/xfrm_state.c:156 process_one_work+0x8ab/0x1160 kernel/workqueue.c:2292 worker_thread+0xaf5/0x12a0 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Freed by task 4351: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 kasan_save_free_info+0x27/0x40 mm/kasan/generic.c:516 ____kasan_slab_free+0x126/0x1f0 mm/kasan/common.c:237 kasan_slab_free include/linux/kasan.h:177 [inline] slab_free_hook mm/slub.c:1735 [inline] slab_free_freelist_hook+0x133/0x1b0 mm/slub.c:1761 slab_free mm/slub.c:3694 [inline] __kmem_cache_free+0xb6/0x200 mm/slub.c:3707 xfrm_hash_resize+0xdce/0xff0 net/xfrm/xfrm_state.c:198 process_one_work+0x8ab/0x1160 kernel/workqueue.c:2292 worker_thread+0xaf5/0x12a0 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 The buggy address belongs to the object at ffff88801a776000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 400 bytes inside of 1024-byte region [ffff88801a776000, ffff88801a776400) The buggy address belongs to the physical page: page:ffffea000069dc00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1a770 head:ffffea000069dc00 order:3 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 0000000000000000 dead000000000122 ffff888018441dc0 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0x1d2a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 5366, tgid 5364 (syz.2.250), ts 234064098914, free_ts 219505996251 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2560 prep_new_page mm/page_alloc.c:2567 [inline] get_page_from_freelist+0x206b/0x2180 mm/page_alloc.c:4358 __alloc_pages+0x1ec/0x4f0 mm/page_alloc.c:5658 alloc_slab_page+0x5d/0x180 mm/slub.c:1805 allocate_slab mm/slub.c:1950 [inline] new_slab+0x87/0x2d0 mm/slub.c:2003 ___slab_alloc+0xbc5/0x1240 mm/slub.c:3161 __slab_alloc mm/slub.c:3247 [inline] slab_alloc_node mm/slub.c:3332 [inline] __kmem_cache_alloc_node+0x126/0x270 mm/slub.c:3405 __do_kmalloc_node mm/slab_common.c:935 [inline] __kmalloc_node_track_caller+0xa0/0x240 mm/slab_common.c:956 kmalloc_reserve net/core/skbuff.c:446 [inline] __alloc_skb+0x226/0x7d0 net/core/skbuff.c:515 alloc_skb include/linux/skbuff.h:1303 [inline] nlmsg_new include/net/netlink.h:998 [inline] xfrm_send_acquire+0x15b/0xf70 net/xfrm/xfrm_user.c:3425 km_query+0x10e/0x200 net/xfrm/xfrm_state.c:2307 xfrm_state_find+0x1e00/0x28d0 net/xfrm/xfrm_state.c:1198 xfrm_tmpl_resolve_one net/xfrm/xfrm_policy.c:2421 [inline] xfrm_tmpl_resolve net/xfrm/xfrm_policy.c:2466 [inline] xfrm_resolve_and_create_bundle+0x7b7/0x2da0 net/xfrm/xfrm_policy.c:2758 xfrm_lookup_with_ifid+0x265/0x1fc0 net/xfrm/xfrm_policy.c:3092 xfrm_lookup net/xfrm/xfrm_policy.c:3221 [inline] xfrm_lookup_route+0x38/0x1b0 net/xfrm/xfrm_policy.c:3232 rawv6_sendmsg+0xcb2/0x1710 net/ipv6/raw.c:896 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1487 [inline] free_pcp_prepare mm/page_alloc.c:1537 [inline] free_unref_page_prepare+0x8e5/0x9e0 mm/page_alloc.c:3414 free_unref_page+0x2e/0x3f0 mm/page_alloc.c:3509 free_slab mm/slub.c:2042 [inline] discard_slab mm/slub.c:2048 [inline] __unfreeze_partials+0x188/0x1e0 mm/slub.c:2598 put_cpu_partial+0x17c/0x250 mm/slub.c:2674 qlink_free mm/kasan/quarantine.c:166 [inline] qlist_free_all+0x76/0xe0 mm/kasan/quarantine.c:185 kasan_quarantine_reduce+0x144/0x160 mm/kasan/quarantine.c:292 __kasan_slab_alloc+0x1e/0x80 mm/kasan/common.c:306 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x4b/0x490 mm/slab.h:742 slab_alloc_node mm/slub.c:3366 [inline] slab_alloc mm/slub.c:3374 [inline] __kmem_cache_alloc_lru mm/slub.c:3381 [inline] kmem_cache_alloc+0x18b/0x2f0 mm/slub.c:3390 getname_flags+0xb7/0x500 fs/namei.c:139 user_path_at_empty+0x28/0x60 fs/namei.c:2955 user_path_at include/linux/namei.h:57 [inline] ksys_umount fs/namespace.c:1836 [inline] __do_sys_umount fs/namespace.c:1844 [inline] __se_sys_umount fs/namespace.c:1842 [inline] __x64_sys_umount+0xf9/0x170 fs/namespace.c:1842 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Memory state around the buggy address: ffff88801a776080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88801a776100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88801a776180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88801a776200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88801a776280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ---------------- Code disassembly (best guess): 0: dd 08 fisttpll (%rax) 2: 85 c0 test %eax,%eax 4: 0f 84 38 01 00 00 je 0x142 a: 48 85 db test %rbx,%rbx d: 0f 85 57 01 00 00 jne 0x16a 13: e9 e7 04 00 00 jmp 0x4ff 18: 4c 89 e7 mov %r12,%rdi 1b: e8 33 d6 e7 08 call 0x8e7d653 20: e8 5e 44 2f 00 call 0x2f4483 25: fb sti 26: 4c 8b 65 b8 mov -0x48(%rbp),%r12 * 2a: 49 8d bc 24 f8 15 00 lea 0x15f8(%r12),%rdi <-- trapping instruction 31: 00 32: 48 89 f8 mov %rdi,%rax 35: 48 c1 e8 03 shr $0x3,%rax 39: 42 0f b6 04 30 movzbl (%rax,%r14,1),%eax 3e: 84 c0 test %al,%al