Thread 0xffff8000panic: Thread 0xffff800020b93788 cannot exit while holding sleeplocks Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 119407 76762 73 0x100010 0x80 0 syslogd *298578 66682 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(c762c6b2351e9c24) 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(c762c6b2351e9c24) 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 0xffff800020b670b0 rbx 0xffff800020b67150 rdx 0xffffffff81f2ea76 apollo_pio_rec+0x9bcf rcx 0 rax 0 r8 0xffffffff810e4f24 kprintf+0x174 r9 0x1 r10 0xc190a35333a4142f r11 0xeccfaf7e7099d1fa r12 0x3000000008 r13 0xffff800020b670c0 r14 0x100 r15 0x1 rip 0xffffffff8171e6c8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b670a0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (reaper) pid=298578 stat=onproc flags process=14000 proc=200 pri=4, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff800020b21770,0xffff800020b21c30 process=0xffff800020b5b3b8 user=0xffff800020b62000, vmspace=0xffffffff822fd690 estcpu=1, cpticks=1, pctcpu=0.19 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 99983 240438 91122 0 2 0x480 syz-executor1 99983 465247 91122 0 3 0x4000080 select syz-executor1 99983 481496 91122 0 3 0x4000080 fsleep syz-executor1 27953 332020 1 0 3 0x100083 ttyin getty 72010 483795 34729 0 3 0x82 nanosleep syz-executor0 35957 322363 0 0 3 0x14200 bored sosplice 91122 259669 34729 0 2 0x482 syz-executor1 34729 145117 98720 0 3 0x82 thrsleep syz-fuzzer 34729 138261 98720 0 3 0x4000082 thrsleep syz-fuzzer 34729 368529 98720 0 3 0x4000082 thrsleep syz-fuzzer 34729 280574 98720 0 3 0x4000082 kqread syz-fuzzer 34729 462834 98720 0 3 0x4000082 thrsleep syz-fuzzer 34729 301944 98720 0 3 0x4000082 thrsleep syz-fuzzer 34729 7080 98720 0 3 0x4000082 thrsleep syz-fuzzer 34729 131982 98720 0 3 0x4000082 thrsleep syz-fuzzer 34729 486800 98720 0 3 0x4000082 thrsleep syz-fuzzer 34729 29182 98720 0 3 0x4000082 thrsleep syz-fuzzer 34729 469137 98720 0 3 0x4000082 thrsleep syz-fuzzer 34729 237035 98720 0 3 0x4000082 thrsleep syz-fuzzer 98720 175706 7050 0 3 0x10008a pause ksh 7050 259265 17771 0 3 0x92 select sshd 17771 329795 1 0 3 0x80 select sshd 76762 119407 24863 73 7 0x100090 syslogd 24863 61898 1 0 3 0x100082 netio syslogd 75284 29586 1 77 3 0x100090 poll dhclient 52662 374855 1 0 3 0x80 poll dhclient 22387 467506 0 0 3 0x14200 pgzero zerothread 61789 492109 0 0 3 0x14200 aiodoned aiodoned 1418 18354 0 0 3 0x14200 syncer update 92250 389038 0 0 3 0x14200 cleaner cleaner *66682 298578 0 0 7 0x14200 reaper 6655 384682 0 0 3 0x14200 pgdaemon pagedaemon 56083 293001 0 0 3 0x14200 bored crynlk 11264 431410 0 0 3 0x14200 bored crypto 73270 206824 0 0 3 0x40014200 acpi0 acpi0 54657 33977 0 0 3 0x40014200 idle1 80392 337196 0 0 3 0x14200 bored softnet 71797 235846 0 0 3 0x14200 bored systqmp 16029 222526 0 0 3 0x14200 bored systq 35048 361783 0 0 3 0x40014200 bored softclock 874 124588 0 0 3 0x40014200 idle0 1 446869 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper