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: 3125 Comm: udevd Not tainted 4.15.0-rc4-next-20171220+ #77 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:ffff8801db307ca8 EFLAGS: 00010006 RAX: ffff8801cda50300 RBX: 00000000001606e0 RCX: ffffffff811a4932 RDX: 0000000000010000 RSI: 0000000000000000 RDI: 00000000001606e0 RBP: ffff8801db307ca8 R08: 1ffff10039b48f14 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000006 R13: ffff8801cda50300 R14: ffff8801db31a130 R15: ffff8801db31a130 FS: 00007f4dd53bb7a0(0000) GS:ffff8801db300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f4dd53c2000 CR3: 00000001cdbf4005 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:3283 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:942 RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:777 [inline] RIP: 0010:kmem_cache_free+0x17c/0x2a0 mm/slab.c:3748 RSP: 0018:ffff8801cda47a30 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff04 RAX: 0000000000000007 RBX: ffff8801dae0b780 RCX: 0000000000000006 RDX: 0000000000000000 RSI: 1ffff10039b4a173 RDI: 0000000000000286 RBP: ffff8801cda47a50 R08: 1ffff10039b48f14 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff8801dad30500 R13: 0000000000000286 R14: ffffffff819fc81a R15: ffff8801dae0b798 anon_vma_chain_free mm/rmap.c:133 [inline] unlink_anon_vmas+0x5aa/0x9f0 mm/rmap.c:418 free_pgtables+0xe7/0x330 mm/memory.c:627 unmap_region+0x34a/0x4f0 mm/mmap.c:2523 do_munmap+0x726/0xdf0 mm/mmap.c:2737 vm_munmap+0x10b/0x180 mm/mmap.c:2756 SYSC_munmap mm/mmap.c:2766 [inline] SyS_munmap+0x25/0x30 mm/mmap.c:2763 entry_SYSCALL_64_fastpath+0x1f/0x96 RIP: 0033:0x7f4dd4acbd37 RSP: 002b:00007ffc55a458a8 EFLAGS: 00000206 ORIG_RAX: 000000000000000b RAX: ffffffffffffffda RBX: 000000000139bad0 RCX: 00007f4dd4acbd37 RDX: 0000000000000000 RSI: 0000000000001000 RDI: 00007f4dd53c2000 RBP: 0000000000000000 R08: 00007f4dd53bb7a0 R09: 0000000000000000 R10: 1999999999999999 R11: 0000000000000206 R12: 00000000ffffffff R13: 000000000139bad0 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: ffff8801db307ca8 ---[ end trace 6460df51a22b5974 ]---