==================================================================
BUG: KFENCE: use-after-free read in __xfrm_state_lookup+0x319/0x8d0

Use-after-free read at 0xffff888136576142 (in kfence-#186):
 __xfrm_state_lookup+0x319/0x8d0
 xfrm_state_lookup+0x11e/0x1e0
 xfrm_user_state_lookup+0x231/0x370
 xfrm_del_sa+0xf1/0x3e0
 xfrm_user_rcv_msg+0x7a3/0xab0
 netlink_rcv_skb+0x208/0x470
 xfrm_netlink_rcv+0x79/0x90
 netlink_unicast+0x82f/0x9e0
 netlink_sendmsg+0x805/0xb30
 __sock_sendmsg+0x21c/0x270
 ____sys_sendmsg+0x505/0x830
 ___sys_sendmsg+0x21f/0x2a0
 __x64_sys_sendmsg+0x19b/0x260
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

kfence-#186: 0xffff888136576000-0xffff8881365760ef, size=240, cache=skbuff_head_cache

allocated by task 27 on cpu 1 at 254.735495s (7.606102s ago):
 __alloc_skb+0x112/0x2d0
 nsim_dev_trap_report_work+0x29a/0xb80
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30

freed by task 27 on cpu 1 at 254.735624s (7.622829s ago):
 nsim_dev_trap_report_work+0x7cf/0xb80
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30

CPU: 0 UID: 0 PID: 10117 Comm: syz.2.1696 Not tainted 6.17.0-rc1-syzkaller-00022-g07866544e410-dirty #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
RIP: 0010:__xfrm_state_lookup+0x319/0x8d0
Code: 30 48 89 4c 24 38 48 c1 e9 03 48 89 4c 24 50 4c 8d b3 42 01 00 00 4c 89 f0 48 c1 e8 03 42 0f b6 04 20 84 c0 0f 85 7c 03 00 00 <45> 0f b7 36 44 89 f7 44 89 ee e8 08 7e 9f f7 66 45 39 ee 0f 85 2f
RSP: 0018:ffffc900061bf060 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff888136576000 RCX: 1ffff11006f14a33
RDX: ffff888030b95640 RSI: 0000000000000008 RDI: 000000000000000a
RBP: ffffc900061bf160 R08: ffff888030b95640 R09: 0000000000000002
R10: 000000000000000a R11: 0000000000000002 R12: dffffc0000000000
R13: 0000000000000008 R14: ffff888136576142 R15: 00000000d4040000
FS:  00007fd8716746c0(0000) GS:ffff8880b861c000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffff888136576142 CR3: 000000002967a000 CR4: 00000000000006f0
DR0: 0000200000000300 DR1: 0000000000000000 DR2: 0000200000000300
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
Call Trace:
 <TASK>
 xfrm_state_lookup+0x11e/0x1e0
 xfrm_user_state_lookup+0x231/0x370
 xfrm_del_sa+0xf1/0x3e0
 xfrm_user_rcv_msg+0x7a3/0xab0
 netlink_rcv_skb+0x208/0x470
 xfrm_netlink_rcv+0x79/0x90
 netlink_unicast+0x82f/0x9e0
 netlink_sendmsg+0x805/0xb30
 __sock_sendmsg+0x21c/0x270
 ____sys_sendmsg+0x505/0x830
 ___sys_sendmsg+0x21f/0x2a0
 __x64_sys_sendmsg+0x19b/0x260
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd87078ebe9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 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:00007fd871674038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fd8709b5fa0 RCX: 00007fd87078ebe9
RDX: 0000000000000040 RSI: 0000200000000780 RDI: 0000000000000003
RBP: 00007fd870811e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fd8709b6038 R14: 00007fd8709b5fa0 R15: 00007ffcaac8c548
 </TASK>
==================================================================
