BUG: sleeping function called from invalid context at arch/x86/mm/fault.c:1363 in_atomic(): 0, irqs_disabled(): 0, pid: 8710, name: syz-executor.5 audit: type=1400 audit(1585628025.456:52): avc: denied { write } for pid=8708 comm="syz-executor.5" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_netfilter_socket permissive=1 3 locks held by syz-executor.5/8710: #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:1349 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: 0 PID: 8710 Comm: syz-executor.5 Not tainted 4.14.174-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:1363 page_fault+0x25/0x50 arch/x86/entry/entry_64.S:1122 RIP: 0010: (null) RSP: 0018:ffff88804d6d7268 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: ffff88804d6d72f0 RCX: ffffc90005e24000 RDX: 1ffffffff112601d RSI: ffff88804d6d72a0 RDI: ffff88804d6d72f0 RBP: ffff888099561dc0 R08: ffffffff873c5f20 R09: ffff88804d6d72f0 R10: ffffed1009adae63 R11: ffff88804d6d731f R12: 0000000000000000 R13: 0000000000000000 R14: ffffffff889300b0 R15: ffff88804d6d72a0 BUG: unable to handle kernel NULL pointer dereference at (null) syz-executor.1 calls setitimer() with new_value NULL pointer. Misfeature support will be removed IP: (null) PGD a4d9b067 P4D a4d9b067 PUD 9ee19067 PMD 0 Oops: 0010 [#1] PREEMPT SMP KASAN Modules linked in: CPU: 0 PID: 8710 Comm: syz-executor.5 Tainted: G W 4.14.174-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff88804dbda040 task.stack: ffff88804d6d0000 RIP: 0010: (null) RSP: 0018:ffff88804d6d7268 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: ffff88804d6d72f0 RCX: ffffc90005e24000 RDX: 1ffffffff112601d RSI: ffff88804d6d72a0 RDI: ffff88804d6d72f0 RBP: ffff888099561dc0 R08: ffffffff873c5f20 R09: ffff88804d6d72f0 R10: ffffed1009adae63 R11: ffff88804d6d731f R12: 0000000000000000 R13: 0000000000000000 R14: ffffffff889300b0 R15: ffff88804d6d72a0 FS: 00007f928af0b700(0000) GS:ffff8880aea00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000b70004 CR3: 00000000a0b2d000 CR4: 00000000001406f0 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:00007f928af0ac78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f928af0b6d4 RCX: 000000000045c849 RDX: 0000000000000000 RSI: 0000000020000580 RDI: 0000000000000003 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: ffff88804d6d7268 CR2: 0000000000000000 ---[ end trace 71297d7f432b5471 ]---