BUG: sleeping function called from invalid context at arch/x86/mm/fault.c:1342 in_atomic(): 0, irqs_disabled(): 1, pid: 23630, name: syz-executor3 2 locks held by syz-executor3/23630: #0: 000000004f4af359 (pernet_ops_rwsem){++++}, at: copy_net_ns+0x297/0x4c0 net/core/net_namespace.c:432 #1: 0000000004d8dc82 (&mm->mmap_sem){++++}, at: __do_page_fault+0x381/0xe40 arch/x86/mm/fault.c:1328 irq event stamp: 15646 hardirqs last enabled at (15645): [] slab_alloc mm/slab.c:3385 [inline] hardirqs last enabled at (15645): [] kmem_cache_alloc_trace+0x28b/0x780 mm/slab.c:3618 hardirqs last disabled at (15646): [] error_entry+0x76/0xd0 arch/x86/entry/entry_64.S:1262 softirqs last enabled at (15636): [] __do_softirq+0x778/0xaf5 kernel/softirq.c:311 softirqs last disabled at (15619): [] invoke_softirq kernel/softirq.c:365 [inline] softirqs last disabled at (15619): [] irq_exit+0x1d1/0x200 kernel/softirq.c:405 CPU: 0 PID: 23630 Comm: syz-executor3 Not tainted 4.17.0-rc4+ #46 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1b9/0x294 lib/dump_stack.c:113 ___might_sleep.cold.87+0x11f/0x13a kernel/sched/core.c:6184 __might_sleep+0x95/0x190 kernel/sched/core.c:6137 __do_page_fault+0x3ae/0xe40 arch/x86/mm/fault.c:1342 do_page_fault+0xee/0x8a7 arch/x86/mm/fault.c:1474 page_fault+0x1e/0x30 arch/x86/entry/entry_64.S:1160 RIP: 0010:msr_write_intercepted arch/x86/kvm/vmx.c:2126 [inline] RIP: 0010:vmx_vcpu_run+0xa3d/0x25f0 arch/x86/kvm/vmx.c:9869 RSP: 0018:ffff8801adb273b0 EFLAGS: 00010046 RAX: 0000000041b58ab3 RBX: 0000000010000000 RCX: ffffc900024b3000 RDX: 1ffffffff113491e RSI: ffffffff811f757c RDI: 0000000000000005 RBP: ffff8801adb27438 R08: ffff8801d7804780 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 alloc_inode+0x63/0x190 fs/inode.c:209 new_inode_pseudo+0x69/0x1a0 fs/inode.c:894 sock_alloc+0x41/0x270 net/socket.c:564 sock_create_lite+0x87/0x120 net/socket.c:1096 __netlink_kernel_create+0x112/0x9c0 net/netlink/af_netlink.c:2024 netlink_kernel_create include/linux/netlink.h:60 [inline] uevent_net_init+0x1dd/0x410 lib/kobject_uevent.c:696 BUG: unable to handle kernel paging request at 0000000041b5e1f3 PGD 1ce2bc067 P4D 1ce2bc067 PUD 0 Oops: 0000 [#1] SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 0 PID: 23630 Comm: syz-executor3 Tainted: G W 4.17.0-rc4+ #46 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:msr_write_intercepted arch/x86/kvm/vmx.c:2126 [inline] RIP: 0010:vmx_vcpu_run+0xa3d/0x25f0 arch/x86/kvm/vmx.c:9869 RSP: 0018:ffff8801adb273b0 EFLAGS: 00010046 RAX: 0000000041b58ab3 RBX: 0000000010000000 RCX: ffffc900024b3000 RDX: 1ffffffff113491e RSI: ffffffff811f757c RDI: 0000000000000005 RBP: ffff8801adb27438 R08: ffff8801d7804780 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f0c7e5db700(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000041b5e1f3 CR3: 00000001b77af000 CR4: 00000000001426f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: alloc_inode+0x63/0x190 fs/inode.c:209 new_inode_pseudo+0x69/0x1a0 fs/inode.c:894 sock_alloc+0x41/0x270 net/socket.c:564 sock_create_lite+0x87/0x120 net/socket.c:1096 __netlink_kernel_create+0x112/0x9c0 net/netlink/af_netlink.c:2024 netlink_kernel_create include/linux/netlink.h:60 [inline] uevent_net_init+0x1dd/0x410 lib/kobject_uevent.c:696 Code: 84 91 00 00 00 e8 74 c9 59 00 48 8b 54 24 08 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 36 19 00 00 48 8b 04 24 <48> 8b 98 40 57 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d 7b 40 RIP: msr_write_intercepted arch/x86/kvm/vmx.c:2126 [inline] RSP: ffff8801adb273b0 RIP: vmx_vcpu_run+0xa3d/0x25f0 arch/x86/kvm/vmx.c:9869 RSP: ffff8801adb273b0 CR2: 0000000041b5e1f3 ---[ end trace efd8284ec4608784 ]---