syzbot


witness: thread exiting with locks held

Status: closed as dup on 2019/02/21 21:47
Reported-by: syzbot+9938f8e87064d4a6b361@syzkaller.appspotmail.com
First crash: 1462d, last: 1252d
Duplicate of (1):
Title Repro Cause bisect Fix bisect Count Last Reported
witness: userret: returning with the following locks held: C 315 1252d 1462d
duplicates (2):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
panic: thread ADDR cannotW ARexNiIt NGw:h ilSPeL h oNlOTdi nLgO WsElReEepD lOoNck sSY 1 1459d 1459d 0/3 closed as dup on 2019/02/01 06:52
panic: thread ADDR cannot exit while holding sleeplocks syz 23 1291d 1463d 0/3 closed as dup on 2019/01/28 21:07
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
openbsd witness: thread exiting with locks held (2) 2 212d 212d 0/3 closed as dup on 2022/07/02 06:37

Sample crash report:
login: witness: thread 0xffff800020b399e0 exiting with the following locks held:
exclusive rrwlock inode r = 0 (0xfffffd806a587d58) locked @ /syzkaller/managers/multicore/kernel/sys/ufs/ufs/ufs_vnops.c:1547
#0  witness_lock+0x594 sys/kern/subr_witness.c:1205
#1  _rw_enter+0x45d sys/kern/kern_rwlock.c:280
#2  _rrw_enter+0x60 sys/kern/kern_rwlock.c:410
#3  VOP_LOCK+0x57 sys/kern/vfs_vops.c:602
#4  vn_write+0x169 vn_lock sys/kern/vfs_vnops.c:549 [inline]
#4  vn_write+0x169 sys/kern/vfs_vnops.c:393
#5  dofilewritev+0x1b0 sys/kern/sys_generic.c:364
#6  sys_write+0x92 sys/kern/sys_generic.c:284
#7  syscall+0x5b8 mi_syscall sys/sys/syscall_mi.h:99 [inline]
#7  syscall+0x5b8 sys/arch/amd64/amd64/trap.c:574
#8  Xsyscall+0x128
panic: thread 0xffff800020b399e0 cannot exit while holding sleeplocks
Stopped at      db_enter+0x18:  addq    $0x8,%rsp
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
*201819  83779      0     0x14000      0x200    1  reaper
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:399
panic() at panic+0x174 sys/kern/subr_prf.c:208
witness_thread_exit(ffff800020b399e0) at witness_thread_exit+0x283 sys/kern/subr_witness.c:1422
reaper(ffff800020ac1c20) at reaper+0x14f sys/kern/kern_exit.c:412
end trace frame: 0x0, count: 11
https://www.openbsd.org/ddb.html describes the minimum info required in bug
reports.  Insufficient info makes it difficult to find and fix bugs.
ddb{1}> 
ddb{1}> set $lines = 0
ddb{1}> set $maxwidth = 0
ddb{1}> 

Crashes (679):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-openbsd-multicore 2019/03/05 13:53 openbsd da8fceb276ba 3419571c .config console log report syz
ci-openbsd-multicore 2019/02/01 04:50 openbsd dc36d2c7c3b1 aa432daf .config console log report syz
ci-openbsd-setuid 2019/01/30 00:47 openbsd 906b732f9d92 aa432daf .config console log report syz
ci-openbsd-setuid 2019/01/29 21:54 openbsd 810597764d1f aa432daf .config console log report syz
ci-openbsd-multicore 2019/01/29 20:15 openbsd 810597764d1f aa432daf .config console log report syz
ci-openbsd-multicore 2019/01/29 18:37 openbsd 810597764d1f aa432daf .config console log report syz
ci-openbsd-multicore 2019/01/29 13:00 openbsd 810597764d1f aa432daf .config console log report syz
ci-openbsd-multicore 2019/01/29 11:04 openbsd 810597764d1f aa432daf .config console log report syz
ci-openbsd-setuid 2019/01/29 08:04 openbsd fabafa7b0c06 aa432daf .config console log report syz
ci-openbsd-setuid 2019/01/29 07:32 openbsd fabafa7b0c06 aa432daf .config console log report syz
ci-openbsd-setuid 2019/01/29 01:58 openbsd fabafa7b0c06 aa432daf .config console log report syz
ci-openbsd-multicore 2019/01/29 01:11 openbsd fabafa7b0c06 aa432daf .config console log report syz
ci-openbsd-setuid 2019/08/27 04:04 openbsd 4350d62ed76b d21c5d9d .config console log report
ci-openbsd-setuid 2019/08/26 08:23 openbsd 56a8f046bf24 d21c5d9d .config console log report
ci-openbsd-setuid 2019/08/25 23:34 openbsd 56a8f046bf24 d21c5d9d .config console log report
ci-openbsd-setuid 2019/08/25 15:48 openbsd a1d6d12691b4 d21c5d9d .config console log report
ci-openbsd-setuid 2019/08/25 12:10 openbsd a1d6d12691b4 d21c5d9d .config console log report
ci-openbsd-setuid 2019/08/23 03:51 openbsd 9f57e42b5520 ca6f3cfa .config console log report
ci-openbsd-setuid 2019/08/22 17:30 openbsd d4b297194575 c6c81a0b .config console log report
ci-openbsd-setuid 2019/08/17 02:36 openbsd 3f6f9f7d8362 8fd428a1 .config console log report
ci-openbsd-multicore 2019/08/16 23:04 openbsd 3f6f9f7d8362 8fd428a1 .config console log report
ci-openbsd-setuid 2019/08/16 16:14 openbsd bb94865e4f07 8fd428a1 .config console log report
ci-openbsd-setuid 2019/08/16 08:53 openbsd bb94865e4f07 8fd428a1 .config console log report
ci-openbsd-multicore 2019/08/15 14:09 openbsd f976af443d9f 0d298d6b .config console log report
ci-openbsd-multicore 2019/08/15 11:26 openbsd f976af443d9f 0d298d6b .config console log report
ci-openbsd-setuid 2019/08/15 09:22 openbsd f976af443d9f 0d298d6b .config console log report
ci-openbsd-multicore 2019/08/15 06:05 openbsd f976af443d9f 0d298d6b .config console log report
ci-openbsd-multicore 2019/08/15 05:18 openbsd f976af443d9f 0d298d6b .config console log report
ci-openbsd-multicore 2019/08/15 03:42 openbsd f976af443d9f 0d298d6b .config console log report
ci-openbsd-multicore 2019/08/14 22:59 openbsd e394331481e8 5576551b .config console log report
ci-openbsd-multicore 2019/08/14 21:42 openbsd e394331481e8 5576551b .config console log report
ci-openbsd-multicore 2019/08/14 20:37 openbsd e394331481e8 5576551b .config console log report
ci-openbsd-setuid 2019/08/14 19:34 openbsd e394331481e8 5576551b .config console log report
ci-openbsd-multicore 2019/08/14 18:28 openbsd e394331481e8 5576551b .config console log report
ci-openbsd-multicore 2019/08/14 14:18 openbsd e394331481e8 5576551b .config console log report
ci-openbsd-multicore 2019/08/14 13:03 openbsd e394331481e8 5576551b .config console log report
ci-openbsd-multicore 2019/08/14 11:28 openbsd 39cbba3c6e68 ef801a3e .config console log report
ci-openbsd-multicore 2019/08/14 10:15 openbsd 39cbba3c6e68 ef801a3e .config console log report
ci-openbsd-multicore 2019/08/14 09:25 openbsd 39cbba3c6e68 ef801a3e .config console log report
ci-openbsd-setuid 2019/08/14 07:48 openbsd 39cbba3c6e68 ef801a3e .config console log report
ci-openbsd-multicore 2019/08/14 06:44 openbsd 39cbba3c6e68 ef801a3e .config console log report
ci-openbsd-multicore 2019/08/14 05:39 openbsd 39cbba3c6e68 ef801a3e .config console log report
ci-openbsd-multicore 2019/08/14 03:24 openbsd 39cbba3c6e68 ef801a3e .config console log report
ci-openbsd-multicore 2019/08/14 00:07 openbsd 723403cbe800 74d61399 .config console log report
ci-openbsd-setuid 2019/08/13 22:14 openbsd eb0edb2d5fa6 74d61399 .config console log report
ci-openbsd-multicore 2019/08/13 20:59 openbsd 723403cbe800 74d61399 .config console log report
ci-openbsd-multicore 2019/08/13 18:59 openbsd 723403cbe800 74d61399 .config console log report
ci-openbsd-multicore 2019/08/13 17:58 openbsd 723403cbe800 74d61399 .config console log report
ci-openbsd-multicore 2019/08/13 14:13 openbsd 723403cbe800 74d61399 .config console log report
ci-openbsd-multicore 2019/08/13 12:37 openbsd 723403cbe800 74d61399 .config console log report
ci-openbsd-multicore 2019/08/13 11:11 openbsd 8c9a8c5f30e0 8620c2c2 .config console log report
ci-openbsd-multicore 2019/08/13 10:11 openbsd 8c9a8c5f30e0 8620c2c2 .config console log report
ci-openbsd-setuid 2019/08/13 08:41 openbsd 8c9a8c5f30e0 8620c2c2 .config console log report
ci-openbsd-multicore 2019/08/13 06:39 openbsd 8c9a8c5f30e0 8620c2c2 .config console log report
ci-openbsd-multicore 2019/08/12 21:30 openbsd 4e6b438a7e45 8620c2c2 .config console log report
ci-openbsd-multicore 2019/08/12 20:07 openbsd 4e6b438a7e45 8620c2c2 .config console log report
ci-openbsd-multicore 2019/08/12 18:48 openbsd 4e6b438a7e45 8620c2c2 .config console log report
ci-openbsd-multicore 2019/08/12 17:04 openbsd 4e6b438a7e45 8620c2c2 .config console log report
ci-openbsd-multicore 2019/08/12 14:22 openbsd 4e6b438a7e45 8620c2c2 .config console log report
ci-openbsd-multicore 2019/08/12 12:50 openbsd 4e6b438a7e45 8620c2c2 .config console log report
ci-openbsd-multicore 2019/08/12 11:44 openbsd 4e6b438a7e45 8620c2c2 .config console log report
ci-openbsd-multicore 2019/08/12 10:01 openbsd 4e6b438a7e45 8620c2c2 .config console log report
ci-openbsd-setuid 2019/08/11 13:58 openbsd 9db55ce60491 acb51638 .config console log report
ci-openbsd-multicore 2019/08/11 07:25 openbsd 9db55ce60491 acb51638 .config console log report
ci-openbsd-setuid 2019/08/10 06:06 openbsd 5a3e12c7b8cb acb51638 .config console log report
ci-openbsd-setuid 2019/08/10 04:00 openbsd 5a3e12c7b8cb acb51638 .config console log report
ci-openbsd-setuid 2019/08/09 19:49 openbsd e875c3a0682a aff9e255 .config console log report
ci-openbsd-multicore 2019/08/09 18:12 openbsd e875c3a0682a aff9e255 .config console log report
ci-openbsd-pf 2019/03/05 12:50 openbsd da8fceb276ba 3419571c .config console log report
ci-openbsd-setuid 2019/01/28 21:03 openbsd fabafa7b0c06 aa432daf .config console log report
* Struck through repros no longer work on HEAD.