syzbot


upstream boot error: WARNING in kvm_wait

Status: fixed on 2021/11/10 00:51
Subsystems: kvm
[Documentation on labels]
Reported-by: syzbot+a4c8bc1d1dc7b620630d@syzkaller.appspotmail.com
Fix commit: f4e61f0c9add x86/kvm: Fix broken irq restoration in kvm_wait
First crash: 1146d, last: 1132d
Duplicate bugs (4)
duplicates (4):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
net-next boot error: WARNING in kvm_wait kvm 21 1126d 1146d 0/26 closed as dup on 2021/03/09 06:59
bpf-next boot error: WARNING in kvm_wait kvm 17 1127d 1145d 0/26 closed as dup on 2021/03/09 06:58
net boot error: WARNING in kvm_wait kvm 17 1127d 1145d 0/26 closed as dup on 2021/03/09 06:58
bpf boot error: WARNING in kvm_wait kvm 11 1130d 1145d 0/26 closed as dup on 2021/03/09 06:58
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] upstream boot error: WARNING in kvm_wait 2 (3) 2021/03/09 07:00

Sample crash report:
------------[ cut here ]------------
raw_local_irq_restore() called with IRQs enabled
WARNING: CPU: 0 PID: 4808 at kernel/locking/irqflag-debug.c:10 warn_bogus_irq_restore+0x1d/0x20 kernel/locking/irqflag-debug.c:10
Modules linked in:
CPU: 0 PID: 4808 Comm: selinux-autorel Not tainted 5.12.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:warn_bogus_irq_restore+0x1d/0x20 kernel/locking/irqflag-debug.c:10
Code: be ff cc cc cc cc cc cc cc cc cc cc cc 80 3d f6 9c ab 04 00 74 01 c3 48 c7 c7 a0 7b 6b 89 c6 05 e5 9c ab 04 01 e8 b1 b8 be ff <0f> 0b c3 48 39 77 10 0f 84 97 00 00 00 66 f7 47 22 f0 ff 74 4b 48
RSP: 0018:ffffc90001697c40 EFLAGS: 00010282
RAX: 0000000000000000 RBX: ffffffff8be25fe0 RCX: 0000000000000000
RDX: ffff888011954000 RSI: ffffffff815b6f85 RDI: fffff520002d2f7a
RBP: 0000000000000200 R08: 0000000000000000 R09: 0000000000000001
R10: ffffffff815afcee R11: 0000000000000000 R12: 0000000000000003
R13: fffffbfff17c4bfc R14: 0000000000000001 R15: ffff8880b9c36000
FS:  0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fcb1e958b04 CR3: 000000000bc8e000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 kvm_wait arch/x86/kernel/kvm.c:860 [inline]
 kvm_wait+0xc9/0xe0 arch/x86/kernel/kvm.c:837
 pv_wait arch/x86/include/asm/paravirt.h:564 [inline]
 pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:470 [inline]
 __pv_queued_spin_lock_slowpath+0x8b8/0xb40 kernel/locking/qspinlock.c:508
 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:554 [inline]
 queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline]
 queued_spin_lock include/asm-generic/qspinlock.h:85 [inline]
 do_raw_spin_lock+0x200/0x2b0 kernel/locking/spinlock_debug.c:113
 spin_lock include/linux/spinlock.h:354 [inline]
 check_stack_usage kernel/exit.c:715 [inline]
 do_exit+0x1d05/0x2a60 kernel/exit.c:868
 do_group_exit+0x125/0x310 kernel/exit.c:922
 __do_sys_exit_group kernel/exit.c:933 [inline]
 __se_sys_exit_group kernel/exit.c:931 [inline]
 __x64_sys_exit_group+0x3a/0x50 kernel/exit.c:931
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7fcb1e677618
Code: Unable to access opcode bytes at RIP 0x7fcb1e6775ee.
RSP: 002b:00007fff425ef758 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fcb1e677618
RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000
RBP: 0000557a27e146e0 R08: 00000000000000e7 R09: ffffffffffffff98
R10: 0000557a285516c0 R11: 0000000000000246 R12: 0000557a27e037a0
R13: 00007fff425efa40 R14: 0000000000000000 R15: 0000000000000000

Crashes (233):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/03/19 13:37 upstream 8b12a62a4e3e 2af9d324 .config console log report ci-upstream-kasan-gce-selinux-root upstream boot error: WARNING in kvm_wait
2021/03/18 22:56 upstream bf152b0b41dc 7216542e .config console log report ci-upstream-kasan-gce-root upstream boot error: WARNING in kvm_wait
2021/03/18 22:20 upstream bf152b0b41dc 7216542e .config console log report ci-upstream-kasan-gce-smack-root upstream boot error: WARNING in kvm_wait
2021/03/17 22:54 upstream 6417f03132a6 fdb2bb2c .config console log report ci-upstream-kasan-gce-selinux-root upstream boot error: WARNING in kvm_wait
2021/03/16 18:10 upstream 1df27313f50a fdb2bb2c .config console log report ci-upstream-kasan-gce-selinux-root upstream boot error: WARNING in kvm_wait
2021/03/16 04:31 upstream 1a4431a5db2b fdb2bb2c .config console log report ci-upstream-kasan-gce-smack-root upstream boot error: WARNING in kvm_wait
2021/03/16 00:10 upstream 1a4431a5db2b fdb2bb2c .config console log report ci-upstream-kasan-gce-selinux-root upstream boot error: WARNING in kvm_wait
2021/03/15 14:43 upstream 1e28eed17697 fdb2bb2c .config console log report ci-qemu-upstream upstream boot error: WARNING in kvm_wait
2021/03/15 09:56 upstream 1e28eed17697 cc1cff8f .config console log report ci-upstream-kasan-gce-root upstream boot error: WARNING in kvm_wait
2021/03/14 22:18 upstream 1e28eed17697 cc1cff8f .config console log report ci-qemu-upstream upstream boot error: WARNING in kvm_wait
2021/03/14 20:35 upstream 75013c6c52d8 cc1cff8f .config console log report ci-upstream-kasan-gce-root upstream boot error: WARNING in kvm_wait
2021/03/14 19:20 upstream 88fe49249c99 cc1cff8f .config console log report ci-qemu-upstream upstream boot error: WARNING in kvm_wait
2021/03/13 23:30 upstream 88fe49249c99 4a003785 .config console log report ci-upstream-kasan-gce-smack-root upstream boot error: WARNING in kvm_wait
2021/03/13 21:18 upstream 88fe49249c99 4a003785 .config console log report ci-qemu-upstream upstream boot error: WARNING in kvm_wait
2021/03/13 07:16 upstream f296bfd5cd04 4a003785 .config console log report ci-qemu-upstream upstream boot error: WARNING in kvm_wait
2021/03/13 01:11 upstream f296bfd5cd04 429d8a6b .config console log report ci-upstream-kasan-gce-root upstream boot error: WARNING in kvm_wait
2021/03/12 22:26 upstream 9afc11637947 429d8a6b .config console log report ci-qemu-upstream upstream boot error: WARNING in kvm_wait
2021/03/12 12:28 upstream f78d76e72a46 429d8a6b .config console log report ci-upstream-kasan-gce upstream boot error: WARNING in kvm_wait
2021/03/11 21:33 upstream 28806e4d9b97 c2ca1f2a .config console log report ci-upstream-kasan-gce-root upstream boot error: WARNING in kvm_wait
2021/03/11 19:32 upstream 28806e4d9b97 c2ca1f2a .config console log report ci-qemu-upstream upstream boot error: WARNING in kvm_wait
2021/03/11 06:45 upstream a74e6a014c9d c2ca1f2a .config console log report ci-upstream-kasan-gce-selinux-root upstream boot error: WARNING in kvm_wait
2021/03/11 05:39 upstream a74e6a014c9d c2ca1f2a .config console log report ci-upstream-kasan-gce upstream boot error: WARNING in kvm_wait
2021/03/11 03:46 upstream a74e6a014c9d c2ca1f2a .config console log report ci-qemu-upstream upstream boot error: WARNING in kvm_wait
2021/03/10 18:37 upstream d3110f256d12 764067f3 .config console log report ci-qemu-upstream upstream boot error: WARNING in kvm_wait
2021/03/10 18:37 upstream d3110f256d12 764067f3 .config console log report ci-qemu-upstream upstream boot error: WARNING in kvm_wait
2021/03/10 15:39 upstream 05a59d79793d 764067f3 .config console log report ci-qemu-upstream upstream boot error: WARNING in kvm_wait
2021/03/10 13:36 upstream 05a59d79793d 26967e35 .config console log report ci-upstream-kasan-gce upstream boot error: WARNING in kvm_wait
2021/03/10 01:55 upstream 05a59d79793d 26967e35 .config console log report ci-qemu-upstream upstream boot error: WARNING in kvm_wait
2021/03/09 19:28 upstream 144c79ef3353 26967e35 .config console log report ci-upstream-kasan-gce-smack-root upstream boot error: WARNING in kvm_wait
2021/03/09 16:28 upstream 144c79ef3353 26967e35 .config console log report ci-qemu-upstream upstream boot error: WARNING in kvm_wait
2021/03/08 01:09 upstream 144c79ef3353 75506d9c .config console log report ci-upstream-kasan-gce upstream boot error: WARNING in kvm_wait
2021/03/07 23:46 upstream 3bb48a850627 75506d9c .config console log report ci-upstream-kasan-gce upstream boot error: WARNING in kvm_wait
2021/03/07 22:10 upstream 3bb48a850627 09fbf400 .config console log report ci-qemu-upstream upstream boot error: WARNING in kvm_wait
2021/03/07 22:10 upstream 3bb48a850627 09fbf400 .config console log report ci-qemu-upstream upstream boot error: WARNING in kvm_wait
2021/03/05 20:54 upstream 280d542f6ffa e4b4d570 .config console log report ci-qemu-upstream upstream boot error: WARNING in kvm_wait
2021/03/19 16:11 upstream 8b12a62a4e3e 3d01c4de .config console log report ci-qemu-upstream-386 upstream boot error: WARNING in kvm_wait
2021/03/19 16:11 upstream 8b12a62a4e3e 3d01c4de .config console log report ci-qemu-upstream-386 upstream boot error: WARNING in kvm_wait
2021/03/19 14:38 upstream 8b12a62a4e3e 2af9d324 .config console log report ci-upstream-kasan-gce-386 upstream boot error: WARNING in kvm_wait
2021/03/19 00:01 upstream 81aa0968b7ea 7216542e .config console log report ci-upstream-kasan-gce-386 upstream boot error: WARNING in kvm_wait
2021/03/18 08:41 upstream 6417f03132a6 7216542e .config console log report ci-upstream-kasan-gce-386 upstream boot error: WARNING in kvm_wait
2021/03/15 10:27 upstream 1e28eed17697 cc1cff8f .config console log report ci-upstream-kasan-gce-386 upstream boot error: WARNING in kvm_wait
2021/03/14 21:02 upstream 75013c6c52d8 cc1cff8f .config console log report ci-qemu-upstream-386 upstream boot error: WARNING in kvm_wait
2021/03/13 21:42 upstream 88fe49249c99 4a003785 .config console log report ci-qemu-upstream-386 upstream boot error: WARNING in kvm_wait
2021/03/13 03:15 upstream f296bfd5cd04 429d8a6b .config console log report ci-upstream-kasan-gce-386 upstream boot error: WARNING in kvm_wait
2021/03/12 22:54 upstream 9afc11637947 429d8a6b .config console log report ci-qemu-upstream-386 upstream boot error: WARNING in kvm_wait
2021/03/12 20:35 upstream 344178334b09 429d8a6b .config console log report ci-qemu-upstream-386 upstream boot error: WARNING in kvm_wait
2021/03/12 13:43 upstream f78d76e72a46 429d8a6b .config console log report ci-upstream-kasan-gce-386 upstream boot error: WARNING in kvm_wait
2021/03/12 02:39 upstream f78d76e72a46 429d8a6b .config console log report ci-qemu-upstream-386 upstream boot error: WARNING in kvm_wait
2021/03/11 20:52 upstream 28806e4d9b97 c2ca1f2a .config console log report ci-upstream-kasan-gce-386 upstream boot error: WARNING in kvm_wait
2021/03/11 04:02 upstream a74e6a014c9d c2ca1f2a .config console log report ci-qemu-upstream-386 upstream boot error: WARNING in kvm_wait
2021/03/10 21:57 upstream a74e6a014c9d 764067f3 .config console log report ci-qemu-upstream-386 upstream boot error: WARNING in kvm_wait
2021/03/10 19:40 upstream 9b1ea29bc0d7 764067f3 .config console log report ci-qemu-upstream-386 upstream boot error: WARNING in kvm_wait
2021/03/09 20:36 upstream 4b3d9f9cf108 26967e35 .config console log report ci-qemu-upstream-386 upstream boot error: WARNING in kvm_wait
2021/03/09 20:36 upstream 4b3d9f9cf108 26967e35 .config console log report ci-qemu-upstream-386 upstream boot error: WARNING in kvm_wait
2021/03/05 20:38 upstream 280d542f6ffa e4b4d570 .config console log report ci-qemu-upstream-386 upstream boot error: WARNING in kvm_wait
* Struck through repros no longer work on HEAD.