syzbot


WARNING in kvm_arch_vcpu_ioctl_run (4)

Status: fixed on 2023/06/08 14:41
Subsystems: kvm
[Documentation on labels]
Reported-by: syzbot+8accb43ddc6bd1f5713a@syzkaller.appspotmail.com
Fix commit: 0dc902267cb3 KVM: x86: Suppress pending MMIO write exits if emulator detects exception
First crash: 364d, last: 262d
Cause bisection: failed (error log, bisect log)
  
Discussions (2)
Title Replies (including bot) Last reply
[PATCH] KVM: x86: Suppress pending MMIO write exits if emulator detects exception 2 (2) 2023/03/27 14:13
[syzbot] [kvm?] WARNING in kvm_arch_vcpu_ioctl_run (4) 1 (2) 2023/03/16 19:36
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in kvm_arch_vcpu_ioctl_run (5) kvm C error 343 170d 258d 23/26 fixed on 2023/10/12 12:47
upstream WARNING in kvm_arch_vcpu_ioctl_run (2) kvm C 61018 2218d 2307d 4/26 fixed on 2018/03/13 09:44
upstream WARNING in kvm_arch_vcpu_ioctl_run C 20284 2344d 2409d 3/26 fixed on 2017/09/26 01:38
linux-4.14 WARNING in kvm_arch_vcpu_ioctl_run C inconclusive 71 529d 1706d 0/1 upstream: reported C repro on 2019/06/25 23:07
upstream WARNING in kvm_arch_vcpu_ioctl_run (3) kvm C done error 16157 367d 2160d 22/26 fixed on 2023/02/24 13:50
linux-4.19 WARNING in kvm_arch_vcpu_ioctl_run C error 116 439d 1714d 0/1 upstream: reported C repro on 2019/06/17 10:07
linux-5.15 WARNING in kvm_arch_vcpu_ioctl_run origin:lts-only C inconclusive 196 1d11h 323d 0/3 upstream: reported C repro on 2023/04/09 03:02
linux-6.1 WARNING in kvm_arch_vcpu_ioctl_run origin:lts-only C done 95 2d21h 339d 0/3 upstream: reported C repro on 2023/03/23 13:22

Sample crash report:
kvm_intel: KVM_SET_TSS_ADDR needs to be called before running vCPU
kvm_intel: set kvm_intel.dump_invalid_vmcs=1 to dump internal KVM state.
------------[ cut here ]------------
WARNING: CPU: 1 PID: 5078 at arch/x86/kvm/x86.c:11060 kvm_arch_vcpu_ioctl_run+0x21d0/0x2810 arch/x86/kvm/x86.c:11060
Modules linked in:
CPU: 1 PID: 5078 Comm: syz-executor819 Not tainted 6.3.0-rc4-syzkaller-00224-g00c7b5f4ddc5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
RIP: 0010:kvm_arch_vcpu_ioctl_run+0x21d0/0x2810 arch/x86/kvm/x86.c:11060
Code: 24 30 e8 63 50 bf 00 e9 92 df ff ff 4c 89 ff e8 56 50 bf 00 e9 75 e0 ff ff e8 cc 2f 6f 00 0f 0b e9 c3 e2 ff ff e8 c0 2f 6f 00 <0f> 0b e9 fb e2 ff ff e8 b4 2f 6f 00 be 08 00 00 00 65 48 8b 1c 25
RSP: 0018:ffffc9000349fcb8 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000
RDX: ffff88802b852280 RSI: ffffffff8112c8b0 RDI: 0000000000000005
RBP: ffff88801e2e8040 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
R13: ffffc9000338ac90 R14: ffff88807d0737c0 R15: ffff88801e2e832c
FS:  00005555568cb300(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000007a4ce000 CR4: 00000000003526e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 kvm_vcpu_ioctl+0x574/0xea0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:4099
 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+0x197/0x210 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f8b0f2d8279
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:00007ffe4722fc88 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f8b0f2d8279
RDX: 0000000000000000 RSI: 000000000000ae80 RDI: 0000000000000005
RBP: 00007f8b0f29bcd0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f8b0f29bd60
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>

Crashes (288):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/04/02 08:17 upstream 00c7b5f4ddc5 f325deb0 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in kvm_arch_vcpu_ioctl_run
2023/03/02 06:33 upstream ee3f96b16468 f8902b57 .config strace log report syz C ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2023/06/03 21:31 linux-next 715abedee4cd a4ae4f42 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_arch_vcpu_ioctl_run
2023/06/08 04:09 upstream a27648c74210 7086cdb9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2023/06/07 15:10 upstream a4d7d7011219 7086cdb9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in kvm_arch_vcpu_ioctl_run
2023/06/07 07:17 upstream a4d7d7011219 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2023/06/07 05:24 upstream a4d7d7011219 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2023/06/07 02:42 upstream a4d7d7011219 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2023/06/06 18:33 upstream a4d7d7011219 a4ae4f42 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in kvm_arch_vcpu_ioctl_run
2023/06/06 16:14 upstream a4d7d7011219 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in kvm_arch_vcpu_ioctl_run
2023/06/06 12:53 upstream f8dba31b0a82 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2023/06/06 06:39 upstream f8dba31b0a82 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2023/06/05 15:45 upstream 9561de3a55be a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2023/06/04 11:13 upstream e5282a7d8f6b a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2023/06/03 13:57 upstream 4ecd704a4c51 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2023/06/03 12:57 upstream 4ecd704a4c51 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2023/06/02 23:32 upstream 9e87b63ed37e a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2023/06/02 04:31 upstream 1874a42a7d74 a4ae4f42 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in kvm_arch_vcpu_ioctl_run
2023/06/01 13:08 upstream 929ed21dfdb6 babc4389 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in kvm_arch_vcpu_ioctl_run
2023/05/31 21:20 upstream 48b1320a674e e2a77acd .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2023/05/31 10:53 upstream afead42fdfca 09898419 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2023/05/31 04:59 upstream afead42fdfca 09898419 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2023/05/30 12:35 upstream 8b817fded42d 8d5c7541 .config console log report info ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2023/05/29 19:13 upstream ac2263b588df cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2023/05/29 17:35 upstream ac2263b588df cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2023/05/29 14:14 upstream ac2263b588df cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2023/05/29 10:51 upstream e338142b39cf cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in kvm_arch_vcpu_ioctl_run
2023/05/29 07:59 upstream 7877cb91f108 cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2023/05/29 05:12 upstream 7877cb91f108 cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2023/05/29 04:09 upstream 7877cb91f108 cf184559 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in kvm_arch_vcpu_ioctl_run
2023/05/29 00:55 upstream 7877cb91f108 cf184559 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in kvm_arch_vcpu_ioctl_run
2023/05/28 20:01 upstream 416839029e38 cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2023/05/28 17:32 upstream 416839029e38 cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2023/05/28 07:57 upstream 416839029e38 cf184559 .config console log report info ci-qemu-upstream WARNING in kvm_arch_vcpu_ioctl_run
2023/05/27 15:05 upstream 49572d536129 cf184559 .config console log report info ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2023/05/27 11:11 upstream a92c9ab69f66 cf184559 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in kvm_arch_vcpu_ioctl_run
2023/05/26 09:33 upstream 9db898594c54 b40ef614 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2023/05/25 17:36 upstream 933174ae28ba 0513b3e6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2023/05/25 03:59 upstream 9d646009f65d 4bce1a3e .config console log report info ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2023/05/25 02:47 upstream 9d646009f65d 4bce1a3e .config console log report info ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2023/05/24 22:30 upstream 9d646009f65d 4bce1a3e .config console log report info ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2023/05/24 11:56 upstream 27e462c8fad4 4bce1a3e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in kvm_arch_vcpu_ioctl_run
2023/05/23 16:19 upstream ae8373a5add4 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2023/05/23 05:54 upstream 421ca22e3138 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2023/05/23 04:23 upstream 421ca22e3138 4bce1a3e .config console log report info ci-qemu-upstream WARNING in kvm_arch_vcpu_ioctl_run
2023/05/22 21:31 upstream 44c026a73be8 4bce1a3e .config console log report info ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2023/05/22 07:26 upstream e2065b8c1b01 4bce1a3e .config console log report info ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2023/03/05 18:38 upstream b01fe98d34f3 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2023/06/06 20:40 upstream a4d7d7011219 a4ae4f42 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in kvm_arch_vcpu_ioctl_run
2023/06/01 05:09 upstream 929ed21dfdb6 babc4389 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in kvm_arch_vcpu_ioctl_run
2023/05/20 04:54 upstream cbd6ac3837cd 96689200 .config console log report info ci-upstream-kasan-gce-386 WARNING in kvm_arch_vcpu_ioctl_run
2023/06/02 13:27 linux-next 715abedee4cd a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_arch_vcpu_ioctl_run
2023/06/01 10:53 linux-next 715abedee4cd babc4389 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_arch_vcpu_ioctl_run
2023/05/28 10:10 linux-next 715abedee4cd cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_arch_vcpu_ioctl_run
2023/05/24 06:29 linux-next 715abedee4cd 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_arch_vcpu_ioctl_run
2023/05/23 10:52 linux-next 715abedee4cd 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_arch_vcpu_ioctl_run
* Struck through repros no longer work on HEAD.