general protection fault, probably for non-canonical address 0xdffffc0000000019: 0000 [#1] PREEMPT SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x00000000000000c8-0x00000000000000cf] CPU: 1 PID: 13247 Comm: syz-executor.5 Not tainted 6.1.0-rc5-next-20221121 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 RIP: 0010:xfrm_policy_lookup_bytype.constprop.0.cold+0x21/0x5d Code: 45 68 f2 ff e9 26 ff 5e ff e8 1b f7 0b fd 48 8b 44 24 10 48 8d b8 cc 00 00 00 b8 ff ff 37 00 48 89 fa 48 c1 e0 2a 48 c1 ea 03 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 04 84 d2 75 20 48 RSP: 0018:ffff88801c8c72d8 EFLAGS: 00010213 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc9000642d000 RDX: 0000000000000019 RSI: ffffffff843cf015 RDI: 00000000000000cc RBP: 0000000000000001 R08: 0000000000000007 R09: fffffffffffff000 R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000 R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000000 FS: 00007f17d7ff7700(0000) GS:ffff88806cf00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2e028000 CR3: 000000000a248000 CR4: 0000000000350ee0 Call Trace: __xfrm_policy_check+0xdd7/0x2190 udp_queue_rcv_one_skb+0xd99/0x18c0 udp_queue_rcv_skb+0x191/0x990 __udp4_lib_rcv+0x1eee/0x2bc0 ip_protocol_deliver_rcu+0x57d/0x800 ip_local_deliver_finish+0x2e0/0x4c0 ip_local_deliver+0x1b2/0x200 ip_rcv+0x1be/0x4a0 __netif_receive_skb_one_core+0x19b/0x1f0 __netif_receive_skb+0x1f/0x1c0 netif_receive_skb+0x120/0x860 tun_rx_batched+0x4b3/0x7b0 tun_get_user+0x20af/0x34c0 tun_chr_write_iter+0xdf/0x1e0 vfs_write+0xa4f/0xe40 ksys_write+0x12b/0x260 do_syscall_64+0x3f/0x90 entry_SYSCALL_64_after_hwframe+0x72/0xdc RIP: 0033:0x7f17daa555ff Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 99 fd ff ff 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 cc fd ff ff 48 RSP: 002b:00007f17d7ff7150 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f17dabb6020 RCX: 00007f17daa555ff RDX: 000000000000002a RSI: 0000000020000140 RDI: 00000000000000f0 RBP: 00007f17daafcf6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000 R13: 00007ffdba14bc2f R14: 00007f17d7ff7300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:xfrm_policy_lookup_bytype.constprop.0.cold+0x21/0x5d Code: 45 68 f2 ff e9 26 ff 5e ff e8 1b f7 0b fd 48 8b 44 24 10 48 8d b8 cc 00 00 00 b8 ff ff 37 00 48 89 fa 48 c1 e0 2a 48 c1 ea 03 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 04 84 d2 75 20 48 RSP: 0018:ffff88801c8c72d8 EFLAGS: 00010213 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc9000642d000 RDX: 0000000000000019 RSI: ffffffff843cf015 RDI: 00000000000000cc RBP: 0000000000000001 R08: 0000000000000007 R09: fffffffffffff000 R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000 R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000000 FS: 00007f17d7ff7700(0000) GS:ffff88806cf00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2e028000 CR3: 000000000a248000 CR4: 0000000000350ee0 ---------------- Code disassembly (best guess): 0: 45 68 f2 ff e9 26 rex.RB pushq $0x26e9fff2 6: ff 5e ff lcall *-0x1(%rsi) 9: e8 1b f7 0b fd callq 0xfd0bf729 e: 48 8b 44 24 10 mov 0x10(%rsp),%rax 13: 48 8d b8 cc 00 00 00 lea 0xcc(%rax),%rdi 1a: b8 ff ff 37 00 mov $0x37ffff,%eax 1f: 48 89 fa mov %rdi,%rdx 22: 48 c1 e0 2a shl $0x2a,%rax 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 0f b6 14 02 movzbl (%rdx,%rax,1),%edx <-- trapping instruction 2e: 48 89 f8 mov %rdi,%rax 31: 83 e0 07 and $0x7,%eax 34: 83 c0 03 add $0x3,%eax 37: 38 d0 cmp %dl,%al 39: 7c 04 jl 0x3f 3b: 84 d2 test %dl,%dl 3d: 75 20 jne 0x5f 3f: 48 rex.W