kvm: KVM_SET_TSS_ADDR need to be called before entering vcpu BUG: unable to handle kernel paging request at 000000005eb0532b IP: lock_acquire+0x183/0x580 kernel/locking/lockdep.c:4002 PGD 5e28067 P4D 5e28067 PUD 5e2a067 PMD 0 Oops: 0002 [#1] SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 1 PID: 3322 Comm: syz-executor0 Not tainted 4.15.0-rc1-mm1+ #29 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: 00000000138065e7 task.stack: 000000006f0e59d6 RIP: 0010:lock_acquire+0x183/0x580 kernel/locking/lockdep.c:4002 RSP: 0018:ffff8801c432e4d8 EFLAGS: 00010046 RAX: 0000000000000007 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff8801c460a340 RSI: 0000000000000000 RDI: ffff8801c460abc4 RBP: ffff8801c432e5d0 R08: 0000000000000001 R09: 0000000000000000 R10: 1ffff10038865ca1 R11: 0000000000000003 R12: 1ffff10038865ca1 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000001 FS: 00007f75e6d14700(0000) GS:ffff8801db500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: fffffffffffffff8 CR3: 00000001c601e000 CR4: 00000000001426e0 Call Trace: fs_reclaim_acquire.part.85+0x24/0x30 mm/page_alloc.c:3587 fs_reclaim_acquire mm/page_alloc.c:3586 [inline] prepare_alloc_pages mm/page_alloc.c:4191 [inline] __alloc_pages_nodemask+0x3c7/0xd80 mm/page_alloc.c:4235 alloc_pages_vma+0xc8/0x4b0 mm/mempolicy.c:2019 alloc_zeroed_user_highpage_movable include/linux/highmem.h:184 [inline] do_anonymous_page mm/memory.c:3117 [inline] handle_pte_fault mm/memory.c:3922 [inline] __handle_mm_fault+0x292d/0x3e60 mm/memory.c:4048 handle_mm_fault+0x38f/0x930 mm/memory.c:4085 faultin_page mm/gup.c:502 [inline] __get_user_pages+0x50c/0x15f0 mm/gup.c:699 __get_user_pages_locked mm/gup.c:870 [inline] get_user_pages+0x9a/0xc0 mm/gup.c:1092 get_user_page_nowait arch/x86/kvm/../../../virt/kvm/kvm_main.c:1325 [inline] hva_to_pfn_slow arch/x86/kvm/../../../virt/kvm/kvm_main.c:1386 [inline] hva_to_pfn arch/x86/kvm/../../../virt/kvm/kvm_main.c:1503 [inline] __gfn_to_pfn_memslot+0x3c2/0x10c0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:1559 try_async_pf+0x13b/0xc40 arch/x86/kvm/mmu.c:3801 tdp_page_fault+0x40a/0xa70 arch/x86/kvm/mmu.c:3897 kvm_mmu_page_fault+0x10d/0x2f0 arch/x86/kvm/mmu.c:4927 handle_ept_violation+0x198/0x550 arch/x86/kvm/vmx.c:6544 vmx_handle_exit+0x25d/0x1ce0 arch/x86/kvm/vmx.c:8893 vcpu_enter_guest arch/x86/kvm/x86.c:7084 [inline] vcpu_run arch/x86/kvm/x86.c:7146 [inline] kvm_arch_vcpu_ioctl_run+0x1cb4/0x5c60 arch/x86/kvm/x86.c:7314 kvm_vcpu_ioctl+0x64c/0x1010 arch/x86/kvm/../../../virt/kvm/kvm_main.c:2574 vfs_ioctl fs/ioctl.c:46 [inline] do_vfs_ioctl+0x1b1/0x1530 fs/ioctl.c:686 SYSC_ioctl fs/ioctl.c:701 [inline] SyS_ioctl+0x8f/0xc0 fs/ioctl.c:692 entry_SYSCALL_64_fastpath+0x1f/0x96 RIP: 0033:0x4529d9 RSP: 002b:00007f75e6d13c58 EFLAGS: 00000212 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000020f43000 RCX: 00000000004529d9 RDX: 0000000000000000 RSI: 000000000000ae80 RDI: 0000000000000016 RBP: 0000000020f43800 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000212 R12: 0000000000000017 R13: 0000000020f42000 R14: 00007f75e6d146d4 R15: 0000000000000000 Code: df 48 89 f9 48 c1 e9 03 0f b6 0c 01 48 89 f8 83 e0 07 83 c0 03 38 c8 7c 08 84 c9 0f 85 fe 02 00 00 c7 82 84 08 00 00 01 00 00 00 1f 44 00 00 65 8b 05 41 c8 aa 7e 89 c0 48 0f a3 05 47 61 08 RIP: lock_acquire+0x183/0x580 kernel/locking/lockdep.c:4002 RSP: ffff8801c432e4d8 CR2: fffffffffffffff8 ---[ end trace 11345218acb7163c ]---