kvm: KVM_SET_TSS_ADDR need to be called before entering vcpu kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 1 PID: 3155 Comm: syz-executor0 Not tainted 4.15.0-rc2-mm1+ #39 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:ffff8801c5d475a0 EFLAGS: 00010093 RAX: ffff8801c5da0180 RBX: 00000000001606e0 RCX: ffffffff811a2d22 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000001606e0 RBP: ffff8801c5d475a0 R08: ffff8801c5d47150 R09: ffff8801c5da0180 R10: ffff8801c5d47510 R11: ffffed0038ba8e2c R12: 0000000000000093 R13: ffff8801c5da0180 R14: ffff8801db31a130 R15: ffff8801db31a130 FS: 0000000001d4e940(0000) GS:ffff8801db300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 0000000006225005 CR4: 00000000001626e0 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+0x34a/0x4b0 arch/x86/kvm/vmx.c:3588 kvm_arch_hardware_disable+0x35/0xd0 arch/x86/kvm/x86.c:7969 hardware_disable_nolock+0x30/0x40 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3283 on_each_cpu+0xca/0x1b0 kernel/smp.c:604 hardware_disable_all_nolock+0x3e/0x50 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3301 hardware_disable_all arch/x86/kvm/../../../virt/kvm/kvm_main.c:3307 [inline] kvm_destroy_vm arch/x86/kvm/../../../virt/kvm/kvm_main.c:734 [inline] kvm_put_kvm+0x956/0xde0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:747 kvm_vm_release+0x42/0x50 arch/x86/kvm/../../../virt/kvm/kvm_main.c:758 __fput+0x333/0x7f0 fs/file_table.c:210 ____fput+0x15/0x20 fs/file_table.c:244 task_work_run+0x199/0x270 kernel/task_work.c:113 exit_task_work include/linux/task_work.h:22 [inline] do_exit+0x9bb/0x1ae0 kernel/exit.c:869 do_group_exit+0x149/0x400 kernel/exit.c:972 SYSC_exit_group kernel/exit.c:983 [inline] SyS_exit_group+0x1d/0x20 kernel/exit.c:981 entry_SYSCALL_64_fastpath+0x1f/0x96 RIP: 0033:0x452a09 RSP: 002b:00007ffcaeec8428 EFLAGS: 00000206 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000452a09 RDX: 000000000000021e RSI: 0000000000720618 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 00007ffcaeec83d0 R13: 000000000071bea0 R14: 00000000000001f2 R15: 0000000000000002 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: ffff8801c5d475a0 ---[ end trace 0697a25ceebde3e1 ]---