syzbot


WARNING in kvm_recalculate_apic_map

Status: upstream: reported C repro on 2024/07/08 13:46
Subsystems: kvm
[Documentation on labels]
Reported-by: syzbot+545f1326f405db4e1c3e@syzkaller.appspotmail.com
First crash: 508d, last: 3d02h
Cause bisection: introduced by (bisect log) :
commit 76e527509d37a15ff1714ddd003384f5f25fd3fc
Author: Sean Christopherson <seanjc@google.com>
Date: Fri Jan 6 01:12:52 2023 +0000

  KVM: x86: Skip redundant x2APIC logical mode optimized cluster setup

Crash: WARNING in kvm_recalculate_apic_map (log)
Repro: C syz .config
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [kvm?] WARNING in kvm_recalculate_apic_map 1 (2) 2024/07/08 16:35
Last patch testing requests (10)
Created Duration User Patch Repo Result
2024/07/16 04:35 18m retest repro upstream report log
2024/06/20 18:09 1h04m retest repro linux-next report log
2024/06/04 05:19 22m retest repro upstream report log
2024/06/04 05:19 1h50m retest repro upstream report log
2024/05/21 04:32 24m retest repro upstream report log
2024/05/07 04:14 17m retest repro upstream report log
2024/04/08 22:20 19m retest repro linux-next report log
2024/03/21 16:04 26m retest repro upstream error
2024/02/22 04:46 16m retest repro upstream report log
2024/02/07 22:57 57m retest repro upstream report log
Fix bisection attempts (4)
Created Duration User Patch Repo Result
2023/10/31 03:04 1h50m bisect fix upstream OK (0) job log log
2023/07/15 07:27 1h14m bisect fix upstream OK (0) job log log
2023/04/29 22:59 25m bisect fix upstream OK (0) job log log
2023/03/30 13:09 26m bisect fix upstream OK (0) job log log

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 5014 at arch/x86/kvm/lapic.c:341 kvm_recalculate_apic_map+0xc97/0x15b0 arch/x86/kvm/lapic.c:424
Modules linked in:
CPU: 0 PID: 5014 Comm: syz-executor181 Not tainted 6.5.0-rc6-syzkaller-00036-g4853c74bd7ab #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
RIP: 0010:kvm_recalculate_logical_map arch/x86/kvm/lapic.c:341 [inline]
RIP: 0010:kvm_recalculate_apic_map+0xc97/0x15b0 arch/x86/kvm/lapic.c:424
Code: 54 74 00 83 fb 01 7e 29 83 fb 02 74 5d 83 fb 03 74 6e 83 fb 04 0f 85 be 00 00 00 e8 d3 4f 74 00 e9 bb 00 00 00 e8 c9 4f 74 00 <0f> 0b e9 fd fe ff ff 85 db 0f 84 96 00 00 00 83 fb 01 0f 85 97 00
RSP: 0018:ffffc90003aaf400 EFLAGS: 00010293
RAX: ffffffff81176867 RBX: 0000000000000001 RCX: ffff8880277e8000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000082000
RBP: ffffc90003aaf548 R08: ffffffff8117675d R09: 1ffffffff1d30ead
R10: dffffc0000000000 R11: fffffbfff1d30eae R12: ffffc900015c6e58
R13: ffff88801fb2e090 R14: 0000000000082000 R15: ffff888076ea8024
FS:  0000555556776380(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000002004d008 CR3: 00000000283c0000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 kvm_apic_set_state+0x519/0x1700 arch/x86/kvm/lapic.c:2971
 kvm_vcpu_ioctl_set_lapic+0x20/0x180 arch/x86/kvm/x86.c:4944
 kvm_arch_vcpu_ioctl+0x1389/0x2a30 arch/x86/kvm/x86.c:5682
 kvm_vcpu_ioctl+0x6df/0xd00 arch/x86/kvm/../../../virt/kvm/kvm_main.c:4280
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl+0xf8/0x170 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3b14249439
Code: 48 83 c4 28 c3 e8 37 17 00 00 0f 1f 80 00 00 00 00 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:00007ffe1b9bfab8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007ffe1b9bfc88 RCX: 00007f3b14249439
RDX: 0000000020000880 RSI: 000000004400ae8f RDI: 0000000000000005
RBP: 00007f3b142bc610 R08: 00007ffe1b9bfc88 R09: 00007ffe1b9bfc88
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffe1b9bfc78 R14: 0000000000000001 R15: 0000000000000001
 </TASK>

Crashes (23):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/17 03:19 upstream 4853c74bd7ab 7773e940 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in kvm_recalculate_apic_map
2023/02/27 13:30 upstream f3a2439f20d9 e792ae78 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in kvm_recalculate_apic_map
2023/02/27 06:09 upstream f3a2439f20d9 ee50e71c .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in kvm_recalculate_apic_map
2024/04/23 03:54 upstream a2c63a3f3d68 21339d7b .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in kvm_recalculate_apic_map
2023/06/08 23:33 linux-next 715abedee4cd 7086cdb9 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_recalculate_apic_map
2023/06/03 05:19 upstream 4ecd704a4c51 a4ae4f42 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in kvm_recalculate_apic_map
2023/06/03 04:59 upstream 4ecd704a4c51 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in kvm_recalculate_apic_map
2023/05/27 05:20 upstream a92c9ab69f66 cf184559 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in kvm_recalculate_apic_map
2023/05/27 05:14 upstream 0d85b27b0cc6 cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in kvm_recalculate_apic_map
2023/05/27 05:14 upstream 0d85b27b0cc6 cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in kvm_recalculate_apic_map
2023/05/24 08:56 upstream 27e462c8fad4 4bce1a3e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in kvm_recalculate_apic_map
2023/05/12 17:31 upstream cc3c44c9fda2 893599a2 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in kvm_recalculate_apic_map
2023/05/12 13:11 upstream cc3c44c9fda2 adb9a3cd .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in kvm_recalculate_apic_map
2023/05/11 12:31 upstream 80e62bc8487b 0fbd49f4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in kvm_recalculate_apic_map
2023/05/11 06:58 upstream ad2fd53a7870 0fbd49f4 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in kvm_recalculate_apic_map
2023/05/11 03:19 upstream ad2fd53a7870 0fbd49f4 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in kvm_recalculate_apic_map
2023/05/11 03:11 upstream ad2fd53a7870 0fbd49f4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in kvm_recalculate_apic_map
2023/05/11 03:06 upstream ad2fd53a7870 0fbd49f4 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in kvm_recalculate_apic_map
2023/05/11 03:01 upstream ad2fd53a7870 0fbd49f4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in kvm_recalculate_apic_map
2023/02/28 07:49 upstream 982818426a0f 95aee97a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in kvm_recalculate_apic_map
2023/02/27 06:52 upstream f3a2439f20d9 ee50e71c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in kvm_recalculate_apic_map
2023/02/27 04:27 upstream f3a2439f20d9 ee50e71c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in kvm_recalculate_apic_map
2023/05/30 11:58 linux-next 715abedee4cd 8d5c7541 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_recalculate_apic_map
* Struck through repros no longer work on HEAD.