------------[ cut here ]------------ WARNING: CPU: 3 PID: 5470 at arch/x86/kvm/lapic.c:345 kvm_recalculate_logical_map arch/x86/kvm/lapic.c:345 [inline] WARNING: CPU: 3 PID: 5470 at arch/x86/kvm/lapic.c:345 kvm_recalculate_apic_map+0x1122/0x14a0 arch/x86/kvm/lapic.c:449 Modules linked in: CPU: 3 PID: 5470 Comm: syz-executor.0 Not tainted 6.9.0-rc7-syzkaller-gdccb07f2914c #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 RIP: 0010:kvm_recalculate_logical_map arch/x86/kvm/lapic.c:345 [inline] RIP: 0010:kvm_recalculate_apic_map+0x1122/0x14a0 arch/x86/kvm/lapic.c:449 Code: 1f 70 0e 01 e8 9f 9a 52 00 e9 4b f9 ff ff e8 f5 17 75 00 48 8b 04 24 40 0f b6 dd 4c 8d 70 18 e9 e9 fd ff ff e8 df 17 75 00 90 <0f> 0b 90 e9 f6 f7 ff ff e8 d1 17 75 00 90 0f 0b 90 e9 b0 fe ff ff RSP: 0018:ffffc90003b7f7d0 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000001 RCX: ffffffff8118ad08 RDX: ffff888023d5a440 RSI: ffffffff8118b511 RDI: 0000000000000004 RBP: 0000000000082000 R08: 0000000000000004 R09: 0000000000000001 R10: 0000000000082000 R11: 0000000000000002 R12: dffffc0000000000 R13: ffff88801e6b8000 R14: ffff88802adc0000 R15: ffff888018aff200 FS: 00007f5e6dff56c0(0000) GS:ffff88806b500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002004d008 CR3: 0000000011de4000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: kvm_apic_set_state+0x409/0xef0 arch/x86/kvm/lapic.c:3031 kvm_vcpu_ioctl_set_lapic arch/x86/kvm/x86.c:5147 [inline] kvm_arch_vcpu_ioctl+0x1a78/0x4310 arch/x86/kvm/x86.c:5909 kvm_vcpu_ioctl+0xa2c/0x1090 arch/x86/kvm/../../../virt/kvm/kvm_main.c:4619 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:904 [inline] __se_sys_ioctl fs/ioctl.c:890 [inline] __x64_sys_ioctl+0x193/0x220 fs/ioctl.c:890 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f5e6d27dea9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f5e6dff50c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f5e6d3abf80 RCX: 00007f5e6d27dea9 RDX: 0000000020000880 RSI: 000000004400ae8f RDI: 0000000000000005 RBP: 00007f5e6d2ca4a4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f5e6d3abf80 R15: 00007ffc39eca4c8