bisecting fixing commit since 6dd0e32665e591e9debe3edaf73c2f8135bf047e building syzkaller on 7c54686a26b084125103ba5f30ef8e8749eaccae testing commit 6dd0e32665e591e9debe3edaf73c2f8135bf047e with gcc (GCC) 8.1.0 kernel signature: 6748461a96cfdddd3a8df25359ca31826476f8f4ea37ed4db2319916c01b7131 all runs: crashed: general protection fault in get_unique_tuple testing current HEAD 258f0cf7ac3b788a14c0d01aab3c4aea02f8c86e testing commit 258f0cf7ac3b788a14c0d01aab3c4aea02f8c86e with gcc (GCC) 8.1.0 kernel signature: 00d43b518a66e2f7777fc7cade319b3cb21c44f2e49d1f25b69699dacc843099 all runs: crashed: general protection fault in get_unique_tuple revisions tested: 2, total time: 26m43.630337995s (build: 19m26.546449733s, test: 6m2.47030031s) the crash still happens on HEAD commit msg: Linux 4.19.123 crash: general protection fault in get_unique_tuple IPv6: ADDRCONF(NETDEV_UP): veth0_macvtap: link is not ready kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access IPv6: ADDRCONF(NETDEV_UP): veth1_macvtap: link is not ready general protection fault: 0000 [#1] PREEMPT SMP KASAN IPv6: ADDRCONF(NETDEV_CHANGE): veth1_macvtap: link becomes ready CPU: 0 PID: 7836 Comm: syz-executor.2 Not tainted 4.19.123-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 IPv6: ADDRCONF(NETDEV_CHANGE): veth0_macvtap: link becomes ready RIP: 0010:__read_once_size include/linux/compiler.h:193 [inline] RIP: 0010:__nf_nat_l4proto_find net/netfilter/nf_nat_core.c:73 [inline] RIP: 0010:get_unique_tuple+0x210/0x1eb0 net/netfilter/nf_nat_core.c:336 Code: c1 ea 03 80 3c 02 00 0f 85 f2 17 00 00 4a 8b 04 e5 20 65 23 89 4e 8d 24 f8 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 0f 85 b0 17 00 00 49 8b 04 24 4c 89 85 20 ff ff ff 48 RSP: 0018:ffff88808997edc0 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: ffff88808997ef90 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff8858b720 RDI: ffffffff89236ba8 RBP: ffff88808997eee0 R08: ffff88808997ef56 R09: ffffed1015d44732 R10: ffffed1015d44732 R11: ffff8880aea23993 R12: 0000000000000000 R13: ffff88808997f0b0 R14: ffff88808997ef30 R15: 0000000000000000 FS: 00007f2e431c7700(0000) GS:ffff8880aea00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007efd95b9a700 CR3: 000000008ad1c000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: nf_nat_setup_info+0x18a/0x730 net/netfilter/nf_nat_core.c:431 __nf_nat_alloc_null_binding+0x109/0x1a0 net/netfilter/nf_nat_core.c:490 nfnetlink_parse_nat_setup+0x2d3/0x340 net/netfilter/nf_nat_core.c:882 ctnetlink_parse_nat_setup+0x7c/0x430 net/netfilter/nf_conntrack_netlink.c:1521 ctnetlink_setup_nat net/netfilter/nf_conntrack_netlink.c:1591 [inline] ctnetlink_create_conntrack+0x389/0xfa0 net/netfilter/nf_conntrack_netlink.c:1984 ctnetlink_new_conntrack+0x46c/0xe10 net/netfilter/nf_conntrack_netlink.c:2114 nfnetlink_rcv_msg+0x942/0xc05 net/netfilter/nfnetlink.c:228 netlink_rcv_skb+0x142/0x390 net/netlink/af_netlink.c:2455 nfnetlink_rcv+0x163/0x3b0 net/netfilter/nfnetlink.c:560 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x443/0x650 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x765/0xc40 net/netlink/af_netlink.c:1909 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xb5/0xf0 net/socket.c:632 ___sys_sendmsg+0x647/0x950 net/socket.c:2115 __sys_sendmsg+0xd9/0x180 net/socket.c:2153 __do_sys_sendmsg net/socket.c:2162 [inline] __se_sys_sendmsg net/socket.c:2160 [inline] __x64_sys_sendmsg+0x73/0xb0 net/socket.c:2160 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45c889 Code: ad b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f2e431c6c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f2e431c76d4 RCX: 000000000045c889 RDX: 0000000000000000 RSI: 0000000020000640 RDI: 0000000000000003 RBP: 000000000076bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 000000000000095e R14: 00000000004cc163 R15: 000000000076bf0c Modules linked in: ---[ end trace 2e3969fa2501ba57 ]--- device veth0_macvtap entered promiscuous mode RIP: 0010:__read_once_size include/linux/compiler.h:193 [inline] RIP: 0010:__nf_nat_l4proto_find net/netfilter/nf_nat_core.c:73 [inline] RIP: 0010:get_unique_tuple+0x210/0x1eb0 net/netfilter/nf_nat_core.c:336 IPv6: ADDRCONF(NETDEV_UP): macvtap0: link is not ready Code: c1 ea 03 80 3c 02 00 0f 85 f2 17 00 00 4a 8b 04 e5 20 65 23 89 4e 8d 24 f8 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 0f 85 b0 17 00 00 49 8b 04 24 4c 89 85 20 ff ff ff 48 device veth1_macvtap entered promiscuous mode RSP: 0018:ffff88808997edc0 EFLAGS: 00010246 IPv6: ADDRCONF(NETDEV_UP): macsec0: link is not ready RAX: dffffc0000000000 RBX: ffff88808997ef90 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff8858b720 RDI: ffffffff89236ba8 IPv6: ADDRCONF(NETDEV_UP): veth0_to_batadv: link is not ready RBP: ffff88808997eee0 R08: ffff88808997ef56 R09: ffffed1015d44732 IPv6: ADDRCONF(NETDEV_UP): veth1_to_batadv: link is not ready R10: ffffed1015d44732 R11: ffff8880aea23993 R12: 0000000000000000 batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3d) already exists on: batadv_slave_0 R13: ffff88808997f0b0 R14: ffff88808997ef30 R15: 0000000000000000 batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! FS: 00007f2e431c7700(0000) GS:ffff8880aea00000(0000) knlGS:0000000000000000 batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3d) already exists on: batadv_slave_0 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007efd95b9a700 CR3: 000000008ad1c000 CR4: 00000000001406f0 batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3d) already exists on: batadv_slave_0 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400