syzbot


WARNING in kvm_arch_vcpu_ioctl_run (3)

Status: upstream: reported C repro on 2018/03/28 07:13
Reported-by: syzbot+760a73552f47a8cd0fd9@syzkaller.appspotmail.com
Fix commit: ec6e4d863258 KVM: x86: Mark TSS busy during LTR emulation _after_ all fault checks
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: 1719d, last: 16h19m

Cause bisection: introduced by (bisect log) :
commit 706249c222f68471b6f8e9e8e9b77665c404b226
Author: Peter Zijlstra <peterz@infradead.org>
Date: Fri Jul 24 13:06:37 2015 +0000

  locking/static_keys: Rework update logic

Crash: BUG: unable to handle kernel NULL pointer dereference in kvm_apic_set_version (log)
Repro: syz .config

Fix bisection: failed (bisect log)
similar bugs (4):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in kvm_arch_vcpu_ioctl_run (2) C 61018 1773d 1861d 4/24 fixed on 2018/03/13 09:44
upstream WARNING in kvm_arch_vcpu_ioctl_run C 20284 1898d 1963d 3/24 fixed on 2017/09/26 01:38
linux-4.14 WARNING in kvm_arch_vcpu_ioctl_run C inconclusive 71 84d 1260d 0/1 upstream: reported C repro on 2019/06/25 23:07
linux-4.19 WARNING in kvm_arch_vcpu_ioctl_run C error 115 21d 1269d 0/1 upstream: reported C repro on 2019/06/17 10:07
Patch testing requests:
Created Duration User Patch Repo Result
2022/06/17 14:39 10m phind.uet@gmail.com linux-next report log
2020/09/15 17:51 10m brookebasile@gmail.com upstream report 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.
set kvm_intel.dump_invalid_vmcs=1 to dump internal KVM state.
------------[ cut here ]------------
WARNING: CPU: 1 PID: 3634 at arch/x86/kvm/x86.c:11171 kvm_arch_vcpu_ioctl_run+0xd39/0x12b0
Modules linked in:
CPU: 0 PID: 3634 Comm: syz-executor299 Not tainted 6.1.0-rc5-syzkaller-00307-gfe24a97cf254 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:kvm_arch_vcpu_ioctl_run+0xd39/0x12b0 arch/x86/kvm/x86.c:11171
Code: 7c 00 89 5c 24 10 85 db 7e 43 e8 82 28 7c 00 4c 8b 7c 24 38 e9 ae fa ff ff e8 73 28 7c 00 0f 0b e9 70 fa ff ff e8 67 28 7c 00 <0f> 0b e9 96 fa ff ff e8 5b 28 7c 00 e9 f8 fa ff ff e8 51 28 7c 00
RSP: 0018:ffffc90003c4fc98 EFLAGS: 00010293
RAX: ffffffff81106bb9 RBX: 0000000000000001 RCX: ffff888025ecba80
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff81106649 R09: fffffbfff20e8642
R10: fffffbfff20e8642 R11: 1ffffffff20e8641 R12: dffffc0000000000
R13: ffff888017e96000 R14: ffff888076a60000 R15: ffff888076a600d8
FS:  00005555574c3300(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 0000000073877000 CR4: 00000000003526e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 kvm_vcpu_ioctl+0x7ef/0xcf0 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+0xfb/0x170 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f651888e079
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:00007ffd15b60748 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 000000000000002e RCX: 00007f651888e079
RDX: 0000000000000000 RSI: 000000000000ae80 RDI: 0000000000000005
RBP: 00007f6518852220 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f65188522b0
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>

Crashes (16116):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-smack-root 2022/11/20 01:44 upstream fe24a97cf254 5bb70014 .config log report syz C WARNING in kvm_arch_vcpu_ioctl_run
ci-upstream-kasan-gce 2022/10/30 10:17 upstream b229b6ca5abb 2a71366b .config log report syz C WARNING in kvm_arch_vcpu_ioctl_run
ci-upstream-kasan-gce 2022/09/14 07:45 upstream d1221cea11fc b884348d .config log report syz C WARNING in kvm_arch_vcpu_ioctl_run
ci-upstream-kasan-gce-selinux-root 2022/08/09 10:58 upstream 200e340f2196 da700653 .config log report syz C WARNING in kvm_arch_vcpu_ioctl_run
ci-upstream-kasan-gce-smack-root 2022/07/12 14:19 upstream 5a29232d870d da3d6955 .config log report syz C WARNING in kvm_arch_vcpu_ioctl_run
ci-upstream-kasan-gce-selinux-root 2022/04/05 02:55 upstream 312310928417 5915c2cb .config log report syz C WARNING in kvm_arch_vcpu_ioctl_run
ci-upstream-kasan-gce 2022/03/04 17:55 upstream 38f80f42147f 45a13a73 .config log report syz C WARNING in kvm_arch_vcpu_ioctl_run
ci-upstream-kasan-gce-smack-root 2022/02/28 13:35 upstream 7e57714cd0ad 45a13a73 .config log report syz C WARNING in kvm_arch_vcpu_ioctl_run
ci-upstream-kasan-gce-selinux-root 2022/02/22 19:08 upstream 038101e6b2cd 6e821dbf .config log report syz C WARNING in kvm_arch_vcpu_ioctl_run
ci-upstream-kasan-gce-smack-root 2022/01/08 12:30 upstream d1587f7bfe9a 2ca0d385 .config log report syz C WARNING in kvm_arch_vcpu_ioctl_run
ci-upstream-linux-next-kasan-gce-root 2022/10/20 23:30 linux-next acee3e83b493 a0fd4dab .config log report syz C WARNING in kvm_arch_vcpu_ioctl_run
ci-upstream-linux-next-kasan-gce-root 2022/07/07 10:15 linux-next cb71b93c2dc3 bff65f44 .config log report syz C WARNING in kvm_arch_vcpu_ioctl_run
ci-upstream-linux-next-kasan-gce-root 2022/03/08 13:02 linux-next 91265a6da44d 7bdd8b2c .config log report syz C WARNING in kvm_arch_vcpu_ioctl_run
ci-upstream-kasan-gce-selinux-root 2020/05/14 06:34 upstream 24085f70a6e1 a885920d .config log report syz C
ci-upstream-kasan-gce-root 2020/05/13 06:51 upstream 24085f70a6e1 a44eb8f7 .config log report syz C
ci-upstream-kasan-gce-smack-root 2020/05/13 04:07 upstream 24085f70a6e1 a44eb8f7 .config log report syz C
ci-upstream-kasan-gce 2020/04/28 05:35 upstream 51184ae37e05 0ce7569e .config log report syz C
ci-upstream-kasan-gce-smack-root 2019/06/17 09:00 upstream 963172d9c7e8 442206d7 .config log report syz C
ci-upstream-kasan-gce-selinux-root 2019/06/17 06:24 upstream 963172d9c7e8 442206d7 .config log report syz C
ci-upstream-kasan-gce-root 2019/06/17 05:57 upstream 963172d9c7e8 442206d7 .config log report syz C
ci-upstream-kasan-gce 2019/06/17 02:54 upstream 963172d9c7e8 442206d7 .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2020/08/03 22:27 linux-next 01830e6c042e 196277c4 .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2020/08/01 07:23 linux-next 01830e6c042e d895b3be .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2020/07/30 12:04 linux-next 04b457178630 233283a1 .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2020/05/13 01:34 linux-next ac935d227366 a44eb8f7 .config log report syz C
ci-upstream-kasan-gce-root 2018/10/02 22:06 upstream 1d2ba7fee28b a316a2af .config log report syz
ci-upstream-kasan-gce-smack-root 2018/10/02 22:05 upstream 1d2ba7fee28b a316a2af .config log report syz
ci-upstream-kasan-gce-selinux-root 2018/10/02 21:59 upstream 1d2ba7fee28b a316a2af .config log report syz
ci-upstream-kasan-gce 2018/10/02 21:06 upstream 1d2ba7fee28b a316a2af .config log report syz
ci-upstream-kasan-gce 2022/12/06 06:58 upstream 76dcd734eca2 045cbb84 .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream 2022/11/21 17:20 upstream eb7081409f94 f9a97739 .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-upstream-kasan-gce-smack-root 2022/11/10 01:09 upstream f141df371335 5fa28208 .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream 2022/11/07 19:59 upstream f0c4d9fc9cc9 a779b11a .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-upstream-kasan-gce 2022/11/05 10:07 upstream 10d916c86eca 6d752409 .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-upstream-kasan-gce 2022/11/04 23:02 upstream ee6050c8af96 6d752409 .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream 2022/11/02 10:12 upstream 200204f56f3b 08977f5d .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-upstream-kasan-gce 2022/10/29 21:47 upstream b229b6ca5abb 899d812a .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream 2022/10/08 22:06 upstream e8bc52cb8df8 aea5da89 .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream 2022/10/06 05:53 upstream 833477fce7a1 2c6543ad .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream 2022/09/07 06:42 upstream d2ec799d1c1b 5fc30c37 .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream 2022/09/07 04:45 upstream d2ec799d1c1b 5fc30c37 .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream 2022/09/02 10:46 upstream 42e66b1cc3a0 a805568e .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream 2022/09/01 03:22 upstream c5e4d5e99162 b01ec571 .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream 2022/08/31 21:10 upstream c5e4d5e99162 51e54e30 .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream 2022/08/31 09:21 upstream dcf8e5633e2e 4a380809 .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream 2022/08/13 04:49 upstream c3adefb5baf3 8dfcaa3d .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream 2022/08/12 16:29 upstream 7ebfc85e2cd7 402cd70d .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream 2022/08/06 08:55 upstream 200e340f2196 e853abd9 .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream 2022/08/03 16:29 upstream e2b542100719 1c9013ac .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream 2022/07/22 23:03 upstream 4a57a8400075 22343af4 .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream 2022/07/15 23:11 upstream 4a57a8400075 95cb00d1 .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream 2022/07/13 02:09 upstream 5a29232d870d d91dd8ea .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream 2022/07/12 23:02 upstream 5a29232d870d d91dd8ea .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2022/11/27 02:25 upstream 644e9524388a f4470a7b .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2022/11/23 19:50 upstream eb7081409f94 3c2d90bc .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2022/11/21 15:59 upstream eb7081409f94 f9a97739 .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2022/11/08 07:35 upstream 59f2f4b8a757 6feb842b .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2022/11/02 10:04 upstream 200204f56f3b 08977f5d .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2022/11/02 03:26 upstream 200204f56f3b 08977f5d .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2022/11/02 01:02 upstream 200204f56f3b 08977f5d .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2022/11/01 14:33 upstream 200204f56f3b a1d8560a .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2022/10/29 14:20 upstream 200204f56f3b 899d812a .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2022/10/28 04:23 upstream 200204f56f3b 5c716ff6 .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2022/10/25 06:54 upstream 337a0a0b63f1 6134fb91 .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2022/10/22 14:56 upstream 4da34b7d175d c0b80a55 .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2022/10/22 01:37 upstream e35184f32151 4bfd3c27 .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2022/10/09 13:26 upstream a6afa4199d3d aea5da89 .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2022/09/28 10:51 upstream 46452d3786a8 75c78242 .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2022/09/21 01:49 upstream 60891ec99e14 c4b8ccfd .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2022/09/16 22:04 upstream 6879c2d3b960 dd9a85ff .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2022/09/08 20:03 upstream 26b1224903b3 f3027468 .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2022/09/07 03:07 upstream d2ec799d1c1b 5fc30c37 .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2022/09/02 07:28 upstream 42e66b1cc3a0 a805568e .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2022/08/27 17:03 upstream e022620b5d05 07177916 .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2022/08/26 01:13 upstream 3f5c20055a64 e5fb9cf5 .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2022/08/20 08:56 upstream 50cd95ac4654 26a13b38 .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2022/08/18 15:48 upstream 3b06a2755758 d58e263f .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2022/08/03 14:11 upstream e2b542100719 1c9013ac .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2022/07/29 17:02 upstream 6e2c0490769e fef302b1 .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2022/07/29 03:51 upstream 33ea1340bafe fb95c74d .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2022/07/22 07:32 upstream 4a57a8400075 5e6028b9 .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2022/07/15 21:29 upstream 4a57a8400075 95cb00d1 .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-upstream-linux-next-kasan-gce-root 2022/12/06 18:37 linux-next 9e46a7996732 d88f3abb .config log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-upstream-kasan-gce-root 2020/07/06 09:44 upstream 7cc2a8ea1048 51095195 .config log report
ci-upstream-kasan-gce-386 2019/11/19 04:04 upstream af42d3466bdc 5bc70212 .config log report
ci-upstream-kasan-gce-386 2018/03/24 06:26 upstream 99fec39e7725 2e9d9054 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/08/10 09:37 linux-next 01830e6c042e 70301872 .config log report
* Struck through repros no longer work on HEAD.