syzbot


WARNING in kvm_arch_vcpu_ioctl_run (3)

Status: fixed on 2023/02/24 13:50
Subsystems: kvm
[Documentation on labels]
Reported-by: syzbot+760a73552f47a8cd0fd9@syzkaller.appspotmail.com
Fix commit: ec6e4d863258 KVM: x86: Mark TSS busy during LTR emulation _after_ all fault checks
First crash: 2246d, last: 449d
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 (error log, bisect log)
  
Discussions (14)
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
[PATCH 5.4 000/389] 5.4.211-rc1 review 396 (396) 2022/10/26 16:43
[PATCH 5.15 000/779] 5.15.61-rc1 review 804 (804) 2022/09/23 09:30
[PATCH 5.10 000/545] 5.10.137-rc1 review 570 (570) 2022/08/29 08:17
[PATCH 4.19 000/287] 4.19.256-rc1 review 298 (298) 2022/08/25 10:11
[PATCH 4.9 000/101] 4.9.326-rc1 review 108 (108) 2022/08/24 07:24
[PATCH 4.14 000/229] 4.14.291-rc1 review 232 (232) 2022/08/24 06:23
[PATCH 5.18 0000/1095] 5.18.18-rc1 review 1101 (1101) 2022/08/21 13:22
[PATCH 5.19 0000/1157] 5.19.2-rc1 review 1184 (1184) 2022/08/21 08:05
[PATCH 0/3] KVM: x86: Fix fault-related bugs in LTR/LLDT emulation 11 (11) 2022/07/14 18:20
WARNING in kvm_arch_vcpu_ioctl_run (3) 3 (7) 2022/06/27 20:08
Reminder: 4 active syzbot reports in kvm subsystem 1 (1) 2019/09/19 05:27
Reminder: 25 open syzbot bugs in kvm subsystem 1 (1) 2019/07/24 01:43
Reminder: 25 open syzbot bugs in kvm subsystem 1 (1) 2019/06/24 05:21
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 252d 340d 23/26 fixed on 2023/10/12 12:47
upstream WARNING in kvm_arch_vcpu_ioctl_run (4) kvm C error 288 344d 428d 22/26 fixed on 2023/06/08 14:41
upstream WARNING in kvm_arch_vcpu_ioctl_run (2) kvm C 61018 2300d 2389d 4/26 fixed on 2018/03/13 09:44
upstream WARNING in kvm_arch_vcpu_ioctl_run C 20284 2426d 2491d 3/26 fixed on 2017/09/26 01:38
linux-4.14 WARNING in kvm_arch_vcpu_ioctl_run C inconclusive 71 611d 1788d 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 521d 1796d 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 374 1d18h 404d 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 164 4d08h 421d 0/3 upstream: reported C repro on 2023/03/23 13:22
Last patch testing requests (2)
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: 5074 at arch/x86/kvm/x86.c:10896 kvm_arch_vcpu_ioctl_run+0x243c/0x2ad0 arch/x86/kvm/x86.c:10896
Modules linked in:
CPU: 0 PID: 5074 Comm: syz-executor164 Not tainted 6.2.0-rc8-syzkaller-00015-gf6feea56f66d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023
RIP: 0010:kvm_arch_vcpu_ioctl_run+0x243c/0x2ad0 arch/x86/kvm/x86.c:10896
Code: 8c bc 00 e9 57 de ff ff 48 c7 c7 00 f4 74 8e e8 ba 8c bc 00 e9 d1 dc ff ff e8 60 79 6e 00 0f 0b e9 94 e0 ff ff e8 54 79 6e 00 <0f> 0b e9 cc e0 ff ff e8 48 79 6e 00 be 08 00 00 00 65 48 8b 1c 25
RSP: 0018:ffffc90003c2fcb0 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000
RDX: ffff888023dbd7c0 RSI: ffffffff81127ebc RDI: 0000000000000005
RBP: ffff88807bb50000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
R13: ffffc90003c3aca0 R14: ffff88802a4d23c0 R15: ffff88807bb502ec
FS:  0000555555fe6300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd21e0bff8 CR3: 000000007e857000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 kvm_vcpu_ioctl+0x574/0xfc0 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 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:0x7ff0548e5279
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:00007ffd21e0daf8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007ff0548e5279
RDX: 0000000000000000 RSI: 000000000000ae80 RDI: 0000000000000005
RBP: 00007ff0548a8cd0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ff0548a8d60
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>

Crashes (16157):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/14 20:01 upstream f6feea56f66d 1d6b4af7 .config strace log report syz C ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2023/01/26 15:53 upstream 7c46948a6e9c 9dfcf09c .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in kvm_arch_vcpu_ioctl_run
2023/01/03 04:04 upstream 88603b6dc419 ab32d508 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in kvm_arch_vcpu_ioctl_run
2022/11/20 01:44 upstream fe24a97cf254 5bb70014 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in kvm_arch_vcpu_ioctl_run
2022/10/30 10:17 upstream b229b6ca5abb 2a71366b .config strace log report syz C ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2022/09/14 07:45 upstream d1221cea11fc b884348d .config strace log report syz C ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2022/08/09 10:58 upstream 200e340f2196 da700653 .config strace log report syz C ci-upstream-kasan-gce-selinux-root WARNING in kvm_arch_vcpu_ioctl_run
2022/07/12 14:19 upstream 5a29232d870d da3d6955 .config strace log report syz C ci-upstream-kasan-gce-smack-root WARNING in kvm_arch_vcpu_ioctl_run
2022/04/05 02:55 upstream 312310928417 5915c2cb .config console log report syz C ci-upstream-kasan-gce-selinux-root WARNING in kvm_arch_vcpu_ioctl_run
2022/03/04 17:55 upstream 38f80f42147f 45a13a73 .config console log report syz C ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2022/02/28 13:35 upstream 7e57714cd0ad 45a13a73 .config console log report syz C ci-upstream-kasan-gce-smack-root WARNING in kvm_arch_vcpu_ioctl_run
2022/02/22 19:08 upstream 038101e6b2cd 6e821dbf .config console log report syz C ci-upstream-kasan-gce-selinux-root WARNING in kvm_arch_vcpu_ioctl_run
2022/01/08 12:30 upstream d1587f7bfe9a 2ca0d385 .config console log report syz C ci-upstream-kasan-gce-smack-root WARNING in kvm_arch_vcpu_ioctl_run
2022/12/10 19:24 linux-next 591cd61541b9 67be1ae7 .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
2022/10/20 23:30 linux-next acee3e83b493 a0fd4dab .config strace log report syz C [disk image] [vmlinux] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_arch_vcpu_ioctl_run
2022/07/07 10:15 linux-next cb71b93c2dc3 bff65f44 .config strace log report syz C ci-upstream-linux-next-kasan-gce-root WARNING in kvm_arch_vcpu_ioctl_run
2022/03/08 13:02 linux-next 91265a6da44d 7bdd8b2c .config console log report syz C ci-upstream-linux-next-kasan-gce-root WARNING in kvm_arch_vcpu_ioctl_run
2020/05/14 06:34 upstream 24085f70a6e1 a885920d .config console log report syz C ci-upstream-kasan-gce-selinux-root
2020/05/13 06:51 upstream 24085f70a6e1 a44eb8f7 .config console log report syz C ci-upstream-kasan-gce-root
2020/05/13 04:07 upstream 24085f70a6e1 a44eb8f7 .config console log report syz C ci-upstream-kasan-gce-smack-root
2020/04/28 05:35 upstream 51184ae37e05 0ce7569e .config console log report syz C ci-upstream-kasan-gce
2019/06/17 09:00 upstream 963172d9c7e8 442206d7 .config console log report syz C ci-upstream-kasan-gce-smack-root
2019/06/17 06:24 upstream 963172d9c7e8 442206d7 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2019/06/17 05:57 upstream 963172d9c7e8 442206d7 .config console log report syz C ci-upstream-kasan-gce-root
2019/06/17 02:54 upstream 963172d9c7e8 442206d7 .config console log report syz C ci-upstream-kasan-gce
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-linux-next-kasan-gce-root
2018/10/02 22:06 upstream 1d2ba7fee28b a316a2af .config console log report syz ci-upstream-kasan-gce-root
2018/10/02 22:05 upstream 1d2ba7fee28b a316a2af .config console log report syz ci-upstream-kasan-gce-smack-root
2018/10/02 21:59 upstream 1d2ba7fee28b a316a2af .config console log report syz ci-upstream-kasan-gce-selinux-root
2018/10/02 21:06 upstream 1d2ba7fee28b a316a2af .config console log report syz ci-upstream-kasan-gce
2023/02/15 21:36 upstream e1c04510f521 6be0f1f5 .config console log report info ci-qemu-upstream WARNING in kvm_arch_vcpu_ioctl_run
2023/02/14 03:12 upstream b408817d4884 93ae7e0a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2023/02/11 18:00 upstream 420b2d431d18 93e26d60 .config console log report info ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2023/02/05 03:50 upstream 95078069c1e7 be607b78 .config console log report info ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2023/01/27 14:42 upstream 7c46948a6e9c 7374c4e5 .config console log report info ci-qemu-upstream WARNING in kvm_arch_vcpu_ioctl_run
2023/01/27 02:03 upstream 7c46948a6e9c 9dfcf09c .config console log report info ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2023/01/23 20:26 upstream 2475bf0250de 9dfcf09c .config console log report info ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2023/01/16 10:15 upstream 5dc4c995db9e a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2023/01/16 08:24 upstream 5dc4c995db9e a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2023/01/15 13:03 upstream 7c6984405241 a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2023/01/13 09:34 upstream c757fc92a3f7 96166539 .config console log report info ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2023/01/12 10:46 upstream e8f60cd7db24 96166539 .config console log report info ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2023/01/07 00:14 upstream 1f5abbd77e2c 1dac8c7a .config console log report info ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2022/12/09 18:26 upstream 0d1409e4ff08 67be1ae7 .config console log report info ci-qemu-upstream WARNING in kvm_arch_vcpu_ioctl_run
2022/12/06 06:58 upstream 76dcd734eca2 045cbb84 .config console log report info ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2022/11/21 17:20 upstream eb7081409f94 f9a97739 .config console log report info ci-qemu-upstream WARNING in kvm_arch_vcpu_ioctl_run
2022/11/10 01:09 upstream f141df371335 5fa28208 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in kvm_arch_vcpu_ioctl_run
2022/11/07 19:59 upstream f0c4d9fc9cc9 a779b11a .config console log report info ci-qemu-upstream WARNING in kvm_arch_vcpu_ioctl_run
2022/11/05 10:07 upstream 10d916c86eca 6d752409 .config console log report info ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2022/11/04 23:02 upstream ee6050c8af96 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2022/11/02 10:12 upstream 200204f56f3b 08977f5d .config console log report info ci-qemu-upstream WARNING in kvm_arch_vcpu_ioctl_run
2022/10/29 21:47 upstream b229b6ca5abb 899d812a .config console log report info ci-upstream-kasan-gce WARNING in kvm_arch_vcpu_ioctl_run
2023/02/23 21:17 upstream a5c95ca18a98 4359978e .config console log report info ci-qemu-upstream-386 WARNING in kvm_arch_vcpu_ioctl_run
2023/02/22 10:43 upstream 69308402ca6f 42a4d508 .config console log report info ci-qemu-upstream-386 WARNING in kvm_arch_vcpu_ioctl_run
2023/02/18 05:36 upstream 03dad2f0c781 d02e9a70 .config console log report info ci-qemu-upstream-386 WARNING in kvm_arch_vcpu_ioctl_run
2023/02/10 18:31 upstream 38c1e0c65865 e29a17f5 .config console log report info ci-qemu-upstream-386 WARNING in kvm_arch_vcpu_ioctl_run
2023/02/08 04:51 upstream 0983f6bf2bfc 15c3d445 .config console log report info ci-qemu-upstream-386 WARNING in kvm_arch_vcpu_ioctl_run
2023/01/28 04:53 upstream 83abd4d4c4be 7374c4e5 .config console log report info ci-qemu-upstream-386 WARNING in kvm_arch_vcpu_ioctl_run
2023/01/18 20:18 upstream c1649ec55708 4620c2d9 .config console log report info ci-qemu-upstream-386 WARNING in kvm_arch_vcpu_ioctl_run
2023/01/17 23:09 upstream c1649ec55708 42660d9e .config console log report info ci-qemu-upstream-386 WARNING in kvm_arch_vcpu_ioctl_run
2023/01/14 12:46 upstream 97ec4d559d93 a63719e7 .config console log report info ci-qemu-upstream-386 WARNING in kvm_arch_vcpu_ioctl_run
2023/01/13 07:39 upstream d9fc1511728c 96166539 .config console log report info ci-qemu-upstream-386 WARNING in kvm_arch_vcpu_ioctl_run
2023/01/12 20:12 upstream c757fc92a3f7 96166539 .config console log report info ci-qemu-upstream-386 WARNING in kvm_arch_vcpu_ioctl_run
2023/01/12 13:24 upstream e8f60cd7db24 96166539 .config console log report info ci-qemu-upstream-386 WARNING in kvm_arch_vcpu_ioctl_run
2023/01/02 17:30 upstream 88603b6dc419 ab32d508 .config console log report info ci-qemu-upstream-386 WARNING in kvm_arch_vcpu_ioctl_run
2022/12/15 16:22 upstream 041fae9c105a 6f9c033e .config console log report info ci-qemu-upstream-386 WARNING in kvm_arch_vcpu_ioctl_run
2022/11/27 02:25 upstream 644e9524388a f4470a7b .config console log report info ci-qemu-upstream-386 WARNING in kvm_arch_vcpu_ioctl_run
2022/11/23 19:50 upstream eb7081409f94 3c2d90bc .config console log report info ci-qemu-upstream-386 WARNING in kvm_arch_vcpu_ioctl_run
2022/11/21 15:59 upstream eb7081409f94 f9a97739 .config console log report info ci-qemu-upstream-386 WARNING in kvm_arch_vcpu_ioctl_run
2022/11/08 07:35 upstream 59f2f4b8a757 6feb842b .config console log report info ci-qemu-upstream-386 WARNING in kvm_arch_vcpu_ioctl_run
2022/11/02 10:04 upstream 200204f56f3b 08977f5d .config console log report info ci-qemu-upstream-386 WARNING in kvm_arch_vcpu_ioctl_run
2022/11/02 03:26 upstream 200204f56f3b 08977f5d .config console log report info ci-qemu-upstream-386 WARNING in kvm_arch_vcpu_ioctl_run
2022/11/02 01:02 upstream 200204f56f3b 08977f5d .config console log report info ci-qemu-upstream-386 WARNING in kvm_arch_vcpu_ioctl_run
2022/11/01 14:33 upstream 200204f56f3b a1d8560a .config console log report info ci-qemu-upstream-386 WARNING in kvm_arch_vcpu_ioctl_run
2022/10/29 14:20 upstream 200204f56f3b 899d812a .config console log report info ci-qemu-upstream-386 WARNING in kvm_arch_vcpu_ioctl_run
2022/10/28 04:23 upstream 200204f56f3b 5c716ff6 .config console log report info ci-qemu-upstream-386 WARNING in kvm_arch_vcpu_ioctl_run
2022/12/06 18:37 linux-next 9e46a7996732 d88f3abb .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in kvm_arch_vcpu_ioctl_run
2020/07/06 09:44 upstream 7cc2a8ea1048 51095195 .config console log report ci-upstream-kasan-gce-root
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-kasan-gce-386
2020/08/10 09:37 linux-next 01830e6c042e 70301872 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.