panic: Thread 0xffff800020bbabd0 cannot exit while holding sleeplocks Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 420672 25191 73 0x100010 0 1K syslogd *339721 18553 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(cafa83ced286f1b4) 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 0xffff800020bbabd0 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(cafa83ced286f1b4) 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 0xffff800020b67c50 rbx 0xffff800020b67cf0 rdx 0xffffffff81f2ea76 apollo_pio_rec+0x9bcf rcx 0 rax 0 r8 0xffffffff810e4f24 kprintf+0x174 r9 0x1 r10 0xa602dec4aa5d9838 r11 0x6aa026b54271b9ef r12 0x3000000008 r13 0xffff800020b67c60 r14 0x100 r15 0x1 rip 0xffffffff8171e6c8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b67c40 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (reaper) pid=339721 stat=onproc flags process=14000 proc=200 pri=4, usrpri=53, nice=20 forw=0xffffffffffffffff, list=0xffff800020b20e10,0xffff800020b212d0 process=0xffff800020b5a350 user=0xffff800020b62000, vmspace=0xffffffff822fd690 estcpu=3, cpticks=0, pctcpu=0.46 user=0, sys=3, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 74480 326378 89754 0 2 0x482 syz-executor1 87831 175719 89754 0 3 0x82 piperd syz-executor0 49775 191065 0 0 3 0x14200 bored sosplice 89754 134945 23781 0 3 0x82 thrsleep syz-fuzzer 89754 334459 23781 0 3 0x4000082 thrsleep syz-fuzzer 89754 123220 23781 0 3 0x4000082 thrsleep syz-fuzzer 89754 153090 23781 0 3 0x4000082 thrsleep syz-fuzzer 89754 356920 23781 0 3 0x4000082 thrsleep syz-fuzzer 89754 37732 23781 0 3 0x4000082 thrsleep syz-fuzzer 89754 176541 23781 0 3 0x4000082 thrsleep syz-fuzzer 89754 499182 23781 0 3 0x4000082 thrsleep syz-fuzzer 89754 334063 23781 0 3 0x4000082 thrsleep syz-fuzzer 89754 259626 23781 0 3 0x4000082 kqread syz-fuzzer 23781 243832 5441 0 3 0x10008a pause ksh 5441 155421 48592 0 3 0x92 select sshd 59795 280519 1 0 3 0x100083 ttyin getty 48592 504231 1 0 3 0x80 select sshd 25191 420672 40991 73 7 0x100010 syslogd 40991 453168 1 0 3 0x100082 netio syslogd 51930 117002 1 77 3 0x100090 poll dhclient 5710 323438 1 0 3 0x80 poll dhclient 67266 355050 0 0 3 0x14200 pgzero zerothread 46216 128920 0 0 3 0x14200 aiodoned aiodoned 84557 483946 0 0 2 0x14200 update 64632 320156 0 0 3 0x14200 cleaner cleaner *18553 339721 0 0 7 0x14200 reaper 9929 503274 0 0 3 0x14200 pgdaemon pagedaemon 3757 166064 0 0 3 0x14200 bored crynlk 72514 409087 0 0 3 0x14200 bored crypto 83689 501556 0 0 3 0x40014200 acpi0 acpi0 41129 267087 0 0 3 0x40014200 idle1 58149 139647 0 0 3 0x14200 bored softnet 13482 438310 0 0 2 0x14200 systqmp 2616 298611 0 0 3 0x14200 bored systq 99628 151020 0 0 2 0x40014200 softclock 51598 382627 0 0 3 0x40014200 idle0 1 412282 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper