panic: Thread 0xffff800020bba270 cannot exit while holding sleeplocks Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 241982 98232 73 0x100010 0 1K syslogd * 1289 91931 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(be5f8c284177c559) 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 0xffff800020bba270 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(be5f8c284177c559) 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 0xffff800020b67750 rbx 0xffff800020b677f0 rdx 0xffffffff81f2d2e3 cy_pio_rec+0x596 rcx 0 rax 0 r8 0xffffffff8137ad24 kprintf+0x174 r9 0x1 r10 0x2e29fb14df7b7d2a r11 0x9a270d530cebe4bc r12 0x3000000008 r13 0xffff800020b67760 r14 0x100 r15 0x1 rip 0xffffffff81643508 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b67740 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (reaper) pid=1289 stat=onproc flags process=14000 proc=200 pri=4, usrpri=52, nice=20 forw=0xffffffffffffffff, list=0xffff800020b21770,0xffff800020b21c30 process=0xffff800020b5a698 user=0xffff800020b62000, vmspace=0xffffffff823022e8 estcpu=2, cpticks=8, pctcpu=0.41 user=0, sys=2, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 39903 68105 87285 0 2 0 syz-executor1 39903 401328 87285 0 2 0x4000000 syz-executor1 82747 307912 1 0 3 0x100083 ttyin getty 23039 174356 0 0 3 0x14200 bored sosplice 87285 450004 22760 0 3 0x82 nanosleep syz-executor1 75070 521185 22760 0 2 0x482 syz-executor0 22760 509154 61652 0 3 0x82 thrsleep syz-fuzzer 22760 358849 61652 0 2 0x4000482 syz-fuzzer 22760 407691 61652 0 3 0x4000082 thrsleep syz-fuzzer 22760 67918 61652 0 3 0x4000082 thrsleep syz-fuzzer 22760 19191 61652 0 3 0x4000082 kqread syz-fuzzer 22760 49936 61652 0 3 0x4000082 thrsleep syz-fuzzer 22760 427907 61652 0 3 0x4000082 thrsleep syz-fuzzer 22760 229501 61652 0 3 0x4000082 thrsleep syz-fuzzer 22760 378802 61652 0 3 0x4000082 thrsleep syz-fuzzer 22760 513375 61652 0 3 0x4000082 thrsleep syz-fuzzer 61652 524067 45428 0 3 0x10008a pause ksh 45428 64258 86544 0 3 0x92 select sshd 86544 93133 1 0 3 0x80 select sshd 98232 241982 80913 73 7 0x100010 syslogd 80913 291090 1 0 3 0x100082 netio syslogd 89355 40824 1 77 3 0x100090 poll dhclient 25059 338555 1 0 3 0x80 poll dhclient 31217 111170 0 0 2 0x14200 zerothread 79321 353403 0 0 3 0x14200 aiodoned aiodoned 37906 386266 0 0 3 0x14200 syncer update 58135 311957 0 0 3 0x14200 cleaner cleaner *91931 1289 0 0 7 0x14200 reaper 99352 5275 0 0 3 0x14200 pgdaemon pagedaemon 25525 99254 0 0 3 0x14200 bored crynlk 57769 192127 0 0 3 0x14200 bored crypto 27373 454749 0 0 3 0x40014200 acpi0 acpi0 32605 344296 0 0 3 0x40014200 idle1 18583 479397 0 0 3 0x14200 bored softnet 81319 313226 0 0 3 0x14200 bored systqmp 5859 208359 0 0 3 0x14200 bored systq 31035 393018 0 0 2 0x40014200 softclock 74115 123655 0 0 3 0x40014200 idle0 1 125985 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper