kvm: KVM_SET_TSS_ADDR need to be called before entering vcpu general protection fault: 0000 [#1] SMP Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 0 PID: 3145 Comm: syzkaller423527 Not tainted 4.15.0-rc3-next-20171214+ #67 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:native_write_cr4+0x4/0x10 arch/x86/include/asm/special_insns.h:76 RSP: 0018:ffffc90001873cc0 EFLAGS: 00010093 RAX: ffff8802142281c0 RBX: 00000000001606f0 RCX: ffffffff8108d968 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000001606f0 RBP: ffffc90001873cc0 R08: 0000000000000001 R09: 0000000000000004 R10: ffffc90001873ce0 R11: 0000000000000004 R12: 0000000000000093 R13: ffff8802142281c0 R14: ffff8802135e00d0 R15: ffff8802135e0098 FS: 0000000001390880(0000) GS:ffff88021fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ff5f15c42a0 CR3: 000000000301e002 CR4: 00000000001626f0 Call Trace: __write_cr4 arch/x86/include/asm/paravirt.h:76 [inline] __cr4_set arch/x86/include/asm/tlbflush.h:252 [inline] cr4_clear_bits arch/x86/include/asm/tlbflush.h:275 [inline] kvm_cpu_vmxoff arch/x86/kvm/vmx.c:3582 [inline] hardware_disable+0x1a0/0x210 arch/x86/kvm/vmx.c:3588 kvm_arch_hardware_disable+0x14/0x50 arch/x86/kvm/x86.c:7983 hardware_disable_nolock+0x30/0x40 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3291 on_each_cpu+0x86/0x110 kernel/smp.c:604 hardware_disable_all_nolock+0x3e/0x50 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3309 hardware_disable_all arch/x86/kvm/../../../virt/kvm/kvm_main.c:3315 [inline] kvm_destroy_vm arch/x86/kvm/../../../virt/kvm/kvm_main.c:742 [inline] kvm_put_kvm+0x349/0x4a0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:755 kvm_vm_release+0x24/0x30 arch/x86/kvm/../../../virt/kvm/kvm_main.c:766 __fput+0x120/0x270 fs/file_table.c:209 ____fput+0x15/0x20 fs/file_table.c:243 task_work_run+0xa3/0xe0 kernel/task_work.c:113 exit_task_work include/linux/task_work.h:22 [inline] do_exit+0x3e6/0x1050 kernel/exit.c:869 do_group_exit+0x60/0x100 kernel/exit.c:972 SYSC_exit_group kernel/exit.c:983 [inline] SyS_exit_group+0x18/0x20 kernel/exit.c:981 entry_SYSCALL_64_fastpath+0x1f/0x96 RIP: 0033:0x448fe9 RSP: 002b:00007ffd5006c5d8 EFLAGS: 00000202 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 00007ff5f0dc5700 RCX: 0000000000448fe9 RDX: 0000000000474181 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007ffd5006c580 R08: 00000000006dd1c0 R09: 0000000000000000 R10: 00000000006dd144 R11: 0000000000000202 R12: 0000000000000000 R13: 00007ffd5006c57f R14: 00007ff5f0dc59c0 R15: 0000000000000000 Code: 0f 1f 80 00 00 00 00 55 48 89 e5 0f 20 d8 5d c3 0f 1f 80 00 00 00 00 55 48 89 e5 0f 22 df 5d c3 0f 1f 80 00 00 00 00 55 48 89 e5 <0f> 22 e7 5d c3 0f 1f 80 00 00 00 00 55 48 89 e5 44 0f 20 c0 5d RIP: native_write_cr4+0x4/0x10 arch/x86/include/asm/special_insns.h:76 RSP: ffffc90001873cc0 ---[ end trace 930a4b7196e1752e ]---