panic: Thread 0xffff800020b93788 cannot exit while holding sleeplocks Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 240543 1814 73 0x100010 0 0 syslogd *262395 32499 0 0x14000 0x200 1 reaper db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:399 panic() at panic+0x16c sys/kern/subr_prf.c:208 witness_thread_exit(6e3eb9c0a70aa0cb) at witness_thread_exit+0x244 sys/kern/subr_witness.c:1377 reaper(0) 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}> show panic Thread 0xffff800020b93788 cannot exit while holding sleeplocks ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:399 panic() at panic+0x16c sys/kern/subr_prf.c:208 witness_thread_exit(6e3eb9c0a70aa0cb) at witness_thread_exit+0x244 sys/kern/subr_witness.c:1377 reaper(0) at reaper+0x14f sys/kern/kern_exit.c:412 end trace frame: 0x0, count: -4 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020b67750 rbx 0xffff800020b677f0 rdx 0xffffffff81ec3ef0 cmd0646_9_tim_udma+0x1592a rcx 0 rax 0 r8 0xffffffff815d9fe4 kprintf+0x174 r9 0x1 r10 0xeb7972ebb3616545 r11 0xcdbe266455312fc2 r12 0x3000000008 r13 0xffff800020b67760 r14 0x100 r15 0x1 rip 0xffffffff81391848 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b67740 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (reaper) pid=262395 stat=onproc flags process=14000 proc=200 pri=4, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff800020b21770,0xffff800020b21c30 process=0xffff800020b5b070 user=0xffff800020b62000, vmspace=0xffffffff822de998 estcpu=1, cpticks=3, pctcpu=0.35 user=0, sys=3, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 21881 46105 73998 32767 3 0x3010 suspend syz-executor0 21881 508154 73998 32767 3 0x4081010 inode syz-executor0 73998 191420 14444 32767 3 0x90 nanosleep syz-executor0 14444 484471 59780 0 3 0x82 wait syz-executor0 98091 406909 0 0 3 0x14200 bored sosplice 59780 230351 94393 0 3 0x82 thrsleep syz-fuzzer 59780 71755 94393 0 3 0x4000082 thrsleep syz-fuzzer 59780 184130 94393 0 3 0x4000082 thrsleep syz-fuzzer 59780 19744 94393 0 3 0x4000082 thrsleep syz-fuzzer 59780 434870 94393 0 3 0x4000082 thrsleep syz-fuzzer 59780 497472 94393 0 3 0x4000082 thrsleep syz-fuzzer 59780 92245 94393 0 3 0x4000082 thrsleep syz-fuzzer 59780 412671 94393 0 3 0x4000082 thrsleep syz-fuzzer 59780 288333 94393 0 3 0x4000082 kqread syz-fuzzer 59780 145242 94393 0 3 0x4000082 thrsleep syz-fuzzer 94393 294252 16276 0 3 0x10008a pause ksh 16276 317412 36568 0 3 0x92 select sshd 8926 306460 1 0 3 0x100083 ttyin getty 36568 392626 1 0 3 0x80 select sshd 1814 240543 20073 73 7 0x100010 syslogd 20073 457363 1 0 3 0x100082 netio syslogd 88169 434013 1 77 3 0x100090 poll dhclient 31615 237504 1 0 3 0x80 poll dhclient 64718 164117 0 0 3 0x14200 pgzero zerothread 1352 479847 0 0 3 0x14200 aiodoned aiodoned 42554 436388 0 0 3 0x14200 syncer update 12436 13699 0 0 3 0x14200 cleaner cleaner *32499 262395 0 0 7 0x14200 reaper 44191 345719 0 0 3 0x14200 pgdaemon pagedaemon 74431 256160 0 0 3 0x14200 bored crynlk 43409 2629 0 0 3 0x14200 bored crypto 37189 226599 0 0 3 0x40014200 acpi0 acpi0 26392 21561 0 0 3 0x40014200 idle1 36244 271336 0 0 3 0x14200 bored softnet 65190 236845 0 0 3 0x14200 bored systqmp 61394 441043 0 0 3 0x14200 bored systq 73147 43560 0 0 3 0x40014200 bored softclock 85154 98027 0 0 3 0x40014200 idle0 1 126282 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper