bisecting fixing commit since 14b58326976de6ef3998eefec1dd7f8b38b97a75 building syzkaller on bc15f7dbbc1c6e2042a7115b3fdacc0ada8c35e7 testing commit 14b58326976de6ef3998eefec1dd7f8b38b97a75 with gcc (GCC) 8.1.0 kernel signature: b7da8dfdb64c5d25884614137d0286b5d7164d22d9c2f7707cd405267b3397f5 all runs: crashed: general protection fault in get_unique_tuple testing current HEAD 458a534cac0c808fce164cc961f8384ffc8c455e testing commit 458a534cac0c808fce164cc961f8384ffc8c455e with gcc (GCC) 8.1.0 kernel signature: 46abb8303221a71699d70944887ef3fe1af5565af77e0f106e197c5cc82760c4 all runs: crashed: general protection fault in get_unique_tuple revisions tested: 2, total time: 28m52.856752857s (build: 21m28.108750053s, test: 5m46.352381175s) the crash still happens on HEAD commit msg: Linux 4.14.197 crash: general protection fault in get_unique_tuple batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3e) already exists on: batadv_slave_1 batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! 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 Modules linked in: CPU: 1 PID: 7822 Comm: syz-executor.4 Not tainted 4.14.197-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8880a549c400 task.stack: ffff8880a4b70000 RIP: 0010:__read_once_size include/linux/compiler.h:183 [inline] RIP: 0010:__nf_nat_l4proto_find net/netfilter/nf_nat_core.c:54 [inline] RIP: 0010:get_unique_tuple+0x209/0x1f70 net/netfilter/nf_nat_core.c:313 RSP: 0018:ffff8880a4b76d28 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: ffff8880a4b76ef8 RCX: 1ffffffff1167b64 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff88b3db20 RBP: ffff8880a4b76e48 R08: 1ffff11014a93990 R09: 0000000000000000 R10: 0000000000000050 R11: ffff8880a549c400 R12: ffff8880a4b76e98 R13: ffff8880a4b77018 R14: 0000000000000000 R15: ffff8880a4b76ebe FS: 00007f93e41bd700(0000) GS:ffff8880aed00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000300 CR3: 0000000088027000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: nf_nat_setup_info+0x180/0x720 net/netfilter/nf_nat_core.c:407 IPv6: ADDRCONF(NETDEV_UP): batadv_slave_1: link is not ready batman_adv: batadv0: Interface activated: batadv_slave_1 IPv6: ADDRCONF(NETDEV_UP): veth0_to_batadv: link is not ready IPv6: ADDRCONF(NETDEV_UP): veth1_to_batadv: link is not ready batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3d) already exists on: batadv_slave_0 batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3d) already exists on: batadv_slave_0 batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! __nf_nat_alloc_null_binding+0xfd/0x180 net/netfilter/nf_nat_core.c:466 nfnetlink_parse_nat_setup+0x2c5/0x330 net/netfilter/nf_nat_core.c:782 batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3d) already exists on: batadv_slave_0 batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! ctnetlink_parse_nat_setup+0x61/0x3d0 net/netfilter/nf_conntrack_netlink.c:1421 ctnetlink_setup_nat net/netfilter/nf_conntrack_netlink.c:1491 [inline] ctnetlink_create_conntrack+0x366/0xf10 net/netfilter/nf_conntrack_netlink.c:1840 IPv6: ADDRCONF(NETDEV_UP): batadv_slave_0: link is not ready batman_adv: batadv0: Interface activated: batadv_slave_0 ctnetlink_new_conntrack+0x432/0xd2b net/netfilter/nf_conntrack_netlink.c:1964 batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3e) already exists on: batadv_slave_1 batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! nfnetlink_rcv_msg+0x872/0xa60 net/netfilter/nfnetlink.c:214 batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3e) already exists on: batadv_slave_1 netlink_rcv_skb+0x12f/0x3b0 net/netlink/af_netlink.c:2433 batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! nfnetlink_rcv+0x176/0x15b0 net/netfilter/nfnetlink.c:515 batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3e) already exists on: batadv_slave_1 batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! IPv6: ADDRCONF(NETDEV_UP): batadv_slave_1: link is not ready batman_adv: batadv0: Interface activated: batadv_slave_1 netlink_unicast_kernel net/netlink/af_netlink.c:1287 [inline] netlink_unicast+0x40b/0x610 net/netlink/af_netlink.c:1313 netlink_sendmsg+0x657/0xc60 net/netlink/af_netlink.c:1878 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xac/0xf0 net/socket.c:656 ___sys_sendmsg+0x625/0x920 net/socket.c:2062 __sys_sendmsg+0xc1/0x140 net/socket.c:2096 SYSC_sendmsg net/socket.c:2107 [inline] SyS_sendmsg+0xd/0x20 net/socket.c:2103 do_syscall_64+0x1c7/0x5b0 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x45d189 RSP: 002b:00007f93e41bcc78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 0000000000028580 RCX: 000000000045d189 RDX: 0000000000000000 RSI: 0000000020000300 RDI: 0000000000000003 RBP: 000000000118cf80 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118cf4c R13: 00007ffd7619ec2f R14: 00007f93e41bd9c0 R15: 000000000118cf4c Code: 48 c1 e9 03 80 3c 11 00 0f 85 bc 17 00 00 4a 8b 14 f5 60 da b3 88 4c 8d 34 c2 48 b8 00 00 00 00 00 fc ff df 4c 89 f2 48 c1 ea 03 <80> 3c 02 00 0f 85 b6 17 00 00 49 8b 06 48 89 85 40 ff ff ff e8 RIP: __read_once_size include/linux/compiler.h:183 [inline] RSP: ffff8880a4b76d28 RIP: __nf_nat_l4proto_find net/netfilter/nf_nat_core.c:54 [inline] RSP: ffff8880a4b76d28 RIP: get_unique_tuple+0x209/0x1f70 net/netfilter/nf_nat_core.c:313 RSP: ffff8880a4b76d28 device veth1_macvtap entered promiscuous mode ---[ end trace 6219e6aa35037172 ]---