BUG: sleeping function called from invalid context at arch/x86/mm/fault.c:1363 kvm [20391]: vcpu0, guest rIP: 0x14c Hyper-V uhandled wrmsr: 0x40000015 data 0x2000000e3 in_atomic(): 0, irqs_disabled(): 0, pid: 20405, name: syz-executor.0 kvm [20391]: vcpu0, guest rIP: 0x14c Hyper-V uhandled wrmsr: 0x4000004e data 0x2000000f5 3 locks held by syz-executor.0/20405: audit: type=1804 audit(1581991768.862:704): pid=20411 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op="invalid_pcr" cause="open_writers" comm="syz-executor.2" name="/root/syzkaller-testdir173166595/syzkaller.EBGGH7/241/bus" dev="sda1" ino=18563 res=1 #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+0x18c/0x10c0 net/netfilter/nf_conntrack_netlink.c:1785 #2: (&mm->mmap_sem){++++}, at: [] __do_page_fault+0x2ca/0xb80 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+0x35/0x140 kernel/rcu/tree.c:1177 CPU: 0 PID: 20405 Comm: syz-executor.0 Not tainted 4.14.171-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+0x142/0x197 lib/dump_stack.c:58 ___might_sleep.cold+0x1bd/0x1f6 kernel/sched/core.c:6041 __might_sleep+0x93/0xb0 kernel/sched/core.c:5994 __do_page_fault+0x2ed/0xb80 arch/x86/mm/fault.c:1363 do_page_fault+0x71/0x511 arch/x86/mm/fault.c:1495 page_fault+0x25/0x50 arch/x86/entry/entry_64.S:1122 RIP: 0010: (null) RSP: 0018:ffff88805115f200 EFLAGS: 00010246 RAX: ffffffff88b2eeb0 RBX: ffff88805115f290 RCX: ffffc9000642f000 RDX: 1ffffffff1165ddd RSI: ffff88805115f240 RDI: ffff88805115f290 RBP: ffff88805115f308 R08: 1ffff1100a22be52 R09: ffff88805115f290 R10: ffffed100a22be57 R11: ffff88805115f2bf R12: ffff8880a8b96dc0 R13: 0000000000000000 R14: ffff88805115f2e0 R15: ffff88805115f240 BUG: unable to handle kernel NULL pointer dereference at (null) IP: (null) PGD a8a1d067 P4D a8a1d067 PUD 954e1067 PMD 0 Oops: 0010 [#1] PREEMPT SMP KASAN Modules linked in: CPU: 0 PID: 20405 Comm: syz-executor.0 Tainted: G W 4.14.171-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff88809811a300 task.stack: ffff888051158000 RIP: 0010: (null) RSP: 0018:ffff88805115f200 EFLAGS: 00010246 RAX: ffffffff88b2eeb0 RBX: ffff88805115f290 RCX: ffffc9000642f000 RDX: 1ffffffff1165ddd RSI: ffff88805115f240 RDI: ffff88805115f290 RBP: ffff88805115f308 R08: 1ffff1100a22be52 R09: ffff88805115f290 R10: ffffed100a22be57 R11: ffff88805115f2bf R12: ffff8880a8b96dc0 R13: 0000000000000000 R14: ffff88805115f2e0 R15: ffff88805115f240 FS: 00007fd8f7c7c700(0000) GS:ffff8880aec00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000076c000 CR3: 0000000096e36000 CR4: 00000000001426f0 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+0x215/0x3b0 net/netfilter/nf_nat_core.c:784 ctnetlink_parse_nat_setup+0x76/0x4a0 net/netfilter/nf_conntrack_netlink.c:1421 ctnetlink_setup_nat net/netfilter/nf_conntrack_netlink.c:1496 [inline] ctnetlink_create_conntrack+0x4a6/0x10c0 net/netfilter/nf_conntrack_netlink.c:1840 ctnetlink_new_conntrack+0x4af/0xcc0 net/netfilter/nf_conntrack_netlink.c:1964 nfnetlink_rcv_msg+0xa08/0xc00 net/netfilter/nfnetlink.c:214 netlink_rcv_skb+0x14f/0x3c0 net/netlink/af_netlink.c:2432 nfnetlink_rcv+0x1ab/0x1650 net/netfilter/nfnetlink.c:515 netlink_unicast_kernel net/netlink/af_netlink.c:1286 [inline] netlink_unicast+0x44d/0x650 net/netlink/af_netlink.c:1312 netlink_sendmsg+0x7c4/0xc60 net/netlink/af_netlink.c:1877 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xce/0x110 net/socket.c:656 ___sys_sendmsg+0x70a/0x840 net/socket.c:2062 __sys_sendmsg+0xb9/0x140 net/socket.c:2096 SYSC_sendmsg net/socket.c:2107 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2103 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x45c6b9 RSP: 002b:00007fd8f7c7bc78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007fd8f7c7c6d4 RCX: 000000000045c6b9 RDX: 0000000000000000 RSI: 00000000200000c0 RDI: 0000000000000003 RBP: 000000000076bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000948 R14: 00000000004cbdd2 R15: 000000000076bf2c Code: Bad RIP value. RIP: (null) RSP: ffff88805115f200 CR2: 0000000000000000 audit: type=1804 audit(1581991770.182:705): pid=20439 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op="invalid_pcr" cause="open_writers" comm="syz-executor.5" name="/root/syzkaller-testdir841875200/syzkaller.ahQCE3/604/bus" dev="sda1" ino=16553 res=1 audit: type=1804 audit(1581991770.192:706): pid=20439 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op="invalid_pcr" cause="ToMToU" comm="syz-executor.5" name="/root/syzkaller-testdir841875200/syzkaller.ahQCE3/604/bus" dev="sda1" ino=16553 res=1 kvm [20450]: vcpu0, guest rIP: 0x14c Hyper-V uhandled wrmsr: 0x40000015 data 0x2000000e3 kvm [20450]: vcpu0, guest rIP: 0x14c Hyper-V uhandled wrmsr: 0x4000004e data 0x2000000f5 audit: type=1804 audit(1581991770.282:707): pid=20448 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op="invalid_pcr" cause="open_writers" comm="syz-executor.5" name="/root/syzkaller-testdir841875200/syzkaller.ahQCE3/605/bus" dev="sda1" ino=16541 res=1 ---[ end trace 8de247e411143aab ]---