Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 1 UID: 0 PID: 977 Comm: kworker/1:2 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
Workqueue: wg-crypt-wg0 wg_packet_tx_worker
RIP: 0010:xfrm_state_find+0x4c9b/0x5400
Code: 00 00 00 00 00 fc ff df 80 3c 03 00 74 08 4c 89 ff e8 49 ba 01 f8 49 8b 1f 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 17 bb 01 f8 4c 89 23 48 b8 00 00 00
RSP: 0000:ffffc90006927100 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000008
RBP: ffffc90006927320 R08: dffffc0000000000 R09: 0000000000000002
R10: 000000000000000a R11: 0000000000000000 R12: ffff88810ed48da8
R13: ffff88810ed48d80 R14: ffff88810ed48928 R15: ffff88810ed48db0
FS:  0000000000000000(0000) GS:ffff8881a3c15000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b3301cffc CR3: 0000000118710000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 xfrm_resolve_and_create_bundle+0x768/0x2f80
 xfrm_lookup_with_ifid+0x58a/0x1a70
 xfrm_lookup_route+0x3c/0x1c0
 send6+0x4ce/0x8d0
 wg_socket_send_skb_to_peer+0x111/0x1d0
 wg_packet_tx_worker+0x1c8/0x7c0
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x439/0x7d0
 ret_from_fork_asm+0x1a/0x30
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:xfrm_state_find+0x4c9b/0x5400
Code: 00 00 00 00 00 fc ff df 80 3c 03 00 74 08 4c 89 ff e8 49 ba 01 f8 49 8b 1f 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 17 bb 01 f8 4c 89 23 48 b8 00 00 00
RSP: 0000:ffffc90006927100 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000008
RBP: ffffc90006927320 R08: dffffc0000000000 R09: 0000000000000002
R10: 000000000000000a R11: 0000000000000000 R12: ffff88810ed48da8
R13: ffff88810ed48d80 R14: ffff88810ed48928 R15: ffff88810ed48db0
FS:  0000000000000000(0000) GS:ffff8881a3c15000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b3301cffc CR3: 0000000118710000 CR4: 00000000000006f0
