------------[ cut here ]------------ kernel BUG at arch/x86/kvm/x86.c:357! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 8336 Comm: syz-executor2 Not tainted 5.0.0-rc3+ #44 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:kvm_spurious_fault+0x9/0x10 arch/x86/kvm/x86.c:357 Code: e8 3c 24 76 00 41 bd 03 00 00 00 5b 44 89 e8 41 5c 41 5d 5d c3 66 90 66 2e 0f 1f 84 00 00 00 00 00 55 48 89 e5 e8 17 24 76 00 <0f> 0b 0f 1f 44 00 00 55 48 89 e5 41 57 41 56 49 89 d6 41 55 41 54 RSP: 0018:ffff8880ae607c78 EFLAGS: 00010006 RAX: ffff88804b1a2280 RBX: ffff888099263810 RCX: ffffffff8139cb1a RDX: 0000000000010000 RSI: ffffffff810bdcb9 RDI: 0000000000000007 RBP: ffff8880ae607c78 R08: ffff88804b1a2280 R09: ffffed1015cc5ba9 R10: ffffed1015cc5ba8 R11: ffff8880ae62dd47 R12: 1ffff11015cc0f94 R13: ffff8880ae607cc0 R14: ffff8880ae607d20 R15: ffff888020158000 FS: 00007f0ef283c700(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffff8880ae607cc0 CR3: 00000000a302a000 CR4: 00000000001426f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: vmcs_clear arch/x86/kvm/vmx/ops.h:185 [inline] loaded_vmcs_init+0xcb/0x320 arch/x86/kvm/vmx/vmx.c:565 __loaded_vmcs_clear+0x2c1/0x520 arch/x86/kvm/vmx/vmx.c:632 flush_smp_call_function_queue+0x1bb/0x640 kernel/smp.c:243 generic_smp_call_function_single_interrupt+0x13/0x2b kernel/smp.c:192 smp_call_function_single_interrupt+0x117/0x640 arch/x86/kernel/smp.c:296 call_function_single_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:829 RIP: 0010:arch_local_save_flags+0x29/0x50 arch/x86/include/asm/paravirt.h:761 Code: 00 48 c7 c0 68 81 92 89 55 48 ba 00 00 00 00 00 fc ff df 48 c1 e8 03 48 89 e5 80 3c 10 00 75 15 48 83 3d 81 4b 3a 08 00 74 09 <9c> 58 0f 1f 44 00 00 5d c3 0f 0b 48 c7 c7 68 81 92 89 e8 c0 c7 6d RSP: 0018:ffff888090df72e0 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff04 RAX: 1ffffffff132502d RBX: 1ffff110121bee5f RCX: 1ffff110096344be RDX: dffffc0000000000 RSI: 0000000000000000 RDI: ffff88804b1a25f0 RBP: ffff888090df72e0 R08: ffff88804b1a2280 R09: 0000000000000002 R10: 0000000000200000 R11: 0000000000000001 R12: 0000000000000000 R13: ffffffff893cc14c R14: 0000000000000bef R15: 0000000000000000 ___might_sleep+0x1e7/0x310 kernel/sched/core.c:6115 __might_sleep+0x95/0x190 kernel/sched/core.c:6101 cache_alloc_debugcheck_before mm/slab.c:3055 [inline] cache_alloc_debugcheck_before mm/slab.c:3052 [inline] slab_alloc_node mm/slab.c:3292 [inline] kmem_cache_alloc_node_trace+0x2a7/0x720 mm/slab.c:3650 __do_kmalloc_node mm/slab.c:3672 [inline] __kmalloc_node+0x3d/0x70 mm/slab.c:3680 kmalloc_node include/linux/slab.h:588 [inline] kvmalloc_node+0x68/0x100 mm/util.c:416 kvmalloc include/linux/mm.h:604 [inline] kvmalloc_array include/linux/mm.h:622 [inline] kvcalloc include/linux/mm.h:627 [inline] kvm_arch_create_memslot+0xc3/0x570 arch/x86/kvm/x86.c:9292 __kvm_set_memory_region+0x1cbb/0x2c40 arch/x86/kvm/../../../virt/kvm/kvm_main.c:1011 kvm_set_memory_region+0x2f/0x60 arch/x86/kvm/../../../virt/kvm/kvm_main.c:1083 kvm_vm_ioctl_set_memory_region arch/x86/kvm/../../../virt/kvm/kvm_main.c:1095 [inline] kvm_vm_ioctl+0xafa/0x1fe0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3112 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:509 [inline] do_vfs_ioctl+0x107b/0x17d0 fs/ioctl.c:696 ksys_ioctl+0xab/0xd0 fs/ioctl.c:713 __do_sys_ioctl fs/ioctl.c:720 [inline] __se_sys_ioctl fs/ioctl.c:718 [inline] __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:718 do_syscall_64+0x1a3/0x800 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457f07 Code: 48 83 c4 08 48 89 d8 5b 5d c3 66 0f 1f 84 00 00 00 00 00 48 89 e8 48 f7 d8 48 39 c3 0f 92 c0 eb 92 66 90 b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 cd b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f0ef283a098 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000015 RCX: 0000000000457f07 RDX: 00007f0ef283a510 RSI: 000000004020ae46 RDI: 000000000000000b RBP: 0000000020014000 R08: 0000000000000001 R09: 0000000000000000 R10: ffffffffffffffff R11: 0000000000000246 R12: 00000000fec00000 R13: 000000000000000b R14: 00000000004dbbf8 R15: 00000000ffffffff Modules linked in: ---[ end trace 11a6c7b3352ec4b8 ]--- RIP: 0010:kvm_spurious_fault+0x9/0x10 arch/x86/kvm/x86.c:357 Code: e8 3c 24 76 00 41 bd 03 00 00 00 5b 44 89 e8 41 5c 41 5d 5d c3 66 90 66 2e 0f 1f 84 00 00 00 00 00 55 48 89 e5 e8 17 24 76 00 <0f> 0b 0f 1f 44 00 00 55 48 89 e5 41 57 41 56 49 89 d6 41 55 41 54 RSP: 0018:ffff8880ae607c78 EFLAGS: 00010006 RAX: ffff88804b1a2280 RBX: ffff888099263810 RCX: ffffffff8139cb1a RDX: 0000000000010000 RSI: ffffffff810bdcb9 RDI: 0000000000000007 RBP: ffff8880ae607c78 R08: ffff88804b1a2280 R09: ffffed1015cc5ba9 R10: ffffed1015cc5ba8 R11: ffff8880ae62dd47 R12: 1ffff11015cc0f94 R13: ffff8880ae607cc0 R14: ffff8880ae607d20 R15: ffff888020158000 FS: 00007f0ef283c700(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffff8880ae607cc0 CR3: 00000000a302a000 CR4: 00000000001426f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400