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: 0 PID: 3178 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:ffff8801c456f058 EFLAGS: 00010093 RAX: ffff8801c4d86580 RBX: 00000000001606f0 RCX: ffffffff811a2d22 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000001606f0 RBP: ffff8801c456f058 R08: ffff8801c456ec08 R09: ffff8801c4d86580 R10: ffff8801c456efc8 R11: ffffed00388add83 R12: 0000000000000093 R13: ffff8801c4d86580 R14: ffff8801db21a130 R15: ffff8801db21a130 FS: 00007f54d2e9b700(0000) GS:ffff8801db200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 0000000006225005 CR4: 00000000001626f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 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 get_signal+0x73f/0x16c0 kernel/signal.c:2337 do_signal+0x94/0x1ee0 arch/x86/kernel/signal.c:809 exit_to_usermode_loop+0x258/0x2f0 arch/x86/entry/common.c:161 prepare_exit_to_usermode arch/x86/entry/common.c:195 [inline] syscall_return_slowpath+0x490/0x550 arch/x86/entry/common.c:264 entry_SYSCALL_64_fastpath+0x94/0x96 RIP: 0033:0x452a09 RSP: 002b:00007f54d2e9ace8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 000000000071c038 RCX: 0000000000452a09 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000000000071c038 RBP: 000000000071c038 R08: 0000000000000000 R09: 000000000071c010 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffdb81ca5cf R14: 00007f54d2e9b9c0 R15: 000000000000000e 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: ffff8801c456f058 ---[ end trace 97449c94c8d91d46 ]---