------------[ cut here ]------------ WARNING: CPU: 0 PID: 5602 at arch/x86/kvm/lapic.c:355 kvm_recalculate_logical_map arch/x86/kvm/lapic.c:355 [inline] WARNING: CPU: 0 PID: 5602 at arch/x86/kvm/lapic.c:355 kvm_recalculate_apic_map+0x1122/0x14a0 arch/x86/kvm/lapic.c:459 Modules linked in: CPU: 0 UID: 0 PID: 5602 Comm: syz-executor.0 Not tainted 6.11.0-rc1-syzkaller-g94ede2a3e913 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 RIP: 0010:kvm_recalculate_logical_map arch/x86/kvm/lapic.c:355 [inline] RIP: 0010:kvm_recalculate_apic_map+0x1122/0x14a0 arch/x86/kvm/lapic.c:459 Code: 53 e2 0e 01 e8 9f cf 4e 00 e9 4b f9 ff ff e8 05 7e 71 00 48 8b 04 24 40 0f b6 dd 4c 8d 70 18 e9 e9 fd ff ff e8 ef 7d 71 00 90 <0f> 0b 90 e9 f6 f7 ff ff e8 e1 7d 71 00 90 0f 0b 90 e9 b0 fe ff ff RSP: 0018:ffffc9000326f750 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000001 RCX: ffffffff8118f538 RDX: ffff88802ef4bc00 RSI: ffffffff8118fd41 RDI: 0000000000000004 RBP: 0000000000082000 R08: 0000000000000004 R09: 0000000000000001 R10: 0000000000082000 R11: 0000000000000000 R12: dffffc0000000000 R13: ffff888055e56000 R14: ffff88802e348000 R15: ffff88807ac37e00 FS: 00007f7576df96c0(0000) GS:ffff8880b9200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002004d008 CR3: 000000002e17c000 CR4: 00000000003526f0 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:3036 kvm_vcpu_ioctl_set_lapic arch/x86/kvm/x86.c:5135 [inline] kvm_arch_vcpu_ioctl+0x1d71/0x49d0 arch/x86/kvm/x86.c:5909 kvm_vcpu_ioctl+0x9e7/0x1520 virt/kvm/kvm_main.c:4656 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl fs/ioctl.c:893 [inline] __x64_sys_ioctl+0x193/0x220 fs/ioctl.c:893 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f757727c8d9 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:00007f7576df90c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f757739bf80 RCX: 00007f757727c8d9 RDX: 0000000020000880 RSI: 000000004400ae8f RDI: 0000000000000005 RBP: 00007f75772d8ad0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f757739bf80 R15: 00007fff3bf75f18