BUG: sleeping function called from invalid context at arch/x86/mm/fault.c:1385 in_atomic(): 0, irqs_disabled(): 0, pid: 30118, name: syz-executor.0 3 locks held by syz-executor.0/30118: #0: (&table[i].mutex){+.+.}, at: [] nfnl_lock net/netfilter/nfnetlink.c:61 [inline] #0: (&table[i].mutex){+.+.}, at: [] nfnetlink_rcv_msg+0x78a/0xc00 net/netfilter/nfnetlink.c:209 #1: (rcu_read_lock){....}, at: [] ctnetlink_create_conntrack+0x166/0x1040 net/netfilter/nf_conntrack_netlink.c:1785 #2: (&mm->mmap_sem){++++}, at: [] __do_page_fault+0x2cd/0xb40 arch/x86/mm/fault.c:1371 Preemption disabled at: [] rcu_lockdep_current_cpu_online kernel/rcu/tree.c:1185 [inline] [] rcu_lockdep_current_cpu_online+0x30/0x140 kernel/rcu/tree.c:1177 CPU: 1 PID: 30118 Comm: syz-executor.0 Not tainted 4.14.175-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x13e/0x194 lib/dump_stack.c:58 ___might_sleep.cold+0x1bd/0x1f9 kernel/sched/core.c:6041 __do_page_fault+0x2f0/0xb40 arch/x86/mm/fault.c:1385 page_fault+0x25/0x50 arch/x86/entry/entry_64.S:1122 RIP: 0010: (null) RSP: 0018:ffff8882019a7268 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: ffff8882019a72f0 RCX: ffffc90005c89000 RDX: 1ffffffff1126005 RSI: ffff8882019a72a0 RDI: ffff8882019a72f0 RBP: ffff8880a43f2e00 R08: ffffffff873c60a0 R09: ffff8882019a72f0 R10: ffffed1040334e63 R11: ffff8882019a731f R12: 0000000000000000 R13: 0000000000000000 R14: ffffffff8892fff0 R15: ffff8882019a72a0 BUG: unable to handle kernel NULL pointer dereference at (null) IP: (null) PGD 935bc067 P4D 935bc067 PUD 49c2d067 PMD 0 Oops: 0010 [#1] PREEMPT SMP KASAN Modules linked in: CPU: 1 PID: 30118 Comm: syz-executor.0 Tainted: G W 4.14.175-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff888050a106c0 task.stack: ffff8882019a0000 RIP: 0010: (null) RSP: 0018:ffff8882019a7268 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: ffff8882019a72f0 RCX: ffffc90005c89000 RDX: 1ffffffff1126005 RSI: ffff8882019a72a0 RDI: ffff8882019a72f0 RBP: ffff8880a43f2e00 R08: ffffffff873c60a0 R09: ffff8882019a72f0 R10: ffffed1040334e63 R11: ffff8882019a731f R12: 0000000000000000 R13: 0000000000000000 R14: ffffffff8892fff0 R15: ffff8882019a72a0 FS: 00007f52a4665700(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa71877edb8 CR3: 000000004b19f000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: nfnetlink_parse_nat net/netfilter/nf_nat_core.c:747 [inline] nfnetlink_parse_nat_setup+0x1e0/0x370 net/netfilter/nf_nat_core.c:784 ctnetlink_parse_nat_setup+0x70/0x490 net/netfilter/nf_conntrack_netlink.c:1421 ctnetlink_setup_nat net/netfilter/nf_conntrack_netlink.c:1496 [inline] ctnetlink_create_conntrack+0x477/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:00007f52a4664c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f52a46656d4 RCX: 000000000045c849 RDX: 0000000000000000 RSI: 0000000020000580 RDI: 0000000000000004 RBP: 000000000076bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 000000000000095c R14: 00000000004cc0fb R15: 000000000076bf0c Code: Bad RIP value. RIP: (null) RSP: ffff8882019a7268 CR2: 0000000000000000 ---[ end trace 55c9137b64d1994d ]---