syzbot


WARNING in handle_mm_fault

Status: fixed on 2021/11/10 00:50
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+7d7013084f0a806f3786@syzkaller.appspotmail.com
Fix commit: f4e61f0c9add x86/kvm: Fix broken irq restoration in kvm_wait
First crash: 1145d, last: 1137d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] WARNING in handle_mm_fault 2 (3) 2021/03/12 06:36

Sample crash report:
------------[ cut here ]------------
raw_local_irq_restore() called with IRQs enabled
WARNING: CPU: 1 PID: 8393 at kernel/locking/irqflag-debug.c:10 warn_bogus_irq_restore+0x1d/0x20 kernel/locking/irqflag-debug.c:10
Modules linked in:
CPU: 1 PID: 8393 Comm: syz-fuzzer 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 22 ca ab 04 00 74 01 c3 48 c7 c7 60 79 6b 89 c6 05 11 ca ab 04 01 e8 81 bc 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:ffffc90001a7fac8 EFLAGS: 00010282
RAX: 0000000000000000 RBX: ffff888019ada180 RCX: 0000000000000000
RDX: ffff8880243ae300 RSI: ffffffff815b4085 RDI: fffff5200034ff4b
RBP: 0000000000000200 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff815acdee R11: 0000000000000000 R12: 0000000000000003
FS:  000000000182b290(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c0002a37b0 CR3: 0000000012a41000 CR4: 00000000001506e0
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 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
 handle_mm_fault+0x1bc/0x7e0 mm/memory.c:4551
 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:0x59072c
Code: 48 8d 05 97 25 3e 00 48 89 44 24 08 e8 6d 54 ea ff 90 e8 07 a1 ed ff eb a5 cc cc cc cc cc 8b 44 24 10 48 8b 4c 24 08 89 41 24 <c3> cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc 48 8b
RSP: 002b:000000c0002a37b0 EFLAGS: 00010246
RAX: 00000000000017d6 RBX: 00000000000017d6 RCX: 0000000000fb4000
RBP: 000000c0002a3890 R08: 00000000000017d5 R09: 000000000059d6a0
R10: 000000c00011c000 R11: 0000000000000020 R12: 00000000000000fa

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/03/15 20:46 upstream 1e28eed17697 fdb2bb2c .config console log report ci-upstream-kasan-gce-selinux-root WARNING in handle_mm_fault
2021/03/14 19:42 upstream 88fe49249c99 cc1cff8f .config console log report ci-upstream-kasan-gce-selinux-root WARNING in handle_mm_fault
2021/03/14 18:23 upstream 88fe49249c99 4a003785 .config console log report ci-upstream-kasan-gce-selinux-root WARNING in handle_mm_fault
2021/03/11 11:12 upstream 05a59d79793d c2ca1f2a .config console log report ci-upstream-kasan-gce-selinux-root WARNING in handle_mm_fault
2021/03/08 00:35 upstream 144c79ef3353 75506d9c .config console log report ci-upstream-kasan-gce-selinux-root WARNING in handle_mm_fault
* Struck through repros no longer work on HEAD.