8021q: adding VLAN 0 to HW filter on device batadv0 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: 0 PID: 7551 Comm: syz-executor480 Not tainted 5.0.0-rc8-next-20190228 #45 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:xs_net include/net/xfrm.h:253 [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 41 93 53 fb e8 ec e7 RSP: 0018:ffff88808cc37018 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: ffff888097d05d00 RCX: ffffffff860a8063 RDX: 0000000000000000 RSI: ffffffff860a80a0 RDI: ffff8880a834bd88 RBP: ffff88808cc37040 R08: ffff88808e6f43c0 R09: ffffed1015d05bc8 R10: ffffed1015d05bc7 R11: ffff8880ae82de3b R12: 0000000000000000 R13: 0000000000000035 R14: ffff888097d05d10 R15: ffffffffffffffff FS: 0000000001941880(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020200000 CR3: 0000000092ccd000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __xfrm_policy_check+0x1f8/0x2730 net/xfrm/xfrm_policy.c:3316 __xfrm_policy_check2 include/net/xfrm.h:1176 [inline] xfrm_policy_check include/net/xfrm.h:1181 [inline] xfrm6_policy_check include/net/xfrm.h:1191 [inline] vti6_rcv+0x51a/0x970 net/ipv6/ip6_vti.c:316 xfrm6_esp_rcv+0xd8/0x230 net/ipv6/xfrm6_protocol.c:74 ip6_protocol_deliver_rcu+0x303/0x16c0 net/ipv6/ip6_input.c:394 ip6_input_finish+0x84/0x170 net/ipv6/ip6_input.c:434 NF_HOOK include/linux/netfilter.h:289 [inline] NF_HOOK include/linux/netfilter.h:283 [inline] ip6_input+0xe4/0x3f0 net/ipv6/ip6_input.c:443 ip6_mc_input+0x4aa/0xf30 net/ipv6/ip6_input.c:537 dst_input include/net/dst.h:450 [inline] ip6_rcv_finish+0x1e7/0x320 net/ipv6/ip6_input.c:76 NF_HOOK include/linux/netfilter.h:289 [inline] NF_HOOK include/linux/netfilter.h:283 [inline] ipv6_rcv+0x10e/0x420 net/ipv6/ip6_input.c:272 __netif_receive_skb_one_core+0x115/0x1a0 net/core/dev.c:4973 __netif_receive_skb+0x2c/0x1c0 net/core/dev.c:5083 netif_receive_skb_internal+0x117/0x660 net/core/dev.c:5186 napi_frags_finish net/core/dev.c:5753 [inline] napi_gro_frags+0xade/0xd10 net/core/dev.c:5827 tun_get_user+0x2c17/0x3d70 drivers/net/tun.c:1974 tun_chr_write_iter+0xbd/0x160 drivers/net/tun.c:2019 call_write_iter include/linux/fs.h:1857 [inline] do_iter_readv_writev+0x5e1/0x8e0 fs/read_write.c:680 do_iter_write fs/read_write.c:956 [inline] do_iter_write+0x184/0x610 fs/read_write.c:937 vfs_writev+0x1b3/0x2f0 fs/read_write.c:1001 do_writev+0xf6/0x290 fs/read_write.c:1036 __do_sys_writev fs/read_write.c:1109 [inline] __se_sys_writev fs/read_write.c:1106 [inline] __x64_sys_writev+0x75/0xb0 fs/read_write.c:1106 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x442000 Code: 05 48 3d 01 f0 ff ff 0f 83 3d 0f fc ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 83 3d 11 90 29 00 00 75 14 b8 14 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 14 0f fc ff c3 48 83 ec 08 e8 7a 2b 00 00 RSP: 002b:00007ffead42a598 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 00007ffead42a5e0 RCX: 0000000000442000 RDX: 0000000000000001 RSI: 00007ffead42a5e0 RDI: 00000000000000f0 RBP: 0000000000000003 R08: 000000000000bbff R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffead42a5b0 R13: 0000000000403430 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace cbbeeaa22a7e78cb ]--- RIP: 0010:xs_net include/net/xfrm.h:253 [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 41 93 53 fb e8 ec e7 RSP: 0018:ffff88808cc37018 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: ffff888097d05d00 RCX: ffffffff860a8063 RDX: 0000000000000000 RSI: ffffffff860a80a0 RDI: ffff8880a834bd88 RBP: ffff88808cc37040 R08: ffff88808e6f43c0 R09: ffffed1015d05bc8 R10: ffffed1015d05bc7 R11: ffff8880ae82de3b R12: 0000000000000000 R13: 0000000000000035 R14: ffff888097d05d10 R15: ffffffffffffffff FS: 0000000001941880(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020200000 CR3: 0000000092ccd000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400