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: 0 PID: 18303 Comm: syz-executor.0 Not tainted 4.14.174-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff88809b76e0c0 task.stack: ffff88804cfb8000 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+0x230/0x19e0 net/netfilter/nf_nat_core.c:313 RSP: 0018:ffff88804cfbef18 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: ffff88804cfbf090 RCX: 1ffffffff1126015 RDX: 0000000000000000 RSI: ffffffff8526a642 RDI: ffffffff889300a8 RBP: ffff88804cfbf040 R08: 0000000000000000 R09: 0000000000020012 R10: ffff88809b76e990 R11: ffff88809b76e0c0 R12: 0000000000000000 R13: 0000000000000089 R14: ffff88804cfbf0b6 R15: ffff88804cfbf0e0 FS: 00007f91bbb81700(0000) GS:ffff8880aea00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fffed0c6c78 CR3: 0000000083f4a000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: nf_nat_setup_info+0x17b/0x710 net/netfilter/nf_nat_core.c:407 __nf_nat_alloc_null_binding+0x13f/0x180 net/netfilter/nf_nat_core.c:466 nfnetlink_parse_nat_setup+0x30c/0x370 net/netfilter/nf_nat_core.c:782 ctnetlink_parse_nat_setup+0x70/0x490 net/netfilter/nf_conntrack_netlink.c:1421 ctnetlink_setup_nat net/netfilter/nf_conntrack_netlink.c:1491 [inline] ctnetlink_create_conntrack+0x437/0x1040 net/netfilter/nf_conntrack_netlink.c:1840 ctnetlink_new_conntrack+0x460/0xc30 net/netfilter/nf_conntrack_netlink.c:1964 nfnetlink_rcv_msg+0xa08/0xc00 net/netfilter/nfnetlink.c:214 netlink_rcv_skb+0x127/0x370 net/netlink/af_netlink.c:2433 nfnetlink_rcv+0x1ab/0x1650 net/netfilter/nfnetlink.c:515 netlink_unicast_kernel net/netlink/af_netlink.c:1287 [inline] netlink_unicast+0x437/0x620 net/netlink/af_netlink.c:1313 netlink_sendmsg+0x733/0xbe0 net/netlink/af_netlink.c:1878 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xc5/0x100 net/socket.c:656 ___sys_sendmsg+0x70a/0x840 net/socket.c:2062 __sys_sendmsg+0xa3/0x120 net/socket.c:2096 SYSC_sendmsg net/socket.c:2107 [inline] SyS_sendmsg+0x27/0x40 net/socket.c:2103 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x45c849 RSP: 002b:00007f91bbb80c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f91bbb816d4 RCX: 000000000045c849 RDX: 0000000000000000 RSI: 0000000020000640 RDI: 0000000000000004 RBP: 000000000076bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 000000000000095c R14: 00000000004cc0fb R15: 000000000076bf0c Code: 48 c1 e9 03 80 3c 11 00 0f 85 91 14 00 00 4a 8b 14 e5 60 fc 92 88 4c 8d 24 c2 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 0f 85 81 14 00 00 49 8b 04 24 48 89 85 30 ff ff ff RIP: __read_once_size include/linux/compiler.h:183 [inline] RSP: ffff88804cfbef18 RIP: __nf_nat_l4proto_find net/netfilter/nf_nat_core.c:54 [inline] RSP: ffff88804cfbef18 RIP: get_unique_tuple+0x230/0x19e0 net/netfilter/nf_nat_core.c:313 RSP: ffff88804cfbef18 ---[ end trace 5ee8942e74d816b0 ]---