BUG: sleeping function called from invalid context at arch/x86/mm/fault.c:1342 in_atomic(): 0, irqs_disabled(): 1, pid: 12295, name: syz-executor2 1 lock held by syz-executor2/12295: #0: 000000005ceb720d (&mm->mmap_sem){++++}, at: __do_page_fault+0x381/0xe40 arch/x86/mm/fault.c:1328 irq event stamp: 8888 hardirqs last enabled at (8887): [] do_syscall_64+0x92/0x800 arch/x86/entry/common.c:274 hardirqs last disabled at (8888): [] slab_alloc mm/slab.c:3383 [inline] hardirqs last disabled at (8888): [] kmem_cache_alloc+0x9c/0x760 mm/slab.c:3552 softirqs last enabled at (8834): [] __do_softirq+0x778/0xaf5 kernel/softirq.c:311 softirqs last disabled at (8815): [] invoke_softirq kernel/softirq.c:365 [inline] softirqs last disabled at (8815): [] irq_exit+0x1d1/0x200 kernel/softirq.c:405 CPU: 0 PID: 12295 Comm: syz-executor2 Not tainted 4.17.0-rc1+ #5 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:vmx_vcpu_run+0x95f/0x25f0 arch/x86/kvm/vmx.c:9746 RSP: 0018:ffff8801b8637388 EFLAGS: 00010002 RAX: 0000000000000000 RBX: ffff8801dad86dc0 RCX: 0000000000000286 RDX: 0000000000000010 RSI: 0000000000000000 RDI: ffff8801ce561a00 RBP: ffff8801b8637be0 R08: ffffed003b6046c3 R09: ffff8801ce561a00 R10: ffffed003b6046c2 R11: ffff8801db023613 R12: ffff8801ce560a00 R13: 0000000000000000 R14: 0000000000000000 R15: ffffea0007395800 cache_init_objs mm/slab.c:2579 [inline] cache_grow_begin+0x2b3/0x6c0 mm/slab.c:2705 cache_alloc_refill mm/slab.c:3045 [inline] ____cache_alloc mm/slab.c:3127 [inline] __do_cache_alloc mm/slab.c:3349 [inline] slab_alloc mm/slab.c:3384 [inline] kmem_cache_alloc+0x689/0x760 mm/slab.c:3552 getname_flags+0xd0/0x5a0 fs/namei.c:140 getname+0x19/0x20 fs/namei.c:211 do_sys_open+0x39a/0x740 fs/open.c:1087 __do_sys_openat fs/open.c:1120 [inline] __se_sys_openat fs/open.c:1114 [inline] __x64_sys_openat+0x9d/0x100 fs/open.c:1114 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x455319 RSP: 002b:00007fc3ddc01c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007fc3ddc026d4 RCX: 0000000000455319 RDX: 0000000000000000 RSI: 0000000020000240 RDI: ffffffffffffff9c RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 000000000000042f R14: 00000000006f9508 R15: 0000000000000000 BUG: unable to handle kernel paging request at 000000000000590e PGD 1d0609067 P4D 1d0609067 PUD 1a8cae067 PMD 0 Oops: 0002 [#1] SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 0 PID: 12295 Comm: syz-executor2 Tainted: G W 4.17.0-rc1+ #5 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:vmx_vcpu_run+0x95f/0x25f0 arch/x86/kvm/vmx.c:9746 RSP: 0018:ffff8801b8637388 EFLAGS: 00010002 RAX: 0000000000000000 RBX: ffff8801dad86dc0 RCX: 0000000000000286 RDX: 0000000000000010 RSI: 0000000000000000 RDI: ffff8801ce561a00 RBP: ffff8801b8637be0 R08: ffffed003b6046c3 R09: ffff8801ce561a00 R10: ffffed003b6046c2 R11: ffff8801db023613 R12: ffff8801ce560a00 R13: 0000000000000000 R14: 0000000000000000 R15: ffffea0007395800 FS: 00007fc3ddc02700(0000) GS:ffff8801db000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000000590e CR3: 000000018e08a000 CR4: 00000000001426f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: cache_init_objs mm/slab.c:2579 [inline] cache_grow_begin+0x2b3/0x6c0 mm/slab.c:2705 cache_alloc_refill mm/slab.c:3045 [inline] ____cache_alloc mm/slab.c:3127 [inline] __do_cache_alloc mm/slab.c:3349 [inline] slab_alloc mm/slab.c:3384 [inline] kmem_cache_alloc+0x689/0x760 mm/slab.c:3552 getname_flags+0xd0/0x5a0 fs/namei.c:140 getname+0x19/0x20 fs/namei.c:211 do_sys_open+0x39a/0x740 fs/open.c:1087 __do_sys_openat fs/open.c:1120 [inline] __se_sys_openat fs/open.c:1114 [inline] __x64_sys_openat+0x9d/0x100 fs/open.c:1114 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x455319 RSP: 002b:00007fc3ddc01c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007fc3ddc026d4 RCX: 0000000000455319 RDX: 0000000000000000 RSI: 0000000020000240 RDI: ffffffffffffff9c RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 000000000000042f R14: 00000000006f9508 R15: 0000000000000000 Code: 8b a9 68 03 00 00 4c 8b b1 70 03 00 00 4c 8b b9 78 03 00 00 48 8b 89 08 03 00 00 75 05 0f 01 c2 eb 03 0f 01 c3 48 89 4c 24 08 59 <0f> 96 81 88 56 00 00 48 89 81 00 03 00 00 48 89 99 18 03 00 00 RIP: vmx_vcpu_run+0x95f/0x25f0 arch/x86/kvm/vmx.c:9746 RSP: ffff8801b8637388 CR2: 000000000000590e ---[ end trace 14971525b9e18247 ]---