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: 1606 Comm: udevd Not tainted 4.15.0-rc4+ #234 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:ffff8801db507ca8 EFLAGS: 00010006 RAX: ffff8801d0508440 RBX: 00000000001606e0 RCX: ffffffff811a2e02 RDX: 0000000000010000 RSI: 0000000000000000 RDI: 00000000001606e0 RBP: ffff8801db507ca8 R08: 000000000000000a R09: ffffea00072b1140 R10: 0000000000000002 R11: ffffed0039588a0a R12: 0000000000000006 R13: ffff8801d0508440 R14: ffff8801db515850 R15: ffff8801db515850 FS: 00007f906d3757a0(0000) GS:ffff8801db500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f906d37c000 CR3: 00000001d0461003 CR4: 00000000001626e0 Call Trace: __write_cr4 arch/x86/include/asm/paravirt.h:76 [inline] __cr4_set arch/x86/include/asm/tlbflush.h:180 [inline] cr4_clear_bits arch/x86/include/asm/tlbflush.h:203 [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 flush_smp_call_function_queue+0x1f4/0x570 kernel/smp.c:243 generic_smp_call_function_single_interrupt+0x13/0x30 kernel/smp.c:192 smp_call_function_single_interrupt+0x103/0x640 arch/x86/kernel/smp.c:295 call_function_single_interrupt+0xa9/0xb0 arch/x86/entry/entry_64.S:926 RIP: 0010:lock_is_held_type+0x198/0x210 kernel/locking/lockdep.c:3957 RSP: 0018:ffff8801d0517968 EFLAGS: 00000296 ORIG_RAX: ffffffffffffff04 RAX: 0000000000000000 RBX: 1ffff1003a0a2f31 RCX: ffffffff81891546 RDX: 1ffffffff0bd9045 RSI: ffffffff85f406e0 RDI: 0000000000000282 RBP: ffff8801d0517978 R08: 000000000000000a R09: ffffea00072b1140 R10: 0000000000000002 R11: ffffed0039588a0a R12: ffff8801d0508440 R13: 0000000000000000 R14: 0000000000000c54 R15: 000000000000000a lock_is_held include/linux/lockdep.h:344 [inline] ___might_sleep+0x3d8/0x470 kernel/sched/core.c:6025 generic_perform_write+0x3c9/0x600 mm/filemap.c:3156 __generic_file_write_iter+0x366/0x5b0 mm/filemap.c:3264 generic_file_write_iter+0x399/0x790 mm/filemap.c:3292 call_write_iter include/linux/fs.h:1772 [inline] new_sync_write fs/read_write.c:469 [inline] __vfs_write+0x684/0x970 fs/read_write.c:482 vfs_write+0x189/0x510 fs/read_write.c:544 SYSC_write fs/read_write.c:589 [inline] SyS_write+0xef/0x220 fs/read_write.c:581 entry_SYSCALL_64_fastpath+0x1f/0x96 RIP: 0033:0x7f906ca7d370 RSP: 002b:00007ffeb175d448 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00000000015cbc50 RCX: 00007f906ca7d370 RDX: 000000000000000a RSI: 00007f906d37c000 RDI: 0000000000000005 RBP: 0000000000000001 R08: 00007f906d3757a0 R09: 00000000ffffffff R10: 0000000000000040 R11: 0000000000000246 R12: 0000000000000000 R13: 00000000000005d6 R14: 0000000000000000 R15: 000000000000000a 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: ffff8801db507ca8 ---[ end trace d5801ef5c5698912 ]---