panic: Thread 0xffff800020b93530 cannot exit while holding sleeplocks Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 67527 78469 73 0x100010 0 1K syslogd * 66584 54573 0 0x14000 0x200 0 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(fcbaeebc7f06eca9) 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{0}> ddb{0}> set $lines = 0 ddb{0}> show panic Thread 0xffff800020b93530 cannot exit while holding sleeplocks ddb{0}> 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(fcbaeebc7f06eca9) 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{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020b67a10 rbx 0xffff800020b67ab0 rdx 0xffffffff81ec3ef0 cmd0646_9_tim_udma+0x1592a rcx 0x201 rax 0x1 r8 0xffffffff815d9fe4 kprintf+0x174 r9 0x1 r10 0x6addbeae6c3982c1 r11 0x62af7e3a24f7d4ed r12 0x3000000008 r13 0xffff800020b67a20 r14 0x100 r15 0x1 rip 0xffffffff81391848 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b67a00 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (reaper) pid=66584 stat=onproc flags process=14000 proc=200 pri=4, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff800020b21068,0xffff800020b21c30 process=0xffff800020b5b3b8 user=0xffff800020b62000, vmspace=0xffffffff822de998 estcpu=1, cpticks=5, pctcpu=0.7 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 51976 51499 40316 32767 2 0x490 syz-executor1 30302 272161 42630 32767 2 0x10 syz-executor0 40316 84095 68644 0 3 0x82 wait syz-executor1 42630 476156 68644 0 3 0x82 wait syz-executor0 68644 358208 94498 0 3 0x82 kqread syz-execprog 68644 390722 94498 0 3 0x4000082 nanosleep syz-execprog 68644 358482 94498 0 3 0x4000082 thrsleep syz-execprog 68644 260460 94498 0 3 0x4000082 thrsleep syz-execprog 68644 217655 94498 0 3 0x4000082 thrsleep syz-execprog 68644 159743 94498 0 3 0x4000082 thrsleep syz-execprog 68644 195235 94498 0 3 0x4000082 thrsleep syz-execprog 68644 284901 94498 0 3 0x4000082 thrsleep syz-execprog 68644 121646 94498 0 3 0x4000082 thrsleep syz-execprog 94498 90456 55620 0 3 0x10008a pause ksh 55620 229934 58991 0 3 0x92 select sshd 36117 4924 1 0 3 0x100083 ttyin getty 58991 111659 1 0 3 0x80 select sshd 78469 67527 52154 73 7 0x100010 syslogd 52154 504027 1 0 3 0x100082 netio syslogd 18244 79099 1 77 3 0x100090 poll dhclient 70396 192926 1 0 3 0x80 poll dhclient 91893 173734 0 0 3 0x14200 pgzero zerothread 3476 144981 0 0 3 0x14200 aiodoned aiodoned 74357 306618 0 0 3 0x14200 syncer update 77322 133059 0 0 3 0x14200 cleaner cleaner *54573 66584 0 0 7 0x14200 reaper 24755 68888 0 0 3 0x14200 pgdaemon pagedaemon 71402 110253 0 0 3 0x14200 bored crynlk 73269 247448 0 0 3 0x14200 bored crypto 60057 5919 0 0 3 0x40014200 acpi0 acpi0 45134 511673 0 0 3 0x40014200 idle1 35191 67846 0 0 3 0x14200 bored softnet 70998 295941 0 0 3 0x14200 bored systqmp 66436 405918 0 0 3 0x14200 bored systq 51670 367466 0 0 3 0x40014200 bored softclock 45328 193767 0 0 3 0x40014200 idle0 1 452155 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}>