syzbot


netbsd boot error: panic: LOCKDEBUG: Mutex error: _mutex_init,363: already initialized

Status: fixed on 2020/02/20 23:05
Reported-by: syzbot+5a77339dc0a55e8d8caa@syzkaller.appspotmail.com
Fix commit: dc1bd2c9382b Fix LOCKDEBUG panic on mutex_init().
First crash: 1801d, last: 1800d

Sample crash report:
[   1.0000000] panic: LOCKDEBUG: Mutex error: _mutex_init,363: already initialized
[   1.0000000] cpu0: Begin traceback...
[   1.0000000] vpanic() at netbsd:vpanic+0x241 sys/kern/subr_prf.c:336
[   1.0000000] snprintf() at netbsd:snprintf
[   1.0000000] lockdebug_more() at netbsd:lockdebug_more
[   1.0000000] lockdebug_alloc() at netbsd:lockdebug_alloc+0x117 sys/kern/subr_lockdebug.c:265
[   1.0000000] _mutex_init() at netbsd:_mutex_init+0x7f _mutex_init sys/kern/kern_mutex.c:363 [inline]
[   1.0000000] _mutex_init() at netbsd:_mutex_init+0x7f sys/kern/kern_mutex.c:345
[   1.0000000] sleeptab_init() at netbsd:sleeptab_init+0x36 sleepq_init sys/kern/kern_sleepq.c:96 [inline]
[   1.0000000] sleeptab_init() at netbsd:sleeptab_init+0x36 sys/kern/kern_sleepq.c:83
[   1.0000000] main() at netbsd:main+0x236 sys/kern/init_main.c:433
[   1.0000000] cpu0: End traceback...
[   1.0000000] fatal breakpoint trap in supervisor mode
[   1.0000000] trap type 1 code 0 rip 0xffffffff8021ccb5 cs 0x8 rflags 0x202 cr2 0 ilevel 0x8 rsp 0xffffffff8325fba0
[   1.0000000] curlwp 0xffffffff82b63420 pid 0.1 lowest kstack 0xffffffff832582c0
Stopped in pid 0.1 (system) at  netbsd:breakpoint+0x5:  leave
db{0}> 

Crashes (51):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/12/17 19:43 netbsd 0ae27eaeb947 1af3875f .config console log report ci2-netbsd
2019/12/17 14:48 netbsd b222bab78ac2 1af3875f .config console log report ci2-netbsd
2019/12/17 14:48 netbsd b222bab78ac2 1af3875f .config console log report ci2-netbsd
2019/12/17 14:27 netbsd a798096f4110 d13d7958 .config console log report ci2-netbsd-kubsan
2019/12/17 14:27 netbsd a798096f4110 d13d7958 .config console log report ci2-netbsd-kubsan
2019/12/17 14:27 netbsd a798096f4110 d13d7958 .config console log report ci2-netbsd-kubsan
2019/12/17 13:53 netbsd a798096f4110 d13d7958 .config console log report ci2-netbsd
2019/12/17 13:53 netbsd a798096f4110 d13d7958 .config console log report ci2-netbsd
2019/12/17 13:53 netbsd a798096f4110 d13d7958 .config console log report ci2-netbsd
2019/12/17 09:06 netbsd 364bad0077b8 d13d7958 .config console log report ci2-netbsd
2019/12/17 09:06 netbsd 364bad0077b8 d13d7958 .config console log report ci2-netbsd
2019/12/17 09:06 netbsd 364bad0077b8 d13d7958 .config console log report ci2-netbsd
2019/12/17 08:49 netbsd 364bad0077b8 d13d7958 .config console log report ci2-netbsd-kubsan
2019/12/17 08:49 netbsd 364bad0077b8 d13d7958 .config console log report ci2-netbsd-kubsan
2019/12/17 08:49 netbsd 364bad0077b8 d13d7958 .config console log report ci2-netbsd-kubsan
2019/12/17 08:09 netbsd 890f1f3d6032 d13d7958 .config console log report ci2-netbsd-kubsan
2019/12/17 08:09 netbsd 890f1f3d6032 d13d7958 .config console log report ci2-netbsd-kubsan
2019/12/17 08:09 netbsd 890f1f3d6032 d13d7958 .config console log report ci2-netbsd-kubsan
2019/12/17 07:52 netbsd 890f1f3d6032 d13d7958 .config console log report ci2-netbsd
2019/12/17 07:52 netbsd 890f1f3d6032 d13d7958 .config console log report ci2-netbsd
2019/12/17 07:52 netbsd 890f1f3d6032 d13d7958 .config console log report ci2-netbsd
2019/12/17 07:19 netbsd 139ecbd84e16 d13d7958 .config console log report ci2-netbsd-kubsan
2019/12/17 07:19 netbsd 139ecbd84e16 d13d7958 .config console log report ci2-netbsd-kubsan
2019/12/17 07:19 netbsd 139ecbd84e16 d13d7958 .config console log report ci2-netbsd-kubsan
2019/12/17 07:02 netbsd c104d79654f6 d13d7958 .config console log report ci2-netbsd
2019/12/17 07:02 netbsd c104d79654f6 d13d7958 .config console log report ci2-netbsd
2019/12/17 07:02 netbsd c104d79654f6 d13d7958 .config console log report ci2-netbsd
2019/12/17 06:28 netbsd c104d79654f6 d13d7958 .config console log report ci2-netbsd-kubsan
2019/12/17 06:28 netbsd c104d79654f6 d13d7958 .config console log report ci2-netbsd-kubsan
2019/12/17 06:28 netbsd c104d79654f6 d13d7958 .config console log report ci2-netbsd-kubsan
2019/12/17 02:20 netbsd 4f328900f1b3 d13d7958 .config console log report ci2-netbsd
2019/12/17 02:20 netbsd 4f328900f1b3 d13d7958 .config console log report ci2-netbsd
2019/12/17 02:20 netbsd 4f328900f1b3 d13d7958 .config console log report ci2-netbsd
2019/12/17 02:03 netbsd 4f328900f1b3 d13d7958 .config console log report ci2-netbsd-kubsan
2019/12/17 02:03 netbsd 4f328900f1b3 d13d7958 .config console log report ci2-netbsd-kubsan
2019/12/17 02:03 netbsd 4f328900f1b3 d13d7958 .config console log report ci2-netbsd-kubsan
2019/12/17 01:27 netbsd 4941a3c9702e d13d7958 .config console log report ci2-netbsd
2019/12/17 01:27 netbsd 4941a3c9702e d13d7958 .config console log report ci2-netbsd
2019/12/17 01:27 netbsd 4941a3c9702e d13d7958 .config console log report ci2-netbsd
2019/12/17 01:09 netbsd 4941a3c9702e d13d7958 .config console log report ci2-netbsd-kubsan
2019/12/17 01:09 netbsd 4941a3c9702e d13d7958 .config console log report ci2-netbsd-kubsan
2019/12/17 01:09 netbsd 4941a3c9702e d13d7958 .config console log report ci2-netbsd-kubsan
* Struck through repros no longer work on HEAD.