syzbot


upstream test error: WARNING in kvm_wait

Status: fixed on 2021/11/10 00:50
Reported-by: syzbot+@syzkaller.appspotmail.com
Fix commit: f4e61f0c9add x86/kvm: Fix broken irq restoration in kvm_wait
First crash: 561d, last: 559d

Sample crash report:
------------[ cut here ]------------
raw_local_irq_restore() called with IRQs enabled
WARNING: CPU: 0 PID: 8378 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: 8378 Comm: syz-fuzzer Not tainted 5.12.0-rc2-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 5c 28 ac 04 00 74 01 c3 48 c7 c7 e0 8f 6b 89 c6 05 4b 28 ac 04 01 e8 0d d2 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: 0000:ffffc90001aefac8 EFLAGS: 00010282
RAX: 0000000000000000 RBX: ffff8880185e7de0 RCX: 0000000000000000
RDX: ffff88801bff1bc0 RSI: ffffffff815c0d65 RDI: fffff5200035df4b
RBP: 0000000000000200 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff815b9afe R11: 0000000000000000 R12: 0000000000000003
R13: ffffed10030bcfbc R14: 0000000000000001 R15: ffff8880b9c35f40
FS:  000000c00002e090(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c00003df28 CR3: 000000001472b000 CR4: 0000000000350ef0
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]
 pmd_lock include/linux/mm.h:2264 [inline]
 huge_pmd_set_accessed+0x103/0x320 mm/huge_memory.c:1265
 __handle_mm_fault+0xeeb/0x4f70 mm/memory.c:4445
 handle_mm_fault+0x1bc/0x7e0 mm/memory.c:4549
 do_user_addr_fault+0x483/0x1210 arch/x86/mm/fault.c:1390
 handle_page_fault arch/x86/mm/fault.c:1475 [inline]
 exc_page_fault+0x9e/0x180 arch/x86/mm/fault.c:1531
 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:577
RIP: 0033:0x46dabd
Code: 8b 44 24 20 b9 40 42 0f 00 f7 f1 48 89 04 24 b8 e8 03 00 00 f7 e2 48 89 44 24 08 48 89 e7 be 00 00 00 00 b8 23 00 00 00 0f 05 <48> 8b 6c 24 10 48 83 c4 18 c3 cc cc cc cc cc cc cc cc cc cc cc cc
RSP: 002b:000000c00003df18 EFLAGS: 00010212
RAX: 0000000000000000 RBX: 0000000000000014 RCX: 000000000046dabd
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000000c00003df18
RBP: 000000c00003df28 R08: 00000000000005d0 R09: 00007ffc231be090
R10: 0000000000002a82 R11: 0000000000000212 R12: 000000000043b6a0
R13: 0000000000000000 R14: 000000000093f280 R15: 0000000000000000

Crashes (2):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2021/03/13 21:23 upstream 88fe49249c99 4a003785 .config log report upstream test error: WARNING in kvm_wait
ci-upstream-kasan-gce-root 2021/03/12 11:38 upstream f78d76e72a46 429d8a6b .config log report upstream test error: WARNING in kvm_wait
* Struck through repros no longer work on HEAD.