==================================================================
BUG: KFENCE: use-after-free read in xfrm_alloc_spi+0x3b9/0xf30

Use-after-free read at 0xffff88813641c0c4 (in kfence-#13):
 xfrm_alloc_spi+0x3b9/0xf30
 pfkey_getspi+0x7a8/0xee0
 pfkey_sendmsg+0xbfe/0x1090
 __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-#13: 0xffff88813641c000-0xffff88813641c04f, size=80, cache=kmalloc-96

allocated by task 5877 on cpu 0 at 138.603461s (7.295538s ago):
 nsim_fib_event_work+0x1174/0x3180
 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 6596 on cpu 0 at 140.651947s (5.261726s ago):
 nsim_fib_event_work+0x1d84/0x3180
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30

CPU: 1 UID: 0 PID: 14317 Comm: syz.1.3733 Not tainted syzkaller #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_alloc_spi+0x3b9/0xf30
Code: c1 08 c1 74 0a e8 77 b7 9d f7 e9 14 02 00 00 49 8d 9d c4 00 00 00 48 89 d8 48 c1 e8 03 42 0f b6 04 20 84 c0 0f 85 9f 01 00 00 <8b> 1b 89 df 44 89 f6 e8 0b b9 9d f7 44 39 f3 0f 85 df 00 00 00 49
RSP: 0018:ffffc900065c75a0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff88813641c0c4 RCX: 0000000000080000
RDX: ffffc90003511000 RSI: 0000000000000122 RDI: 0000000000000123
RBP: ffffc900065c76f8 R08: 0000000000000000 R09: 0000000000000000
R10: dffffc0000000000 R11: fffff52000cb8ea4 R12: dffffc0000000000
R13: ffff88813641c000 R14: 0000000000e90000 R15: 0000000000000000
FS:  00007f43e97336c0(0000) GS:ffff8881a3c18000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffff88813641c0c4 CR3: 0000000037a5e000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 pfkey_getspi+0x7a8/0xee0
 pfkey_sendmsg+0xbfe/0x1090
 __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:0x7f43e898ebe9
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:00007f43e9733038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f43e8bb5fa0 RCX: 00007f43e898ebe9
RDX: 0000000000000000 RSI: 0000200000000180 RDI: 0000000000000003
RBP: 00007f43e8a11e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f43e8bb6038 R14: 00007f43e8bb5fa0 R15: 00007ffe37d3b838
 </TASK>
==================================================================
