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: 3508 Comm: syz-executor0 Not tainted 4.15.0-rc6-next-20180103+ #87 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:ffff8801c08d7860 EFLAGS: 00010093 RAX: ffff8801c05f6640 RBX: 00000000001606e0 RCX: ffffffff8115d7c2 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000001606e0 RBP: ffff8801c08d7860 R08: ffffffff8105f787 R09: 0000000000000004 R10: ffff8801c08d7878 R11: 0000000000000001 R12: 0000000000000093 R13: ffff8801c05f6640 R14: ffff8801db51a130 R15: ffff8801db51a130 FS: 00007fd39e40a700(0000) GS:ffff8801db500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 0000000005e22003 CR4: 00000000001626e0 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:3737 [inline] hardware_disable+0x34a/0x4b0 arch/x86/kvm/vmx.c:3743 kvm_arch_hardware_disable+0x35/0xd0 arch/x86/kvm/x86.c:8110 hardware_disable_nolock+0x30/0x40 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3284 on_each_cpu+0xca/0x1b0 kernel/smp.c:604 hardware_disable_all_nolock+0x3e/0x50 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3302 hardware_disable_all arch/x86/kvm/../../../virt/kvm/kvm_main.c:3308 [inline] kvm_destroy_vm arch/x86/kvm/../../../virt/kvm/kvm_main.c:737 [inline] kvm_put_kvm+0x69c/0xa70 arch/x86/kvm/../../../virt/kvm/kvm_main.c:750 kvm_vm_release+0x42/0x50 arch/x86/kvm/../../../virt/kvm/kvm_main.c:761 __fput+0x291/0x6e0 fs/file_table.c:209 ____fput+0x15/0x20 fs/file_table.c:243 task_work_run+0x122/0x1a0 kernel/task_work.c:113 exit_task_work include/linux/task_work.h:22 [inline] do_exit+0x7f4/0x2da0 kernel/exit.c:869 do_group_exit+0x108/0x320 kernel/exit.c:972 get_signal+0x5e9/0x1460 kernel/signal.c:2337 do_signal+0x7f/0x1980 arch/x86/kernel/signal.c:809 exit_to_usermode_loop+0x1aa/0x210 arch/x86/entry/common.c:161 prepare_exit_to_usermode arch/x86/entry/common.c:195 [inline] syscall_return_slowpath+0x383/0x430 arch/x86/entry/common.c:264 entry_SYSCALL_64_fastpath+0x98/0x9a RIP: 0033:0x452ac9 RSP: 002b:00007fd39e409ce8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 000000000071c038 RCX: 0000000000452ac9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000000000071c038 RBP: 000000000071c038 R08: 0000000000000000 R09: 000000000071c010 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff5e97a2df R14: 00007fd39e40a9c0 R15: 0000000000000008 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: ffff8801c08d7860 ---[ end trace 8b49702f4494f66c ]---