syzbot


WARNING in vcpu_enter_guest

Status: fixed on 2020/05/10 10:41
Subsystems: kvm
[Documentation on labels]
Reported-by: syzbot+00be5da1d75f1cc95f6b@syzkaller.appspotmail.com
Fix commit: d33294541889 KVM: x86: remove bogus user-triggerable WARN_ON
First crash: 1517d, last: 1289d
Cause bisection: introduced by (bisect log) :
commit 9446e6fce0ab9dfd44b96f630b4e3a0a0ab879fd
Author: Paolo Bonzini <pbonzini@redhat.com>
Date: Wed Feb 12 12:27:10 2020 +0000

  KVM: x86: fix WARN_ON check of an unsigned less than zero

Crash: WARNING in kvm_arch_vcpu_ioctl_run (log)
Repro: syz .config
  
Discussions (4)
Title Replies (including bot) Last reply
WARNING in vcpu_enter_guest 8 (11) 2020/03/22 03:31
[PATCH] KVM: x86: remove bogus user-triggerable WARN_ON 6 (6) 2020/03/20 18:18
PROBLEM: Regression of MMU causing guest VM application errors 19 (19) 2020/01/02 13:42
general protection fault in __schedule (2) 5 (7) 2019/12/02 16:56
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in vcpu_enter_guest (2) kvm C 42 333d 341d 24/25 fixed on 2023/02/24 13:50

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 9833 at arch/x86/kvm/x86.c:2447 kvm_guest_time_update arch/x86/kvm/x86.c:2447 [inline]
WARNING: CPU: 0 PID: 9833 at arch/x86/kvm/x86.c:2447 vcpu_enter_guest+0x3cf3/0x6120 arch/x86/kvm/x86.c:8175
Kernel panic - not syncing: panic_on_warn set ...
CPU: 0 PID: 9833 Comm: syz-executor.0 Not tainted 5.6.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x188/0x20d lib/dump_stack.c:118
 panic+0x2e3/0x75c kernel/panic.c:221
 __warn.cold+0x2f/0x35 kernel/panic.c:582
 report_bug+0x27b/0x2f0 lib/bug.c:195
 fixup_bug arch/x86/kernel/traps.c:174 [inline]
 fixup_bug arch/x86/kernel/traps.c:169 [inline]
 do_error_trap+0x12b/0x220 arch/x86/kernel/traps.c:267
 do_invalid_op+0x32/0x40 arch/x86/kernel/traps.c:286
 invalid_op+0x23/0x30 arch/x86/entry/entry_64.S:1027
RIP: 0010:kvm_guest_time_update arch/x86/kvm/x86.c:2447 [inline]
RIP: 0010:vcpu_enter_guest+0x3cf3/0x6120 arch/x86/kvm/x86.c:8175
Code: f3 7e 0f 94 c3 31 ff 89 de e8 d9 03 64 00 84 db 0f 84 62 ea ff ff e8 9c 02 64 00 e8 fb 43 f2 ff e9 53 ea ff ff e8 8d 02 64 00 <0f> 0b e9 e7 dc ff ff e8 81 02 64 00 bf 00 94 35 77 45 31 e4 4c 69
RSP: 0018:ffffc900024afb50 EFLAGS: 00010293
RAX: ffff888097b88040 RBX: fffffffffffff8d2 RCX: ffffffff810dff78
RDX: 0000000000000000 RSI: ffffffff810e2293 RDI: 0000000000000007
RBP: ffffc900024afcc0 R08: ffff888097b88040 R09: fffffbfff180e58f
R10: fffffbfff180e58e R11: ffffffff8c072c77 R12: 0000000000000000
R13: ffffc90002521000 R14: ffff88808e620378 R15: ffff88808e620340
 vcpu_run arch/x86/kvm/x86.c:8513 [inline]
 kvm_arch_vcpu_ioctl_run+0x41c/0x1790 arch/x86/kvm/x86.c:8735
 kvm_vcpu_ioctl+0x493/0xe60 arch/x86/kvm/../../../virt/kvm/kvm_main.c:2932
 vfs_ioctl fs/ioctl.c:47 [inline]
 ksys_ioctl+0x11a/0x180 fs/ioctl.c:763
 __do_sys_ioctl fs/ioctl.c:772 [inline]
 __se_sys_ioctl fs/ioctl.c:770 [inline]
 __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:770
 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45c849
Code: ad b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f5029f2ec78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f5029f2f6d4 RCX: 000000000045c849
RDX: 0000000000000000 RSI: 000000000000ae80 RDI: 0000000000000005
RBP: 000000000076bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000000003be R14: 00000000004c647e R15: 000000000076bf0c
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (19):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/03/19 10:34 upstream 5076190daded 2c31c529 .config console log report syz ci-upstream-kasan-gce
2020/03/21 21:43 upstream 5ad0ec0b8652 4288d95e .config console log report ci-upstream-kasan-gce-selinux-root
2020/03/21 21:37 upstream 5ad0ec0b8652 4288d95e .config console log report ci-upstream-kasan-gce-root
2020/03/19 10:06 upstream 5076190daded 2c31c529 .config console log report ci-upstream-kasan-gce
2020/03/03 00:08 upstream 63623fd44972 c88c7b75 .config console log report ci-upstream-kasan-gce
2020/02/25 12:48 upstream f8788d86ab28 59b57593 .config console log report ci-upstream-kasan-gce-smack-root
2020/01/02 16:43 upstream 738d2902773e 25a0186e .config console log report ci-upstream-kasan-gce
2019/09/17 22:44 upstream ad062195731b 13dcda9b .config console log report ci-upstream-kasan-gce
2019/09/16 18:44 upstream 4d856f72c10e cb936299 .config console log report ci-upstream-kasan-gce-smack-root
2019/09/09 06:02 upstream f74c2bb98776 a60cb4cd .config console log report ci-upstream-kasan-gce
2019/09/06 19:00 upstream 044597100037 a60cb4cd .config console log report ci-upstream-kasan-gce
2019/08/31 14:42 upstream 6525771f58cb fd37b39e .config console log report ci-upstream-kasan-gce
2019/08/28 16:22 upstream 6525771f58cb fd37b39e .config console log report ci-upstream-kasan-gce
2019/08/21 18:43 upstream 15d90b242290 4ea67ff8 .config console log report ci-upstream-kasan-gce
2019/08/21 07:45 upstream 15d90b242290 4ea67ff8 .config console log report ci-upstream-kasan-gce
2019/11/27 16:03 upstream 89d57dddd7d3 0d63f89c .config console log report ci-upstream-kasan-gce-386
2019/09/10 12:51 upstream 3120b9a6a3f7 a60cb4cd .config console log report ci-upstream-kasan-gce-386
2020/03/21 21:42 linux-next 770fbb32d34e 4288d95e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/07 10:28 linux-next 958eb4327c17 cdde7486 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.