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: 3120 Comm: udevd Not tainted 4.15.0-rc3+ #223 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:ffff8801db407ca8 EFLAGS: 00010006 RAX: ffff8801cd40a340 RBX: 00000000001606f0 RCX: ffffffff811a2a92 RDX: 0000000000010000 RSI: 0000000000000000 RDI: 00000000001606f0 RBP: ffff8801db407ca8 R08: 0000000000000000 R09: 1ffff10039aa3ec9 R10: 0000000000000003 R11: 0000000000000000 R12: 0000000000000006 R13: ffff8801cd40a340 R14: ffff8801db414850 R15: ffff8801db414850 FS: 00007f22571987a0(0000) GS:ffff8801db400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f225719f000 CR3: 00000001cd079006 CR4: 00000000001626f0 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:7982 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+0x9d/0xb0 arch/x86/entry/entry_64.S:817 RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:777 [inline] RIP: 0010:lock_release+0x503/0xa40 kernel/locking/lockdep.c:3936 RSP: 0018:ffff8801cd51f600 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff04 RAX: dffffc0000000000 RBX: ffff8801cd40a340 RCX: 1ffff10039a81574 RDX: 1ffffffff0bd9055 RSI: 0000000000000001 RDI: 0000000000000282 RBP: ffff8801cd51f730 R08: 0000000000000000 R09: 1ffff10039aa3ec9 R10: 0000000000000003 R11: 0000000000000000 R12: 0000000000000000 R13: ffff8801cd40a340 R14: ffff8801cd51f648 R15: 1ffff10039aa3ec5 rcu_lock_release include/linux/rcupdate.h:249 [inline] rcu_read_unlock include/linux/rcupdate.h:687 [inline] avc_has_perm_noaudit security/selinux/avc.c:1118 [inline] avc_has_perm+0x387/0x680 security/selinux/avc.c:1144 inode_has_perm security/selinux/hooks.c:1771 [inline] file_path_has_perm security/selinux/hooks.c:1815 [inline] selinux_file_open+0x480/0x6c0 security/selinux/hooks.c:3773 security_file_open+0x7d/0x190 security/security.c:971 do_dentry_open+0x306/0xd40 fs/open.c:741 vfs_open+0x107/0x220 fs/open.c:866 do_last fs/namei.c:3379 [inline] path_openat+0x1151/0x3530 fs/namei.c:3519 do_filp_open+0x25b/0x3b0 fs/namei.c:3554 do_sys_open+0x502/0x6d0 fs/open.c:1059 SYSC_open fs/open.c:1077 [inline] SyS_open+0x2d/0x40 fs/open.c:1072 entry_SYSCALL_64_fastpath+0x1f/0x96 RIP: 0033:0x7f22568a0120 RSP: 002b:00007ffc412cdd58 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 0000000000a2a260 RCX: 00007f22568a0120 RDX: 00000000000001b6 RSI: 0000000000080000 RDI: 00007ffc412cde30 RBP: 00000000009f8030 R08: 0000000000000008 R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 0000000000a2a400 R14: 0000000000a41870 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: ffff8801db407ca8 ---[ end trace e174c08fbc19c0f3 ]---