bisecting fixing commit since c14d30dc9987047b439b03d6e6db7d54d9f7f180 building syzkaller on bc15f7dbbc1c6e2042a7115b3fdacc0ada8c35e7 testing commit c14d30dc9987047b439b03d6e6db7d54d9f7f180 with gcc (GCC) 8.1.0 kernel signature: 4af010ddceb50f8e45be306116a1d611eb04e6a7d5dc0b16f91de145bd2d6ded all runs: crashed: general protection fault in get_unique_tuple testing current HEAD 10ad6cfd57360760116cde00a8ef756e121367a9 testing commit 10ad6cfd57360760116cde00a8ef756e121367a9 with gcc (GCC) 8.1.0 kernel signature: e999e6686b5b36d4823409c20a45740072ea3da390c2214f17cad9a123f34d2c all runs: crashed: general protection fault in get_unique_tuple revisions tested: 2, total time: 26m16.857536505s (build: 19m13.387155374s, test: 6m10.465796591s) the crash still happens on HEAD commit msg: Linux 4.19.148 crash: general protection fault in get_unique_tuple batman_adv: batadv0: Interface activated: batadv_slave_0 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 batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3e) already exists on: batadv_slave_1 CPU: 1 PID: 7912 Comm: syz-executor.5 Not tainted 4.19.148-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 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/0x1ec0 net/netfilter/nf_nat_core.c:336 Code: c1 ea 03 80 3c 02 00 0f 85 f6 17 00 00 4a 8b 04 e5 e0 93 24 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 b4 17 00 00 49 8b 04 24 4c 89 85 20 ff ff ff 48 RSP: 0018:ffff8880a9886db8 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: ffff8880a9886f88 RCX: ffffed10153545c0 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff892494a0 RBP: ffff8880a9886ed8 R08: ffff8880a9886f4e R09: ffffed1015d6473a R10: ffffed1015d6473a R11: ffff8880aeb239d3 R12: 0000000000000000 R13: ffff8880a98870a8 R14: ffff8880a9886f28 R15: 0000000000000000 FS: 00007f34e250d700(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007efe06b2c000 CR3: 000000008c106000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! nf_nat_setup_info+0x18a/0x740 net/netfilter/nf_nat_core.c:431 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! 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 __nf_nat_alloc_null_binding+0x109/0x1a0 net/netfilter/nf_nat_core.c:490 nfnetlink_parse_nat_setup+0x2e2/0x350 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/0xfd0 net/netfilter/nf_conntrack_netlink.c:1984 ctnetlink_new_conntrack+0x46c/0xe4e net/netfilter/nf_conntrack_netlink.c:2114 batman_adv: batadv0: Interface activated: batadv_slave_1 nfnetlink_rcv_msg+0x930/0xc00 net/netfilter/nfnetlink.c:233 netlink_rcv_skb+0x13e/0x3d0 net/netlink/af_netlink.c:2455 nfnetlink_rcv+0x163/0x3b0 net/netfilter/nfnetlink.c:565 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x443/0x660 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x666/0xc50 net/netlink/af_netlink.c:1909 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xac/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:0x45d189 Code: 5d b4 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 2b b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f34e250cc78 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: 00007ffdb1ccfcdf R14: 00007f34e250d9c0 R15: 000000000118cf4c Modules linked in: IPv6: ADDRCONF(NETDEV_CHANGE): macvtap0: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): macsec0: link becomes ready ---[ end trace e577546cf1a8a94e ]--- IPv6: ADDRCONF(NETDEV_CHANGE): batadv_slave_0: 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/0x1ec0 net/netfilter/nf_nat_core.c:336 IPv6: ADDRCONF(NETDEV_CHANGE): veth0_to_batadv: link becomes ready Code: c1 ea 03 80 3c 02 00 0f 85 f6 17 00 00 4a 8b 04 e5 e0 93 24 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 b4 17 00 00 49 8b 04 24 4c 89 85 20 ff ff ff 48 IPv6: ADDRCONF(NETDEV_CHANGE): batadv_slave_0: link becomes ready RSP: 0018:ffff8880a9886db8 EFLAGS: 00010246 IPv6: ADDRCONF(NETDEV_CHANGE): veth0_to_batadv: link becomes ready RAX: dffffc0000000000 RBX: ffff8880a9886f88 RCX: ffffed10153545c0 IPv6: ADDRCONF(NETDEV_CHANGE): batadv_slave_1: link becomes ready RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff892494a0 RBP: ffff8880a9886ed8 R08: ffff8880a9886f4e R09: ffffed1015d6473a R10: ffffed1015d6473a R11: ffff8880aeb239d3 R12: 0000000000000000 R13: ffff8880a98870a8 R14: ffff8880a9886f28 R15: 0000000000000000 FS: 00007f34e250d700(0000) GS:ffff8880aea00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f511ba11020 CR3: 000000008c106000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400