kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 27742 Comm: syz-executor.0 Not tainted 5.1.0-rc6+ #163 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:xs_net include/net/xfrm.h:264 [inline] RIP: 0010:xfrmi_decode_session net/xfrm/xfrm_interface.c:82 [inline] RIP: 0010:xfrmi_decode_session+0x15c/0x6c0 net/xfrm/xfrm_interface.c:73 Code: 7c fc 08 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 2e 05 00 00 48 b8 00 00 00 00 00 fc ff df 4f 8b 64 fc 08 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 0f 85 01 05 00 00 4d 8b 3c 24 e8 d1 3b 4c fb e8 8c 8f RSP: 0018:ffff88806dd0f128 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: ffff8880a7976a80 RCX: ffffc9000c380000 RDX: 0000000000000000 RSI: ffffffff8611fcb0 RDI: ffff88808e1b6c08 RBP: ffff88806dd0f150 R08: ffff888061306140 R09: ffffed1015d25bc0 R10: ffffed1015d25bbf R11: ffff8880ae92ddfb R12: 0000000000000000 R13: 0000000000000035 R14: ffff8880a7976a90 R15: ffffffffffffffff FS: 00007f5485a79700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000004e65e0 CR3: 0000000064dbe000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __xfrm_policy_check+0x1f8/0x2730 net/xfrm/xfrm_policy.c:3522 __xfrm_policy_check2 include/net/xfrm.h:1107 [inline] xfrm_policy_check include/net/xfrm.h:1112 [inline] xfrm4_policy_check include/net/xfrm.h:1117 [inline] vti_input+0x540/0x810 net/ipv4/ip_vti.c:63 vti_rcv net/ipv4/ip_vti.c:91 [inline] vti_rcv_proto+0x10e/0x140 net/ipv4/ip_vti.c:96 xfrm4_esp_rcv+0xd8/0x240 net/ipv4/xfrm4_protocol.c:99 ip_protocol_deliver_rcu+0x60/0x8f0 net/ipv4/ip_input.c:208 ip_local_deliver_finish+0x23b/0x390 net/ipv4/ip_input.c:234 NF_HOOK include/linux/netfilter.h:296 [inline] NF_HOOK include/linux/netfilter.h:290 [inline] ip_local_deliver+0x1e9/0x520 net/ipv4/ip_input.c:255 dst_input include/net/dst.h:439 [inline] ip_rcv_finish+0x1e1/0x300 net/ipv4/ip_input.c:413 NF_HOOK include/linux/netfilter.h:296 [inline] NF_HOOK include/linux/netfilter.h:290 [inline] ip_rcv+0xe8/0x3f0 net/ipv4/ip_input.c:523 __netif_receive_skb_one_core+0x115/0x1a0 net/core/dev.c:4990 __netif_receive_skb+0x2c/0x1d0 net/core/dev.c:5102 netif_receive_skb_internal+0x117/0x5c0 net/core/dev.c:5205 napi_frags_finish net/core/dev.c:5772 [inline] napi_gro_frags+0xade/0xd10 net/core/dev.c:5846 tun_get_user+0x2f3f/0x3ff0 drivers/net/tun.c:1981 tun_chr_write_iter+0xbd/0x156 drivers/net/tun.c:2027 call_write_iter include/linux/fs.h:1866 [inline] do_iter_readv_writev+0x5e1/0x8e0 fs/read_write.c:681 do_iter_write fs/read_write.c:957 [inline] do_iter_write+0x184/0x610 fs/read_write.c:938 vfs_writev+0x1b3/0x2f0 fs/read_write.c:1002 do_writev+0x15e/0x370 fs/read_write.c:1037 __do_sys_writev fs/read_write.c:1110 [inline] __se_sys_writev fs/read_write.c:1107 [inline] __x64_sys_writev+0x75/0xb0 fs/read_write.c:1107 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x458c61 Code: 75 14 b8 14 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 e4 b9 fb ff c3 48 83 ec 08 e8 1a 2d 00 00 48 89 04 24 b8 14 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 63 2d 00 00 48 89 d0 48 83 c4 08 48 3d 01 RSP: 002b:00007f5485a78ba0 EFLAGS: 00000293 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 0000000000000403 RCX: 0000000000458c61 RDX: 0000000000000001 RSI: 00007f5485a78c00 RDI: 00000000000000f0 RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 00007f5485a799d0 R11: 0000000000000293 R12: 00007f5485a796d4 R13: 00000000004c76b6 R14: 00000000004dd610 R15: 00000000ffffffff Modules linked in: ---[ end trace 481371c1f2d4e209 ]--- RIP: 0010:xs_net include/net/xfrm.h:264 [inline] RIP: 0010:xfrmi_decode_session net/xfrm/xfrm_interface.c:82 [inline] RIP: 0010:xfrmi_decode_session+0x15c/0x6c0 net/xfrm/xfrm_interface.c:73 Code: 7c fc 08 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 2e 05 00 00 48 b8 00 00 00 00 00 fc ff df 4f 8b 64 fc 08 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 0f 85 01 05 00 00 4d 8b 3c 24 e8 d1 3b 4c fb e8 8c 8f RSP: 0018:ffff88806dd0f128 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: ffff8880a7976a80 RCX: ffffc9000c380000 RDX: 0000000000000000 RSI: ffffffff8611fcb0 RDI: ffff88808e1b6c08 RBP: ffff88806dd0f150 R08: ffff888061306140 R09: ffffed1015d25bc0 R10: ffffed1015d25bbf R11: ffff8880ae92ddfb R12: 0000000000000000 R13: 0000000000000035 R14: ffff8880a7976a90 R15: ffffffffffffffff FS: 00007f5485a79700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000004e65e0 CR3: 0000000064dbe000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400