panic: Thread 0xffff800020b93080 cannot exit while holding sleeplocks Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 69215 99331 0 0x2 0 0 syz-executor0 * 58663 2186 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(ee4e6f3d29d30e79) 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 0xffff800020b93080 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(ee4e6f3d29d30e79) 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 0xffff800020b67a30 rbx 0xffff800020b67ad0 rdx 0xffffffff81f2ea76 apollo_pio_rec+0x9bcf rcx 0 rax 0 r8 0xffffffff810e4f24 kprintf+0x174 r9 0x1 r10 0x1955a3e446af923 r11 0xb270f0975c8ac042 r12 0x3000000008 r13 0xffff800020b67a40 r14 0x100 r15 0x1 rip 0xffffffff8171e6c8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b67a20 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (reaper) pid=58663 stat=onproc flags process=14000 proc=200 pri=4, usrpri=53, nice=20 forw=0xffffffffffffffff, list=0xffff800020b21068,0xffff800020b21780 process=0xffff800020b5a9e0 user=0xffff800020b62000, vmspace=0xffffffff822fd690 estcpu=3, cpticks=4, pctcpu=0.48 user=0, sys=3, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 41389 219334 1 0 3 0x100083 ttyin getty 41848 358242 0 0 3 0x14200 bored sosplice 3902 448271 20317 0 3 0x82 nanosleep syz-executor1 99331 69215 20317 0 7 0x2 syz-executor0 20317 249250 55837 0 3 0x82 thrsleep syz-fuzzer 20317 480045 55837 0 3 0x4000082 nanosleep syz-fuzzer 20317 123393 55837 0 3 0x4000082 thrsleep syz-fuzzer 20317 420990 55837 0 3 0x4000082 thrsleep syz-fuzzer 20317 200394 55837 0 3 0x4000082 thrsleep syz-fuzzer 20317 116638 55837 0 3 0x4000082 thrsleep syz-fuzzer 20317 193355 55837 0 3 0x4000082 thrsleep syz-fuzzer 20317 265107 55837 0 3 0x4000082 kqread syz-fuzzer 20317 289158 55837 0 3 0x4000082 thrsleep syz-fuzzer 20317 23702 55837 0 3 0x4000082 thrsleep syz-fuzzer 20317 507432 55837 0 3 0x4000082 thrsleep syz-fuzzer 55837 452465 56229 0 3 0x10008a pause ksh 56229 323327 84607 0 3 0x92 select sshd 84607 345719 1 0 3 0x80 select sshd 38112 283632 38769 73 3 0x100010 ffs_fsync syslogd 38769 263355 1 0 3 0x100082 netio syslogd 36283 149024 1 77 3 0x100090 poll dhclient 28441 488080 1 0 3 0x80 poll dhclient 4295 429564 0 0 3 0x14200 pgzero zerothread 28819 48527 0 0 3 0x14200 aiodoned aiodoned 51651 466390 0 0 3 0x14200 syncer update 14094 290058 0 0 3 0x14200 cleaner cleaner * 2186 58663 0 0 7 0x14200 reaper 3740 113228 0 0 3 0x14200 pgdaemon pagedaemon 98181 384628 0 0 3 0x14200 bored crynlk 96017 272554 0 0 3 0x14200 bored crypto 22040 327038 0 0 3 0x40014200 acpi0 acpi0 29838 164419 0 0 3 0x40014200 idle1 3699 410142 0 0 3 0x14200 bored softnet 86748 461521 0 0 3 0x14200 bored systqmp 86845 131195 0 0 3 0x14200 bored systq 62104 340956 0 0 3 0x40014200 bored softclock 50254 192032 0 0 3 0x40014200 idle0 1 370152 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper