------------[ cut here ]------------ kernel BUG at arch/x86/kvm/x86.c:357! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 20703 Comm: syz-executor1 Not tainted 5.0.0-rc1+ #21 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 ec 1b 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 c7 1b 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:ffff88808ce57520 EFLAGS: 00010212 RAX: 0000000000040000 RBX: ffff88805518f810 RCX: ffffc90008209000 RDX: 0000000000000481 RSI: ffffffff810bdb99 RDI: 0000000000000007 RBP: ffff88808ce57520 R08: ffff88805a94a5c0 R09: ffff88805b220000 R10: ffffed100b6441ff R11: ffff88805b220fff R12: 1ffff110119caea9 R13: ffff88808ce57568 R14: ffff88808ce575c8 R15: ffff88805b220000 FS: 00007fcf10df5700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffff88808ce57568 CR3: 000000002e1bc000 CR4: 00000000001426e0 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 alloc_loaded_vmcs+0x81/0x170 arch/x86/kvm/vmx/vmx.c:2442 vmx_create_vcpu+0x262/0x26d7 arch/x86/kvm/vmx/vmx.c:6724 kvm_arch_vcpu_create+0xea/0x220 arch/x86/kvm/x86.c:8712 kvm_vm_ioctl_create_vcpu arch/x86/kvm/../../../virt/kvm/kvm_main.c:2559 [inline] kvm_vm_ioctl+0x5d9/0x1fe0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3088 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:0x457ec9 Code: 6d b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 3b b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fcf10df4c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457ec9 RDX: 0000000000000000 RSI: 000000000000ae41 RDI: 0000000000000004 RBP: 000000000073c040 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fcf10df56d4 R13: 00000000004c09f9 R14: 00000000004d2458 R15: 00000000ffffffff Modules linked in: ------------[ cut here ]------------ kernel BUG at arch/x86/kvm/x86.c:357! invalid opcode: 0000 [#2] PREEMPT SMP KASAN CPU: 1 PID: 20703 Comm: syz-executor1 Tainted: G D 5.0.0-rc1+ #21 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 ec 1b 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 c7 1b 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:ffff8880ae707c78 EFLAGS: 00010006 RAX: ffff88805a94a5c0 RBX: ffff88804fdbb810 RCX: ffffffff8139cb1a RDX: 0000000000010000 RSI: ffffffff810bdb99 RDI: 0000000000000007 RBP: ffff8880ae707c78 R08: ffff88805a94a5c0 R09: ffffed1015ce5ba9 R10: ffffed1015ce5ba8 R11: ffff8880ae72dd47 R12: 1ffff11015ce0f94 R13: ffff8880ae707cc0 R14: ffff8880ae707d20 R15: ffff88809fcc9000 FS: 00007fcf10df5700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffff8880ae707cc0 CR3: 000000002e1bc000 CR4: 00000000001426e0 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:preempt_schedule_irq+0xab/0x140 kernel/sched/core.c:3699 Code: 00 00 e8 f8 8b 65 f9 e8 53 9a 95 f9 4c 89 f0 48 c1 e8 03 80 3c 18 00 75 6c 48 83 3d ae cc 9f 01 00 74 5e fb 66 0f 1f 44 00 00 01 00 00 00 e8 5b d2 ff ff 48 c7 c0 b8 80 92 89 48 c1 e8 03 80 RSP: 0018:ffff88808ce57268 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff04 RAX: 1ffffffff1325018 RBX: dffffc0000000000 RCX: 1ffffffff14b7b5f RDX: 0000000000000000 RSI: ffffffff81884f04 RDI: ffffffff87f2b3fd RBP: ffff88808ce57288 R08: ffff88805a94a5c0 R09: ffffed1015ce59d2 R10: ffffed1015ce59d1 R11: ffff8880ae72ce8b R12: ffffed100b5294b8 R13: ffff88805a94a5c0 R14: ffffffff899280c0 R15: 0000000000000000 retint_kernel+0x1b/0x2d RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:766 [inline] RIP: 0010:oops_end+0x61/0xf0 arch/x86/kernel/dumpstack.c:343 Code: 00 00 00 c7 05 9c bd 62 08 ff ff ff ff e8 37 9c 1e 00 83 2d b8 65 6c 09 01 74 36 48 83 3d b6 cf 65 08 00 74 53 48 89 df 57 9d <0f> 1f 44 00 00 e8 e5 a3 1e 00 be 02 00 00 00 48 c7 c7 c0 16 99 8a RSP: 0018:ffff88808ce57348 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff02 RAX: 0000000000040000 RBX: 0000000000000286 RCX: ffffc90008209000 RDX: 0000000000040000 RSI: ffffffff814b4d49 RDI: 0000000000000286 RBP: ffff88808ce57360 R08: ffff88805a94a5c0 R09: fffffbfff14b7b60 R10: fffffbfff14b7b5f R11: ffffffff8a5bdafb R12: ffff88808ce57478 R13: 000000000000000b R14: ffffffff8844ec20 R15: 0000000000000000 die+0x3e/0x48 arch/x86/kernel/dumpstack.c:405 do_trap_no_signal arch/x86/kernel/traps.c:211 [inline] do_trap+0x101/0x230 arch/x86/kernel/traps.c:250 do_error_trap+0xd6/0x200 arch/x86/kernel/traps.c:277 do_invalid_op+0x37/0x50 arch/x86/kernel/traps.c:290 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:973 RIP: 0010:kvm_spurious_fault+0x9/0x10 arch/x86/kvm/x86.c:357 Code: e8 ec 1b 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 c7 1b 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:ffff88808ce57520 EFLAGS: 00010212 RAX: 0000000000040000 RBX: ffff88805518f810 RCX: ffffc90008209000 RDX: 0000000000000481 RSI: ffffffff810bdb99 RDI: 0000000000000007 RBP: ffff88808ce57520 R08: ffff88805a94a5c0 R09: ffff88805b220000 R10: ffffed100b6441ff R11: ffff88805b220fff R12: 1ffff110119caea9 R13: ffff88808ce57568 R14: ffff88808ce575c8 R15: ffff88805b220000 vmcs_clear arch/x86/kvm/vmx/ops.h:185 [inline] loaded_vmcs_init+0xcb/0x320 arch/x86/kvm/vmx/vmx.c:565 alloc_loaded_vmcs+0x81/0x170 arch/x86/kvm/vmx/vmx.c:2442 vmx_create_vcpu+0x262/0x26d7 arch/x86/kvm/vmx/vmx.c:6724 kvm_arch_vcpu_create+0xea/0x220 arch/x86/kvm/x86.c:8712 kvm_vm_ioctl_create_vcpu arch/x86/kvm/../../../virt/kvm/kvm_main.c:2559 [inline] kvm_vm_ioctl+0x5d9/0x1fe0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3088 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:0x457ec9 Code: 6d b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 3b b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fcf10df4c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457ec9 RDX: 0000000000000000 RSI: 000000000000ae41 RDI: 0000000000000004 RBP: 000000000073c040 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fcf10df56d4 R13: 00000000004c09f9 R14: 00000000004d2458 R15: 00000000ffffffff Modules linked in: ---[ end trace 8e2e0caf78510c4e ]--- RIP: 0010:kvm_spurious_fault+0x9/0x10 arch/x86/kvm/x86.c:357 Code: e8 ec 1b 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 c7 1b 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:ffff88808ce57520 EFLAGS: 00010212 RAX: 0000000000040000 RBX: ffff88805518f810 RCX: ffffc90008209000 RDX: 0000000000000481 RSI: ffffffff810bdb99 RDI: 0000000000000007 RBP: ffff88808ce57520 R08: ffff88805a94a5c0 R09: ffff88805b220000 R10: ffffed100b6441ff R11: ffff88805b220fff R12: 1ffff110119caea9 R13: ffff88808ce57568 R14: ffff88808ce575c8 R15: ffff88805b220000 FS: 00007fcf10df5700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffff8880ae707cc0 CR3: 000000002e1bc000 CR4: 00000000001426e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400