syzbot


WARNING in vmx_queue_exception

Status: upstream: reported C repro on 2023/03/11 15:11
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+4d82a15086e9913d0e1a@syzkaller.appspotmail.com
First crash: 405d, last: 20d
Fix commit to backport (bisect log) :
tree: upstream
commit fc4fad79fc3d8841562e2a85808079da5b4835f6
Author: Sean Christopherson <seanjc@google.com>
Date: Tue Dec 28 23:24:36 2021 +0000

  KVM: VMX: Reject KVM_RUN if emulation is required with pending exception

  
Fix bisection: the issue occurs on the latest tested release (bisect log)
Crash: WARNING in vmx_queue_exception (log)
Repro: C syz .config
  
Bug presence (2)
Date Name Commit Repro Result
2023/05/19 linux-5.15.y (ToT) 9d6bde853685 C [report] WARNING in vmx_queue_exception
2023/05/19 upstream (ToT) 2d1bcbc6cd70 C Didn't crash
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in vmx_queue_exception kvm 8 783d 846d 20/26 fixed on 2022/03/08 16:11
upstream WARNING in vmx_queue_exception (2) kvm C 5 719d 718d 22/26 fixed on 2023/02/24 13:50
Fix bisection attempts (3)
Created Duration User Patch Repo Result
2023/08/18 22:11 8h33m fix candidate upstream job log (1)
2023/06/18 06:19 37m bisect fix linux-5.15.y job log (0) log
2023/05/01 03:23 41m bisect fix linux-5.15.y job log (0) log

Sample crash report:
L1TF CPU bug present and SMT on, data leak possible. See CVE-2018-3646 and https://www.kernel.org/doc/html/latest/admin-guide/hw-vuln/l1tf.html for details.
------------[ cut here ]------------
WARNING: CPU: 0 PID: 3499 at arch/x86/kvm/vmx/vmx.c:1708 vmx_queue_exception+0x2d2/0x480
Modules linked in:
CPU: 1 PID: 3499 Comm: syz-executor119 Not tainted 5.15.153-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:vmx_queue_exception+0x2d2/0x480 arch/x86/kvm/vmx/vmx.c:1708
Code: 9e 01 00 00 e8 0f 76 5d 00 eb 0c e8 08 76 5d 00 eb 05 e8 01 76 5d 00 48 83 c4 18 5b 41 5c 41 5d 41 5e 41 5f c3 e8 ee 75 5d 00 <0f> 0b e9 a2 fe ff ff 89 f9 80 e1 07 38 c1 0f 8c 55 fd ff ff e8 95
RSP: 0018:ffffc90002d17558 EFLAGS: 00010293
RAX: ffffffff8122c3c2 RBX: 0000000000000001 RCX: ffff888078c88000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90002d17c50 R08: ffffffff8122c25e R09: fffffbfff1bc72a6
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88801f2c8000
R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000080000800
FS:  0000555556f77380(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000008 CR3: 000000001cdc6000 CR4: 00000000003526e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 inject_pending_event arch/x86/kvm/x86.c:9142 [inline]
 vcpu_enter_guest+0x8f5/0x9850 arch/x86/kvm/x86.c:9866
 vcpu_run arch/x86/kvm/x86.c:10138 [inline]
 kvm_arch_vcpu_ioctl_run+0xa5e/0x1f80 arch/x86/kvm/x86.c:10375
 kvm_vcpu_ioctl+0x7f0/0xcf0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3893
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:874 [inline]
 __se_sys_ioctl+0xf1/0x160 fs/ioctl.c:860
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f27209b72b9
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:00007ffeb68e6b08 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007ffeb68e6cd8 RCX: 00007f27209b72b9
RDX: 0000000000000000 RSI: 000000000000ae80 RDI: 0000000000000005
RBP: 00007f2720a2a610 R08: 00007ffeb68e6cd8 R09: 00007ffeb68e6cd8
R10: 00007ffeb68e6cd8 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffeb68e6cc8 R14: 0000000000000001 R15: 0000000000000001
 </TASK>

Crashes (15):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/03/30 21:19 linux-5.15.y 9465fef4ae35 6baf5069 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in vmx_queue_exception
2023/10/08 21:05 linux-5.15.y 1edcec18cfb7 5e837c76 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in vmx_queue_exception
2023/03/31 22:03 linux-5.15.y c957cbb87315 f325deb0 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in vmx_queue_exception
2023/03/26 20:48 linux-5.15.y 115472395b0a fbf0499a .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in vmx_queue_exception
2023/03/12 23:12 linux-5.15.y bbf9f29bac04 5205ef30 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in vmx_queue_exception
2024/03/30 20:50 linux-5.15.y 9465fef4ae35 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in vmx_queue_exception
2024/03/30 20:50 linux-5.15.y 9465fef4ae35 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in vmx_queue_exception
2023/10/15 05:04 linux-5.15.y 02e21884dcf2 f757a323 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in vmx_queue_exception
2023/10/08 20:05 linux-5.15.y 1edcec18cfb7 5e837c76 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in vmx_queue_exception
2023/06/23 21:37 linux-5.15.y f67653019430 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in vmx_queue_exception
2023/06/18 23:16 linux-5.15.y 471e639e59d1 f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in vmx_queue_exception
2023/05/15 05:49 linux-5.15.y b0ece631f84a 2b9ba477 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in vmx_queue_exception
2023/03/14 13:25 linux-5.15.y 2ddbd0f967b3 0d5c4377 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in vmx_queue_exception
2023/03/12 21:09 linux-5.15.y bbf9f29bac04 5205ef30 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in vmx_queue_exception
2023/03/11 15:11 linux-5.15.y d214f240b0f6 5205ef30 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in vmx_queue_exception
* Struck through repros no longer work on HEAD.