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: 3138 Comm: syzkaller794902 Not tainted 4.15.0-rc5+ #237 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:ffff8801bde975a0 EFLAGS: 00010093 RAX: ffff8801ca00c700 RBX: 00000000001606e0 RCX: ffffffff811a2f12 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000001606e0 RBP: ffff8801bde975a0 R08: 1ffff10037bd2e0f R09: 0000000000000004 R10: ffff8801bde97510 R11: 0000000000000004 R12: 0000000000000093 R13: ffff8801ca00c700 R14: ffff8801db515850 R15: ffff8801db515850 FS: 0000000001ae3880(0000) GS:ffff8801db500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 0000000005e22002 CR4: 00000000001626e0 Call Trace: __write_cr4 arch/x86/include/asm/paravirt.h:76 [inline] __cr4_set arch/x86/include/asm/tlbflush.h:176 [inline] cr4_clear_bits arch/x86/include/asm/tlbflush.h:199 [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:8004 hardware_disable_nolock+0x30/0x40 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3310 on_each_cpu+0xca/0x1b0 kernel/smp.c:604 hardware_disable_all_nolock+0x3e/0x50 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3328 hardware_disable_all arch/x86/kvm/../../../virt/kvm/kvm_main.c:3334 [inline] kvm_destroy_vm arch/x86/kvm/../../../virt/kvm/kvm_main.c:742 [inline] kvm_put_kvm+0x956/0xdf0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:755 kvm_vm_release+0x42/0x50 arch/x86/kvm/../../../virt/kvm/kvm_main.c:766 __fput+0x327/0x7e0 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/0x1ad0 kernel/exit.c:865 do_group_exit+0x149/0x400 kernel/exit.c:968 SYSC_exit_group kernel/exit.c:979 [inline] SyS_exit_group+0x1d/0x20 kernel/exit.c:977 entry_SYSCALL_64_fastpath+0x1f/0x96 RIP: 0033:0x441c68 RSP: 002b:00007ffea96d2d88 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 0000000020fc4800 RCX: 0000000000441c68 RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 RBP: 0000000020fc4000 R08: 00000000000000e7 R09: ffffffffffffffd0 R10: 0000000000000012 R11: 0000000000000246 R12: 0000000020fc7e00 R13: 0000000020fc6e00 R14: 0000000020fc7a00 R15: 0000000020fc3000 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: ffff8801bde975a0 ---[ end trace 0f15bfb3288c7bab ]---