kvm_intel: set kvm_intel.dump_invalid_vmcs=1 to dump internal KVM state. ------------[ cut here ]------------ WARNING: CPU: 1 PID: 14607 at arch/x86/kvm/emulate.c:1648 __load_segment_descriptor+0xf89/0x1200 arch/x86/kvm/emulate.c:1648 Modules linked in: CPU: 1 PID: 14607 Comm: syz-executor.0 Not tainted 6.4.0-syzkaller-12415-g8fc3b8f082cc #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014 RIP: 0010:__load_segment_descriptor+0xf89/0x1200 arch/x86/kvm/emulate.c:1648 Code: 70 00 44 0f b6 7c 24 37 0f b6 7c 24 30 44 89 fe e8 0c 18 70 00 44 38 7c 24 30 0f 84 96 fb ff ff e9 06 f9 ff ff e8 97 1c 70 00 <0f> 0b 44 0f b6 7c 24 20 e9 43 f2 ff ff e8 85 1c 70 00 44 0f b6 7c RSP: 0018:ffffc9000424f898 EFLAGS: 00010216 RAX: 0000000000001e64 RBX: 0000000000000001 RCX: ffffc90003ec1000 RDX: 0000000000040000 RSI: ffffffff8113e3b9 RDI: 0000000000000005 RBP: ffff88801dea6140 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000050 R13: 0000000000000050 R14: ffff88801dea6170 R15: 0000000000000000 FS: 00007f161b705700(0000) GS:ffff88806b700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020032008 CR3: 000000001d907000 CR4: 0000000000352ee0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: load_segment_descriptor arch/x86/kvm/emulate.c:1775 [inline] __emulate_int_real+0x561/0x6f0 arch/x86/kvm/emulate.c:2061 emulate_int_real+0x7d/0xd0 arch/x86/kvm/emulate.c:2075 kvm_inject_realmode_interrupt+0x102/0x340 arch/x86/kvm/x86.c:8435 vmx_inject_exception+0x33b/0x470 arch/x86/kvm/vmx/vmx.c:1793 kvm_check_and_inject_events arch/x86/kvm/x86.c:10082 [inline] vcpu_enter_guest+0x386/0x6020 arch/x86/kvm/x86.c:10646 vcpu_run arch/x86/kvm/x86.c:10951 [inline] kvm_arch_vcpu_ioctl_run+0xa35/0x2820 arch/x86/kvm/x86.c:11172 kvm_vcpu_ioctl+0x574/0xe90 arch/x86/kvm/../../../virt/kvm/kvm_main.c:4112 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl fs/ioctl.c:856 [inline] __x64_sys_ioctl+0x19d/0x210 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f161aa8c389 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f161b705168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f161ababf80 RCX: 00007f161aa8c389 RDX: 0000000000000000 RSI: 000000000000ae80 RDI: 0000000000000005 RBP: 00007f161aad7493 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe6c41189f R14: 00007f161b705300 R15: 0000000000022000