BUG: sleeping function called from invalid context at arch/x86/mm/fault.c:1342 in_atomic(): 0, irqs_disabled(): 1, pid: 25547, name: syz-executor3 1 lock held by syz-executor3/25547: #0: 00000000c27bc5ba (&mm->mmap_sem){++++}, at: __do_page_fault+0x381/0xe40 arch/x86/mm/fault.c:1328 irq event stamp: 9780 hardirqs last enabled at (9779): [] slab_alloc mm/slab.c:3385 [inline] hardirqs last enabled at (9779): [] kmem_cache_alloc+0x26f/0x760 mm/slab.c:3552 hardirqs last disabled at (9780): [] error_entry+0x76/0xd0 arch/x86/entry/entry_64.S:1262 softirqs last enabled at (9638): [] __do_softirq+0x778/0xaf5 kernel/softirq.c:311 softirqs last disabled at (9557): [] invoke_softirq kernel/softirq.c:365 [inline] softirqs last disabled at (9557): [] irq_exit+0x1d1/0x200 kernel/softirq.c:405 CPU: 0 PID: 25547 Comm: syz-executor3 Not tainted 4.17.0-rc1+ #7 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:6188 __might_sleep+0x95/0x190 kernel/sched/core.c:6141 __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:9875 RSP: 0018:ffff8801af6373b0 EFLAGS: 00010046 RAX: 0000000041b58ab3 RBX: 0000000010000000 RCX: ffffc900032d2000 RDX: 1ffffffff10f33a0 RSI: ffffffff811f64ec RDI: 0000000000000005 RBP: ffff8801af637588 R08: ffff8801d40dc040 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 BUG: unable to handle kernel paging request at 0000000041b5e1f3 PGD 1b6869067 P4D 1b6869067 PUD 0 Oops: 0000 [#1] SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 0 PID: 25547 Comm: syz-executor3 Tainted: G W 4.17.0-rc1+ #7 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:9875 RSP: 0018:ffff8801af6373b0 EFLAGS: 00010046 RAX: 0000000041b58ab3 RBX: 0000000010000000 RCX: ffffc900032d2000 RDX: 1ffffffff10f33a0 RSI: ffffffff811f64ec RDI: 0000000000000005 RBP: ffff8801af637588 R08: ffff8801d40dc040 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 00007fbc46b72700(0000) GS:ffff8801db000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000041b5e1f3 CR3: 00000001c71db000 CR4: 00000000001426f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: Code: 84 91 00 00 00 e8 a4 ca 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: ffff8801af6373b0 RIP: vmx_vcpu_run+0xa3d/0x25f0 arch/x86/kvm/vmx.c:9875 RSP: ffff8801af6373b0 CR2: 0000000041b5e1f3 ---[ end trace 1a38035a17117b2b ]---