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: 1773 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: ffff8801cfdb2100 RBX: 00000000001606e0 RCX: ffffffff8115d7c2 RDX: 0000000000010000 RSI: 0000000000000000 RDI: 00000000001606e0 RBP: ffff8801db507ed0 R08: 0000000000000007 R09: ffff8801cfdbf9b0 R10: 00000000e4d36624 R11: 000000003d4320f9 R12: 0000000000000006 R13: ffff8801cfdb2100 R14: ffff8801db51a130 R15: ffff8801db51a130 FS: 00007f3431b4b7a0(0000) GS:ffff8801db500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f3431b52000 CR3: 00000001cfd49006 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_save_flags arch/x86/include/asm/paravirt.h:772 [inline] RIP: 0010:arch_local_irq_save arch/x86/include/asm/paravirt.h:794 [inline] RIP: 0010:lock_is_held_type+0x6c/0x210 kernel/locking/lockdep.c:3948 RSP: 0018:ffff8801cfdbfbd0 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff04 RAX: dffffc0000000000 RBX: ffff8801cfdb2100 RCX: 0000000000000002 RDX: ffffffff85ec84e0 RSI: 00000000ffffffff RDI: ffffffff85ec84e0 RBP: ffff8801cfdbfbf0 R08: 0000000000000007 R09: ffff8801cfdbf9b0 R10: 00000000e4d36624 R11: 000000003d4320f9 R12: ffff8801c0664b80 R13: ffffffff85f41100 R14: ffffffff8193c16b R15: 00000000014000c0 lock_is_held include/linux/lockdep.h:344 [inline] rcu_read_lock_sched_held+0x108/0x120 kernel/rcu/update.c:117 trace_kmem_cache_alloc include/trace/events/kmem.h:54 [inline] kmem_cache_alloc+0x466/0x760 mm/slab.c:3542 getname_flags+0xcb/0x580 fs/namei.c:138 getname fs/namei.c:209 [inline] SYSC_renameat2 fs/namei.c:4536 [inline] SyS_renameat2 fs/namei.c:4500 [inline] SYSC_rename fs/namei.c:4651 [inline] SyS_rename+0x157/0x7f0 fs/namei.c:4649 entry_SYSCALL_64_fastpath+0x23/0x9a RIP: 0033:0x7f34311d8527 RSP: 002b:00007ffe08f30558 EFLAGS: 00000202 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 0000000000000008 RCX: 00007f34311d8527 RDX: 0000000000000000 RSI: 00007ffe08f309a0 RDI: 00007ffe08f305a0 RBP: 0000000001e53b30 R08: 00000000004207f1 R09: 00007f34312a8e00 R10: 0000000000000022 R11: 0000000000000202 R12: 00007ffe08f30599 R13: 0000000000000008 R14: 0000000000000008 R15: 00007ffe08f30598 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 03fa9c807188cf50 ]---