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: 1771d, last: 5h48m

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 1825d 1913d 4/24 fixed on 2018/03/13 09:44
upstream WARNING in kvm_arch_vcpu_ioctl_run C 20284 1950d 2015d 3/24 fixed on 2017/09/26 01:38
linux-4.14 WARNING in kvm_arch_vcpu_ioctl_run C inconclusive 71 136d 1312d 0/1 upstream: reported C repro on 2019/06/25 23:07
linux-4.19 WARNING in kvm_arch_vcpu_ioctl_run C error 116 45d 1321d 0/1 upstream: reported C repro on 2019/06/17 10:07
Last 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:
kvm: KVM_SET_TSS_ADDR need to be called before entering vcpu
set kvm_intel.dump_invalid_vmcs=1 to dump internal KVM state.
------------[ cut here ]------------
WARNING: CPU: 0 PID: 5055 at arch/x86/kvm/x86.c:10896 kvm_arch_vcpu_ioctl_run+0xd53/0x12c0
Modules linked in:
CPU: 0 PID: 5055 Comm: syz-executor268 Not tainted 6.2.0-rc5-syzkaller-00047-g7c46948a6e9c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
RIP: 0010:kvm_arch_vcpu_ioctl_run+0xd53/0x12c0 arch/x86/kvm/x86.c:10896
Code: 7d 00 89 5c 24 10 85 db 7e 43 e8 48 46 7d 00 4c 8b 7c 24 38 e9 a3 fa ff ff e8 39 46 7d 00 0f 0b e9 65 fa ff ff e8 2d 46 7d 00 <0f> 0b e9 8b fa ff ff e8 21 46 7d 00 e9 ed fa ff ff e8 17 46 7d 00
RSP: 0018:ffffc90003bbfc98 EFLAGS: 00010293
RAX: ffffffff8110a2c3 RBX: 0000000000000001 RCX: ffff88802ac11d40
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff81109d48 R09: fffffbfff212e64a
R10: fffffbfff212e64a R11: 1ffffffff212e649 R12: dffffc0000000000
R13: ffff88807a791000 R14: ffff888027a18000 R15: ffff888027a180d8
FS:  0000555555f5f300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 0000000075f9a000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 kvm_vcpu_ioctl+0x771/0xc70 arch/x86/kvm/../../../virt/kvm/kvm_main.c:4107
 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:0x7fb320551279
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:00007fff49a83aa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fb320551279
RDX: 0000000000000000 RSI: 000000000000ae80 RDI: 0000000000000005
RBP: 00007fb320514cd0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fb320514d60
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>

Crashes (16145):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-kasan-gce-smack-root 2023/01/26 15:53 upstream 7c46948a6e9c 9dfcf09c .config strace log report syz C [disk image] [vmlinux] [kernel image] WARNING in kvm_arch_vcpu_ioctl_run
ci-upstream-kasan-gce-selinux-root 2023/01/03 04:04 upstream 88603b6dc419 ab32d508 .config strace log report syz C [disk image] [vmlinux] [kernel image] WARNING in kvm_arch_vcpu_ioctl_run
ci-upstream-kasan-gce-smack-root 2022/11/20 01:44 upstream fe24a97cf254 5bb70014 .config strace log report syz C [disk image] [vmlinux] [kernel image] WARNING in kvm_arch_vcpu_ioctl_run
ci-upstream-kasan-gce 2022/10/30 10:17 upstream b229b6ca5abb 2a71366b .config strace log report syz C [disk image] [vmlinux] [kernel image] WARNING in kvm_arch_vcpu_ioctl_run
ci-upstream-kasan-gce 2022/09/14 07:45 upstream d1221cea11fc b884348d .config strace 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 strace 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 strace 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 console log report syz C WARNING in kvm_arch_vcpu_ioctl_run
ci-upstream-kasan-gce 2022/03/04 17:55 upstream 38f80f42147f 45a13a73 .config console 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 console 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 console 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 console log report syz C WARNING in kvm_arch_vcpu_ioctl_run
ci-upstream-linux-next-kasan-gce-root 2022/12/10 19:24 linux-next 591cd61541b9 67be1ae7 .config strace log report syz C [disk image] [vmlinux] [kernel image] WARNING in kvm_arch_vcpu_ioctl_run
ci-upstream-linux-next-kasan-gce-root 2022/10/20 23:30 linux-next acee3e83b493 a0fd4dab .config strace log report syz C [disk image] [vmlinux] WARNING in kvm_arch_vcpu_ioctl_run
ci-upstream-linux-next-kasan-gce-root 2022/07/07 10:15 linux-next cb71b93c2dc3 bff65f44 .config strace 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 console 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 console log report syz C
ci-upstream-kasan-gce-root 2020/05/13 06:51 upstream 24085f70a6e1 a44eb8f7 .config console log report syz C
ci-upstream-kasan-gce-smack-root 2020/05/13 04:07 upstream 24085f70a6e1 a44eb8f7 .config console log report syz C
ci-upstream-kasan-gce 2020/04/28 05:35 upstream 51184ae37e05 0ce7569e .config console log report syz C
ci-upstream-kasan-gce-smack-root 2019/06/17 09:00 upstream 963172d9c7e8 442206d7 .config console log report syz C
ci-upstream-kasan-gce-selinux-root 2019/06/17 06:24 upstream 963172d9c7e8 442206d7 .config console log report syz C
ci-upstream-kasan-gce-root 2019/06/17 05:57 upstream 963172d9c7e8 442206d7 .config console log report syz C
ci-upstream-kasan-gce 2019/06/17 02:54 upstream 963172d9c7e8 442206d7 .config console log report syz C
ci-upstream-linux-next-kasan-gce-root 2020/08/03 22:27 linux-next 01830e6c042e 196277c4 .config console log report syz C
ci-upstream-linux-next-kasan-gce-root 2020/08/01 07:23 linux-next 01830e6c042e d895b3be .config console log report syz C
ci-upstream-linux-next-kasan-gce-root 2020/07/30 12:04 linux-next 04b457178630 233283a1 .config console log report syz C
ci-upstream-linux-next-kasan-gce-root 2020/05/13 01:34 linux-next ac935d227366 a44eb8f7 .config console log report syz C
ci-upstream-kasan-gce-root 2018/10/02 22:06 upstream 1d2ba7fee28b a316a2af .config console log report syz
ci-upstream-kasan-gce-smack-root 2018/10/02 22:05 upstream 1d2ba7fee28b a316a2af .config console log report syz
ci-upstream-kasan-gce-selinux-root 2018/10/02 21:59 upstream 1d2ba7fee28b a316a2af .config console log report syz
ci-upstream-kasan-gce 2018/10/02 21:06 upstream 1d2ba7fee28b a316a2af .config console log report syz
ci-qemu-upstream 2023/01/27 14:42 upstream 7c46948a6e9c 7374c4e5 .config console log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-upstream-kasan-gce 2023/01/27 02:03 upstream 7c46948a6e9c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in kvm_arch_vcpu_ioctl_run
ci-upstream-kasan-gce 2023/01/23 20:26 upstream 2475bf0250de 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in kvm_arch_vcpu_ioctl_run
ci-upstream-kasan-gce 2023/01/16 10:15 upstream 5dc4c995db9e a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in kvm_arch_vcpu_ioctl_run
ci-upstream-kasan-gce 2023/01/16 08:24 upstream 5dc4c995db9e a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in kvm_arch_vcpu_ioctl_run
ci-upstream-kasan-gce 2023/01/15 13:03 upstream 7c6984405241 a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in kvm_arch_vcpu_ioctl_run
ci-upstream-kasan-gce 2023/01/13 09:34 upstream c757fc92a3f7 96166539 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in kvm_arch_vcpu_ioctl_run
ci-upstream-kasan-gce 2023/01/12 10:46 upstream e8f60cd7db24 96166539 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in kvm_arch_vcpu_ioctl_run
ci-upstream-kasan-gce 2023/01/07 00:14 upstream 1f5abbd77e2c 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream 2022/12/09 18:26 upstream 0d1409e4ff08 67be1ae7 .config console log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-upstream-kasan-gce 2022/12/06 06:58 upstream 76dcd734eca2 045cbb84 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream 2022/11/21 17:20 upstream eb7081409f94 f9a97739 .config console 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 console log report info [disk image] [vmlinux] [kernel image] WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream 2022/11/07 19:59 upstream f0c4d9fc9cc9 a779b11a .config console log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-upstream-kasan-gce 2022/11/05 10:07 upstream 10d916c86eca 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in kvm_arch_vcpu_ioctl_run
ci-upstream-kasan-gce 2022/11/04 23:02 upstream ee6050c8af96 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream 2022/11/02 10:12 upstream 200204f56f3b 08977f5d .config console log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-upstream-kasan-gce 2022/10/29 21:47 upstream b229b6ca5abb 899d812a .config console log report info [disk image] [vmlinux] [kernel image] WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream 2022/10/08 22:06 upstream e8bc52cb8df8 aea5da89 .config console log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream 2022/10/06 05:53 upstream 833477fce7a1 2c6543ad .config console log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2023/01/28 04:53 upstream 83abd4d4c4be 7374c4e5 .config console log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2023/01/18 20:18 upstream c1649ec55708 4620c2d9 .config console log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2023/01/17 23:09 upstream c1649ec55708 42660d9e .config console log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2023/01/14 12:46 upstream 97ec4d559d93 a63719e7 .config console log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2023/01/13 07:39 upstream d9fc1511728c 96166539 .config console log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2023/01/12 20:12 upstream c757fc92a3f7 96166539 .config console log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2023/01/12 13:24 upstream e8f60cd7db24 96166539 .config console log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2023/01/02 17:30 upstream 88603b6dc419 ab32d508 .config console log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2022/12/15 16:22 upstream 041fae9c105a 6f9c033e .config console log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2022/11/27 02:25 upstream 644e9524388a f4470a7b .config console log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2022/11/23 19:50 upstream eb7081409f94 3c2d90bc .config console log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2022/11/21 15:59 upstream eb7081409f94 f9a97739 .config console log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2022/11/08 07:35 upstream 59f2f4b8a757 6feb842b .config console log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2022/11/02 10:04 upstream 200204f56f3b 08977f5d .config console log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2022/11/02 03:26 upstream 200204f56f3b 08977f5d .config console log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2022/11/02 01:02 upstream 200204f56f3b 08977f5d .config console log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2022/11/01 14:33 upstream 200204f56f3b a1d8560a .config console log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2022/10/29 14:20 upstream 200204f56f3b 899d812a .config console log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2022/10/28 04:23 upstream 200204f56f3b 5c716ff6 .config console log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2022/10/25 06:54 upstream 337a0a0b63f1 6134fb91 .config console log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2022/10/22 14:56 upstream 4da34b7d175d c0b80a55 .config console log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2022/10/22 01:37 upstream e35184f32151 4bfd3c27 .config console log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2022/10/09 13:26 upstream a6afa4199d3d aea5da89 .config console log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2022/09/28 10:51 upstream 46452d3786a8 75c78242 .config console log report info WARNING in kvm_arch_vcpu_ioctl_run
ci-qemu-upstream-386 2022/09/21 01:49 upstream 60891ec99e14 c4b8ccfd .config console 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 console log report info [disk image] [vmlinux] [kernel image] WARNING in kvm_arch_vcpu_ioctl_run
ci-upstream-kasan-gce-root 2020/07/06 09:44 upstream 7cc2a8ea1048 51095195 .config console log report
ci-upstream-kasan-gce-386 2019/11/19 04:04 upstream af42d3466bdc 5bc70212 .config console log report
ci-upstream-kasan-gce-386 2018/03/24 06:26 upstream 99fec39e7725 2e9d9054 .config console log report
ci-upstream-linux-next-kasan-gce-root 2020/08/10 09:37 linux-next 01830e6c042e 70301872 .config console log report
* Struck through repros no longer work on HEAD.