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: 3444 Comm: udevd Not tainted 4.15.0-rc6-mm1+ #50 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:ffff8801db507ed0 EFLAGS: 00010006 RAX: ffff8801c209a040 RBX: 00000000001606e0 RCX: ffffffff8115d7c2 RDX: 0000000000010000 RSI: 0000000000000000 RDI: 00000000001606e0 RBP: ffff8801db507ed0 R08: ffffffff8196e836 R09: 0000000000000004 R10: ffff8801c206fd28 R11: 0000000000000001 R12: 0000000000000006 R13: ffff8801c209a040 R14: ffff8801db51a130 R15: ffff8801db51a130 FS: 00007fb5aba257a0(0000) GS:ffff8801db500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb5aba2c000 CR3: 00000001c2030002 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 flush_smp_call_function_queue+0x165/0x420 kernel/smp.c:243 generic_smp_call_function_single_interrupt+0x13/0x30 kernel/smp.c:192 smp_call_function_single_interrupt+0x83/0x450 arch/x86/kernel/smp.c:295 call_function_single_interrupt+0xa9/0xb0 arch/x86/entry/entry_64.S:942 RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:777 [inline] RIP: 0010:lock_is_held_type+0x18b/0x210 kernel/locking/lockdep.c:3954 RSP: 0018:ffff8801c206fc98 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff04 RAX: dffffc0000000000 RBX: 0000000000000282 RCX: ffffffff8196cd65 RDX: 1ffffffff0bd909d RSI: ffff8801c2d39918 RDI: 0000000000000282 RBP: ffff8801c206fcb8 R08: ffffffff8196e836 R09: 0000000000000004 R10: ffff8801c206fd28 R11: 0000000000000001 R12: ffff8801c209a040 R13: 0000000000000001 R14: ffff8801c2d39898 R15: 0000000000000000 lock_is_held include/linux/lockdep.h:344 [inline] expand_files+0x3f6/0x6c0 fs/file.c:201 __alloc_fd+0x8d/0x510 fs/file.c:504 get_unused_fd_flags+0x9e/0xd0 fs/file.c:544 do_sys_open+0x233/0x4b0 fs/open.c:1057 SYSC_open fs/open.c:1077 [inline] SyS_open+0x2d/0x40 fs/open.c:1072 entry_SYSCALL_64_fastpath+0x23/0x9a RIP: 0033:0x7fb5ab12d120 RSP: 002b:00007ffd4ba99898 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007ffd4ba99510 RCX: 00007fb5ab12d120 RDX: 00000000000001b6 RSI: 0000000000080241 RDI: 00007ffd4ba99d80 RBP: 00000000017a6f40 R08: 0000000000000004 R09: 0000000000000001 R10: 0000000000000001 R11: 0000000000000246 R12: 0000000001742030 R13: 0000000000000000 R14: 00007ffd4ba99980 R15: 0000000000000001 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: ffff8801db507ed0 ---[ end trace 84a6b791fb29b9fc ]---