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: 3122 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:ffff8801db507ca8 EFLAGS: 00010006 RAX: ffff8801cde2e640 RBX: 00000000001606e0 RCX: ffffffff811a2a92 RDX: 0000000000010000 RSI: 0000000000000000 RDI: 00000000001606e0 RBP: ffff8801db507ca8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000006 R13: ffff8801cde2e640 R14: ffff8801db514850 R15: ffff8801db514850 FS: 00007fc0feb717a0(0000) GS:ffff8801db500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc0feb77000 CR3: 00000001cfb84006 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: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:qlink_free mm/kasan/quarantine.c:150 [inline] RIP: 0010:qlist_free_all+0xa9/0x160 mm/kasan/quarantine.c:166 RSP: 0018:ffff8801cdda7ba8 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff04 RAX: 0000000000000007 RBX: 0000000000000282 RCX: 0000000000000006 RDX: 0000000000000000 RSI: ffff8801cde2eeb0 RDI: 0000000000000282 RBP: ffff8801cdda7be0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: ffff8801db21a780 R14: ffff8801c7770c40 R15: ffffffff85ec82a0 quarantine_reduce+0x141/0x170 mm/kasan/quarantine.c:259 kasan_kmalloc+0xca/0xe0 mm/kasan/kasan.c:536 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:489 slab_post_alloc_hook mm/slab.h:442 [inline] slab_alloc mm/slab.c:3382 [inline] kmem_cache_alloc+0x11b/0x760 mm/slab.c:3542 getname_flags+0xcb/0x580 fs/namei.c:138 user_path_at_empty+0x2d/0x50 fs/namei.c:2590 user_path_at include/linux/namei.h:57 [inline] vfs_statx+0xe9/0x190 fs/stat.c:185 vfs_stat include/linux/fs.h:3080 [inline] SYSC_newstat+0x87/0xf0 fs/stat.c:337 SyS_newstat+0x1d/0x30 fs/stat.c:333 entry_SYSCALL_64_fastpath+0x1f/0x96 RIP: 0033:0x7fc0fe278c65 RSP: 002b:00007ffde01c4ac8 EFLAGS: 00000246 ORIG_RAX: 0000000000000004 RAX: ffffffffffffffda RBX: 00000000009fe980 RCX: 00007fc0fe278c65 RDX: 00007ffde01c4ae0 RSI: 00007ffde01c4ae0 RDI: 00007ffde01c4f70 RBP: 0000000000000000 R08: 000000000041f4f1 R09: 00007fc0fe2cf7d0 R10: 7665642f7379732f R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000009fe980 R14: 0000000000000006 R15: 0000000000000ae8 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 72d76a6ccd31e6e3 ]---