==================================================================
BUG: KASAN: slab-use-after-free in __xfrm_state_delete+0x666/0xca0
Write of size 8 at addr ffff88803ca2f558 by task syz-executor/5848

CPU: 0 UID: 0 PID: 5848 Comm: syz-executor Not tainted 6.16.0-syzkaller-11895-gcca7a0aae895-dirty #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <IRQ>
 dump_stack_lvl+0x189/0x250
 print_report+0xca/0x240
 kasan_report+0x118/0x150
 __xfrm_state_delete+0x666/0xca0
 xfrm_timer_handler+0x18f/0xa00
 __hrtimer_run_queues+0x52c/0xc60
 hrtimer_run_softirq+0x187/0x2b0
 handle_softirqs+0x286/0x870
 __irq_exit_rcu+0xca/0x1f0
 irq_exit_rcu+0x9/0x30
 sysvec_apic_timer_interrupt+0xa6/0xc0
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20
RIP: 0010:__kasan_check_byte+0x6/0x40
Code: 84 da fe ff ff 48 ff c8 49 89 c4 e9 cf fe ff ff 0f 1f 40 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 66 0f 1f 00 41 56 <53> 48 89 f3 49 89 fe e8 5e 14 00 00 84 c0 75 16 be 01 00 00 00 4c
RSP: 0018:ffffc900036ef7e8 EFLAGS: 00000202
RAX: 0000000000000001 RBX: 0000000000000000 RCX: f6d7eaad263ef900
RDX: 0000000000000000 RSI: ffffffff8172c1b2 RDI: ffffffff8e139ee0
RBP: ffffffff8172c195 R08: 0000000000000000 R09: 0000000000000000
R10: ffffc900036efa18 R11: fffff520006ddf45 R12: 0000000000000002
R13: ffffffff8e139ee0 R14: 0000000000000000 R15: 0000000000000000
 lock_acquire+0x8d/0x360
 unwind_next_frame+0xc2/0x2390
 __unwind_start+0x5b9/0x760
 arch_stack_walk+0xe4/0x150
 stack_trace_save+0x9c/0xe0
 kasan_save_track+0x3e/0x80
 __kasan_slab_alloc+0x6c/0x80
 kmem_cache_alloc_lru_noprof+0x1c6/0x3d0
 sock_alloc_inode+0x28/0xc0
 alloc_inode+0x6a/0x1b0
 __sock_create+0x12d/0x9f0
 __sys_socket+0xd7/0x1b0
 __x64_sys_socket+0x7a/0x90
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f787a590b07
Code: f0 ff ff 77 06 c3 0f 1f 44 00 00 48 c7 c2 a8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 66 0f 1f 44 00 00 b8 29 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff2fb6ae18 EFLAGS: 00000202 ORIG_RAX: 0000000000000029
RAX: ffffffffffffffda RBX: 00007f787a781300 RCX: 00007f787a590b07
RDX: 0000000000000006 RSI: 0000000000000001 RDI: 0000000000000002
RBP: 00007fff2fb6b53c R08: 0000000000000000 R09: 00007fff2fb6b247
R10: 0000000000000000 R11: 0000000000000202 R12: 00000000000006a4
R13: 00000000000927c0 R14: 0000000000000000 R15: 00007fff2fb6b590
 </TASK>

Allocated by task 16177:
 kasan_save_track+0x3e/0x80
 __kasan_kmalloc+0x93/0xb0
 __kmalloc_noprof+0x27a/0x4f0
 sk_prot_alloc+0xe7/0x220
 sk_alloc+0x3a/0x370
 __netlink_create+0x65/0x260
 netlink_create+0x3ca/0x590
 __sock_create+0x4b3/0x9f0
 __sys_socket+0xd7/0x1b0
 __x64_sys_socket+0x7a/0x90
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 0:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x46/0x50
 __kasan_slab_free+0x5b/0x80
 kfree+0x18e/0x440
 __sk_destruct+0x4e1/0x660
 rcu_core+0xcab/0x1770
 handle_softirqs+0x286/0x870
 __irq_exit_rcu+0xca/0x1f0
 irq_exit_rcu+0x9/0x30
 sysvec_apic_timer_interrupt+0xa6/0xc0
 asm_sysvec_apic_timer_interrupt+0x1a/0x20

Last potentially related work creation:
 kasan_save_stack+0x3e/0x60
 kasan_record_aux_stack+0xbd/0xd0
 call_rcu+0x157/0x9c0
 netlink_release+0x171a/0x1b10
 sock_close+0xc3/0x240
 __fput+0x44c/0xa70
 task_work_run+0x1d4/0x260
 exit_to_user_mode_loop+0xec/0x110
 do_syscall_64+0x2bd/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff88803ca2f000
 which belongs to the cache kmalloc-2k of size 2048
The buggy address is located 1368 bytes inside of
 freed 2048-byte region [ffff88803ca2f000, ffff88803ca2f800)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88803ca29000 pfn:0x3ca28
head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0xfff00000000240(workingset|head|node=0|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 00fff00000000240 ffff88801a442000 ffffea0000ed8c10 ffffea0000f30210
raw: ffff88803ca29000 0000000000080003 00000000f5000000 0000000000000000
head: 00fff00000000240 ffff88801a442000 ffffea0000ed8c10 ffffea0000f30210
head: ffff88803ca29000 0000000000080003 00000000f5000000 0000000000000000
head: 00fff00000000003 ffffea0000f28a01 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 Unmovable, gfp_mask 0xd28c0(GFP_NOWAIT|__GFP_IO|__GFP_FS|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 26, tgid 26 (kworker/u9:0), ts 56875403480, free_ts 0
 post_alloc_hook+0x240/0x2a0
 get_page_from_freelist+0x21e4/0x22c0
 __alloc_frozen_pages_noprof+0x181/0x370
 alloc_pages_mpol+0x232/0x4a0
 allocate_slab+0x8a/0x370
 ___slab_alloc+0xbeb/0x1410
 __kmalloc_node_track_caller_noprof+0x2f8/0x4e0
 kmalloc_reserve+0x136/0x290
 pskb_expand_head+0x18e/0x1150
 netlink_trim+0x1d5/0x2e0
 netlink_broadcast_filtered+0xd6/0x12c0
 nlmsg_notify+0xf0/0x1a0
 netif_state_change+0x29e/0x3a0
 linkwatch_do_dev+0x117/0x170
 __linkwatch_run_queue+0x56a/0x7e0
 linkwatch_event+0x4c/0x60
page_owner free stack trace missing

Memory state around the buggy address:
 ffff88803ca2f400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88803ca2f480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff88803ca2f500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                                    ^
 ffff88803ca2f580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88803ca2f600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
