syzbot


netbsd boot error: assert failed: locks == curcpu()->ci_biglock_count

Status: fixed on 2022/04/19 15:06
Reported-by: syzbot+b8fe835e0a77bf073114@syzkaller.appspotmail.com
Fix commit: a2bbd8e60824 Revert "kern: Sprinkle biglock-slippage assertions."
First crash: 967d, last: 967d

Sample crash report:
[   2.5405951] panic: kernel diagnostic assertion "locks == curcpu()->ci_biglock_count" failed: file "/syzkaller/managers/ci2-netbsd-kmsan/kernel/sys/kern/kern_timeout.c", line 789 callout 0xffffffff86790da8 func 0xffffffff83e04dd0 slipped 2->0 biglocks
[   2.5677048] cpu0: Begin traceback...
[   2.5805920] vpanic() at netbsd:vpanic+0x9ec
[   2.6005924] kern_assert() at netbsd:kern_assert+0x228
[   2.6305904] callout_softclock() at netbsd:callout_softclock+0x14b4 sys/kern/kern_timeout.c:787
[   2.6605938] softint_dispatch() at netbsd:softint_dispatch+0x7f4 x86_curcpu sys/arch/amd64/compile/obj/GENERIC_SYZKALLER/./machine/cpu.h:56 [inline]
[   2.6605938] softint_dispatch() at netbsd:softint_dispatch+0x7f4 softint_execute sys/kern/kern_softint.c:577 [inline]
[   2.6605938] softint_dispatch() at netbsd:softint_dispatch+0x7f4 sys/kern/kern_softint.c:822
address 0xffff8f806ed820b8 is invalid
address 0xffff8f806ed820b0 is invalid
address 0xffff8f806ed820c0 is invalid
address 0xffff8f806ed820b8 is invalid
address 0xffff8f806ed820c8 is invalid
address 0xffff8f806ed820c0 is invalid
address 0xffff8f806ed820d0 is invalid
address 0xffff8f806ed820c8 is invalid
[   2.7106451] DDB lost frame for netbsd:Xsoftintr+0x5a, trying 0xffff8f806ed81ff0
[   2.7305928] Xsoftintr() at netbsd:Xsoftintr+0x5a
[   2.7405901] --- interrupt ---
address 0xffff8f806ed820c8 is invalid
address 0xffff8f806ed82080 is invalid
[   2.7506571] 66d2fd0852f5783:
[   2.7629262] cpu0: End traceback...
[   2.7629262] fatal breakpoint trap in supervisor mode
[   2.7717665] trap type 1 code 0 rip 0xffffffff8022288d cs 0x8 rflags 0x286 cr2 0 ilevel 0x2 rsp 0xffff8f806ed81b60
[   2.7819790] curlwp 0xffff8f800ebdb080 pid 0.5 lowest kstack 0xffff8f806ed7a2c0
Stopped in pid 0.5 (system) at  netbsd:breakpoint+0x5:  leave
breakpoint() at netbsd:breakpoint+0x5
vpanic() at netbsd:vpanic+0x9ec
kern_assert() at netbsd:kern_assert+0x228
callout_softclock() at netbsd:callout_softclock+0x14b4 sys/kern/kern_timeout.c:787
softint_dispatch() at netbsd:softint_dispatch+0x7f4 x86_curcpu sys/arch/amd64/compile/obj/GENERIC_SYZKALLER/./machine/cpu.h:56 [inline]
softint_dispatch() at netbsd:softint_dispatch+0x7f4 softint_execute sys/kern/kern_softint.c:577 [inline]
softint_dispatch() at netbsd:softint_dispatch+0x7f4 sys/kern/kern_softint.c:822
address 0xffff8f806ed820b8 is invalid
address 0xffff8f806ed820b0 is invalid
address 0xffff8f806ed820c0 is invalid
address 0xffff8f806ed820b8 is invalid
address 0xffff8f806ed820c8 is invalid
address 0xffff8f806ed820c0 is invalid
address 0xffff8f806ed820d0 is invalid
--db_more--

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/03/30 16:36 netbsd ac5fbb6b877a 42718dd6 .config console log report ci2-netbsd-kmsan netbsd boot error: assert failed: locks == curcpu()->ci_biglock_count
2022/03/30 15:12 netbsd fc459c11c323 42718dd6 .config console log report ci2-netbsd-kubsan netbsd boot error: assert failed: locks == curcpu()->ci_biglock_count
* Struck through repros no longer work on HEAD.