bisecting fixing commit since 1bab61d3e8cd96f2badf515dcb06e4e1029bc017 building syzkaller on 8ca3b7d2bb7672b5608051fab4b825fdbbf2356a testing commit 1bab61d3e8cd96f2badf515dcb06e4e1029bc017 with gcc (GCC) 8.1.0 kernel signature: dafa68d5b6e4d378b3b93a2182cf23e03bd9f6c4916051a454aa71217576b298 all runs: crashed: general protection fault in get_unique_tuple testing current HEAD 399849e4654ea496a6217ba4e5ee3d304c995ab4 testing commit 399849e4654ea496a6217ba4e5ee3d304c995ab4 with gcc (GCC) 8.1.0 kernel signature: 5eea0e51cfbc1b3ddbe0c108b14a6e87e2236943141edb20eaf8cf43d44ec646 all runs: crashed: general protection fault in get_unique_tuple revisions tested: 2, total time: 23m40.584414227s (build: 16m55.967492134s, test: 6m14.170980173s) the crash still happens on HEAD commit msg: Linux 4.19.131 crash: general protection fault in get_unique_tuple IPv6: ADDRCONF(NETDEV_CHANGE): batadv_slave_1: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_batadv: link becomes ready 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: 7858 Comm: syz-executor.0 Not tainted 4.19.131-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 20 b3 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 b4 17 00 00 49 8b 04 24 4c 89 85 20 ff ff ff 48 RSP: 0018:ffff88809096edb8 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: ffff88809096ef88 RCX: ffffed1011dbb9f0 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff8923b5c8 RBP: ffff88809096eed8 R08: ffff88809096ef4e R09: ffffed1015d4473a R10: ffffed1015d4473a R11: ffff8880aea239d3 R12: 0000000000000000 R13: ffff88809096f0a8 R14: ffff88809096ef28 R15: 0000000000000000 FS: 00007fa98489c700(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055d334b4ad48 CR3: 000000008f1c0000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: nf_nat_setup_info+0x18a/0x740 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+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 nfnetlink_rcv_msg+0x930/0xc00 net/netfilter/nfnetlink.c:228 netlink_rcv_skb+0x13e/0x3d0 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/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:0x45ca29 Code: 0d b7 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 db b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fa98489bc78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00000000004fe740 RCX: 000000000045ca29 RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000000000003 RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000964 R14: 00000000004cc38b R15: 00007fa98489c6d4 Modules linked in: ---[ end trace 131f518d31f44fc9 ]--- 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 20 b3 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 b4 17 00 00 49 8b 04 24 4c 89 85 20 ff ff ff 48 RSP: 0018:ffff88809096edb8 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: ffff88809096ef88 RCX: ffffed1011dbb9f0 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff8923b5c8 RBP: ffff88809096eed8 R08: ffff88809096ef4e R09: ffffed1015d4473a R10: ffffed1015d4473a R11: ffff8880aea239d3 R12: 0000000000000000 R13: ffff88809096f0a8 R14: ffff88809096ef28 R15: 0000000000000000 FS: 00007fa98489c700(0000) GS:ffff8880aea00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000788060 CR3: 000000008f1c0000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400