syzbot


WARNING in vcpu_enter_guest (2)

Status: upstream: reported C repro on 2022/10/26 02:08
Reported-by: syzbot+dbef12497aa912c8e7ba@syzkaller.appspotmail.com
Fix commit: dea0d5a2fde6 KVM: x86: Exempt pending triple fault from event injection sanity check
Patched on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-gce-leak ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce ci-upstream-kmsan-gce-386 ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-usb], missing on: [ci-qemu2-riscv64]
First crash: 102d, last: 93d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in vcpu_enter_guest syz done 19 1050d 1164d 17/24 fixed on 2020/05/10 10:41

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.
kvm: KVM_SET_TSS_ADDR need to be called before entering vcpu
------------[ cut here ]------------
WARNING: CPU: 0 PID: 3611 at arch/x86/kvm/x86.c:10047 kvm_check_and_inject_events arch/x86/kvm/x86.c:10047 [inline]
WARNING: CPU: 0 PID: 3611 at arch/x86/kvm/x86.c:10047 vcpu_enter_guest+0x92c/0x5a10 arch/x86/kvm/x86.c:10649
Modules linked in:
CPU: 0 PID: 3611 Comm: syz-executor332 Not tainted 6.1.0-rc2-syzkaller-00078-g98555239e4c3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022
RIP: 0010:kvm_check_and_inject_events arch/x86/kvm/x86.c:10047 [inline]
RIP: 0010:vcpu_enter_guest+0x92c/0x5a10 arch/x86/kvm/x86.c:10649
Code: c0 74 06 0f 8e d2 4f 00 00 45 0f b6 b4 24 e8 08 00 00 31 ff 44 89 f6 e8 72 db 6a 00 45 84 f6 0f 84 d4 41 00 00 e8 d4 de 6a 00 <0f> 0b e9 1e 11 00 00 e8 c8 de 6a 00 be 08 00 00 00 4c 89 ff e8 4b
RSP: 0018:ffffc90003c2fb60 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff888020a18000 RSI: ffffffff8111bdac RDI: 0000000000000001
RBP: ffffc90003c2fc80 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 000000000008c07e R12: ffff88801d78c000
R13: 0000000000000000 R14: 0000000000000001 R15: ffff88801d78c038
FS:  0000555555616300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000056393be9d068 CR3: 0000000079c45000 CR4: 00000000003526e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 vcpu_run arch/x86/kvm/x86.c:10951 [inline]
 kvm_arch_vcpu_ioctl_run+0xa5e/0x2b30 arch/x86/kvm/x86.c:11172
 kvm_vcpu_ioctl+0x570/0xfc0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:4065
 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+0x193/0x200 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f9e964a4289
Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc22de45d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f9e964a4289
RDX: 0000000000000000 RSI: 000000000000ae80 RDI: 0000000000000005
RBP: 00007f9e96467ce0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f9e96467d70
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>

Crashes (42):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-kasan-gce 2022/10/27 20:34 upstream 98555239e4c3 86777b7f .config strace log report syz C [disk image] [vmlinux] [kernel image] WARNING in vcpu_enter_guest
ci-upstream-kasan-gce 2022/10/26 00:38 upstream 4dc12f37a8e9 1984aebd .config strace log report syz C [disk image] [vmlinux] [kernel image] WARNING in vcpu_enter_guest
ci-upstream-kasan-gce 2022/11/03 15:35 upstream b229b6ca5abb 7a2ebf95 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in vcpu_enter_guest
ci-upstream-kasan-gce 2022/11/03 12:42 upstream b229b6ca5abb 7a2ebf95 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in vcpu_enter_guest
ci-upstream-kasan-gce-selinux-root 2022/11/03 01:44 upstream b229b6ca5abb 08977f5d .config console log report info [disk image] [vmlinux] [kernel image] WARNING in vcpu_enter_guest
ci-qemu-upstream 2022/11/02 07:20 upstream 200204f56f3b 08977f5d .config console log report info WARNING in vcpu_enter_guest
ci-qemu-upstream 2022/11/02 06:13 upstream 200204f56f3b 08977f5d .config console log report info WARNING in vcpu_enter_guest
ci-upstream-kasan-gce 2022/11/02 06:04 upstream b229b6ca5abb edac4fd1 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in vcpu_enter_guest
ci-qemu-upstream 2022/11/02 05:42 upstream 200204f56f3b 08977f5d .config console log report info WARNING in vcpu_enter_guest
ci-upstream-kasan-gce-smack-root 2022/11/02 05:42 upstream b229b6ca5abb edac4fd1 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in vcpu_enter_guest
ci-upstream-kasan-gce-selinux-root 2022/10/31 23:03 upstream b229b6ca5abb 2a71366b .config console log report info [disk image] [vmlinux] [kernel image] WARNING in vcpu_enter_guest
ci-upstream-kasan-gce 2022/10/31 22:54 upstream b229b6ca5abb 2a71366b .config console log report info [disk image] [vmlinux] [kernel image] WARNING in vcpu_enter_guest
ci-upstream-kasan-gce-smack-root 2022/10/31 22:49 upstream b229b6ca5abb 2a71366b .config console log report info [disk image] [vmlinux] [kernel image] WARNING in vcpu_enter_guest
ci-upstream-kasan-gce 2022/10/31 22:44 upstream b229b6ca5abb 2a71366b .config console log report info [disk image] [vmlinux] [kernel image] WARNING in vcpu_enter_guest
ci-upstream-kasan-gce 2022/10/31 08:13 upstream b229b6ca5abb 2a71366b .config console log report info [disk image] [vmlinux] [kernel image] WARNING in vcpu_enter_guest
ci-upstream-kasan-gce 2022/10/31 04:55 upstream b229b6ca5abb 2a71366b .config console log report info [disk image] [vmlinux] [kernel image] WARNING in vcpu_enter_guest
ci-upstream-kasan-gce 2022/10/29 04:27 upstream b229b6ca5abb ea12ae9b .config console log report info [disk image] [vmlinux] [kernel image] WARNING in vcpu_enter_guest
ci-upstream-kasan-gce 2022/10/29 02:12 upstream b229b6ca5abb ea12ae9b .config console log report info [disk image] [vmlinux] [kernel image] WARNING in vcpu_enter_guest
ci-upstream-kasan-gce 2022/10/28 20:56 upstream b229b6ca5abb ea12ae9b .config console log report info [disk image] [vmlinux] [kernel image] WARNING in vcpu_enter_guest
ci-upstream-kasan-gce 2022/10/28 01:54 upstream b229b6ca5abb 86777b7f .config console log report info [disk image] [vmlinux] [kernel image] WARNING in vcpu_enter_guest
ci-upstream-kasan-gce-selinux-root 2022/10/28 00:59 upstream b229b6ca5abb 86777b7f .config console log report info [disk image] [vmlinux] [kernel image] WARNING in vcpu_enter_guest
ci-upstream-kasan-gce-smack-root 2022/10/27 20:58 upstream 98555239e4c3 86777b7f .config console log report info [disk image] [vmlinux] [kernel image] WARNING in vcpu_enter_guest
ci-upstream-kasan-gce-smack-root 2022/10/27 20:50 upstream 98555239e4c3 86777b7f .config console log report info [disk image] [vmlinux] [kernel image] WARNING in vcpu_enter_guest
ci-upstream-kasan-gce-smack-root 2022/10/27 20:49 upstream 98555239e4c3 86777b7f .config console log report info [disk image] [vmlinux] [kernel image] WARNING in vcpu_enter_guest
ci-upstream-kasan-gce-smack-root 2022/10/27 20:39 upstream 98555239e4c3 86777b7f .config console log report info [disk image] [vmlinux] [kernel image] WARNING in vcpu_enter_guest
ci-upstream-kasan-gce 2022/10/27 20:32 upstream 98555239e4c3 86777b7f .config console log report info [disk image] [vmlinux] [kernel image] WARNING in vcpu_enter_guest
ci-upstream-kasan-gce 2022/10/27 20:01 upstream 98555239e4c3 86777b7f .config console log report info [disk image] [vmlinux] [kernel image] WARNING in vcpu_enter_guest
ci-upstream-kasan-gce-smack-root 2022/10/27 19:56 upstream 98555239e4c3 86777b7f .config console log report info [disk image] [vmlinux] [kernel image] WARNING in vcpu_enter_guest
ci-upstream-kasan-gce-selinux-root 2022/10/27 19:48 upstream 98555239e4c3 86777b7f .config console log report info [disk image] [vmlinux] [kernel image] WARNING in vcpu_enter_guest
ci-upstream-kasan-gce-smack-root 2022/10/27 19:47 upstream 98555239e4c3 86777b7f .config console log report info [disk image] [vmlinux] [kernel image] WARNING in vcpu_enter_guest
ci-upstream-kasan-gce 2022/10/27 19:28 upstream 98555239e4c3 86777b7f .config console log report info [disk image] [vmlinux] [kernel image] WARNING in vcpu_enter_guest
ci-upstream-kasan-gce-smack-root 2022/10/26 04:51 upstream 4dc12f37a8e9 1984aebd .config console log report info [disk image] [vmlinux] [kernel image] WARNING in vcpu_enter_guest
ci-upstream-kasan-gce-selinux-root 2022/10/26 03:59 upstream 1a2dcbdde82e 1984aebd .config console log report info [disk image] [vmlinux] [kernel image] WARNING in vcpu_enter_guest
ci-upstream-kasan-gce 2022/10/26 00:22 upstream 4dc12f37a8e9 1984aebd .config console log report info [disk image] [vmlinux] [kernel image] WARNING in vcpu_enter_guest
ci-upstream-linux-next-kasan-gce-root 2022/10/30 06:19 linux-next 4d48f589d294 2a71366b .config console log report info [disk image] [vmlinux] WARNING in vcpu_enter_guest
ci-upstream-linux-next-kasan-gce-root 2022/10/27 20:51 linux-next 4d48f589d294 86777b7f .config console log report info [disk image] [vmlinux] WARNING in vcpu_enter_guest
ci-upstream-linux-next-kasan-gce-root 2022/10/27 20:40 linux-next 4d48f589d294 86777b7f .config console log report info [disk image] [vmlinux] WARNING in vcpu_enter_guest
ci-upstream-linux-next-kasan-gce-root 2022/10/27 20:22 linux-next 4d48f589d294 86777b7f .config console log report info [disk image] [vmlinux] WARNING in vcpu_enter_guest
ci-upstream-linux-next-kasan-gce-root 2022/10/27 20:14 linux-next 4d48f589d294 86777b7f .config console log report info [disk image] [vmlinux] WARNING in vcpu_enter_guest
ci-upstream-linux-next-kasan-gce-root 2022/10/27 19:49 linux-next 4d48f589d294 86777b7f .config console log report info [disk image] [vmlinux] WARNING in vcpu_enter_guest
ci-upstream-linux-next-kasan-gce-root 2022/10/27 19:49 linux-next 4d48f589d294 86777b7f .config console log report info [disk image] [vmlinux] WARNING in vcpu_enter_guest
ci-upstream-linux-next-kasan-gce-root 2022/10/26 06:14 linux-next 4d48f589d294 1984aebd .config console log report info [disk image] [vmlinux] WARNING in vcpu_enter_guest
* Struck through repros no longer work on HEAD.