panic: Thread 0xffff800020b92e28 cannot exit while holding sleeplocks Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *499114 23768 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(b5e148a670c0dd87) 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 0xffff800020b92e28 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(b5e148a670c0dd87) 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 0xffff800020b67b70 rbx 0xffff800020b67c10 rdx 0xffffffff81ec7fae cmd0646_9_tim_udma+0x14d39 rcx 0 rax 0 r8 0xffffffff81ba5254 kprintf+0x174 r9 0x1 r10 0x58372e27051a1cb8 r11 0xaf8ed2e225aa3827 r12 0x3000000008 r13 0xffff800020b67b80 r14 0x100 r15 0x1 rip 0xffffffff817aed68 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b67b60 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (reaper) pid=499114 stat=onproc flags process=14000 proc=200 pri=4, usrpri=53, nice=20 forw=0xffffffffffffffff, list=0xffff800020b21068,0xffff800020b21c30 process=0xffff800020b5a9e0 user=0xffff800020b62000, vmspace=0xffffffff82313430 estcpu=3, cpticks=10, pctcpu=0.50 user=0, sys=3, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 82540 321523 742 32767 3 0x90 nanosleep syz-executor1 742 354240 16076 0 3 0x82 wait syz-executor1 76221 370598 87431 32767 3 0x90 nanosleep syz-executor0 87431 143817 16076 0 3 0x82 wait syz-executor0 31387 325090 0 0 3 0x14200 bored sosplice 16076 405963 82741 0 3 0x82 thrsleep syz-fuzzer 16076 229089 82741 0 3 0x4000082 thrsleep syz-fuzzer 16076 188378 82741 0 3 0x4000082 thrsleep syz-fuzzer 16076 236231 82741 0 3 0x4000082 thrsleep syz-fuzzer 16076 346681 82741 0 3 0x4000082 kqread syz-fuzzer 16076 505076 82741 0 3 0x4000082 thrsleep syz-fuzzer 16076 401720 82741 0 3 0x4000082 thrsleep syz-fuzzer 16076 181795 82741 0 3 0x4000082 thrsleep syz-fuzzer 16076 333108 82741 0 3 0x4000082 thrsleep syz-fuzzer 16076 451913 82741 0 3 0x4000082 thrsleep syz-fuzzer 82741 100753 89166 0 3 0x10008a pause ksh 89166 436892 21073 0 3 0x92 select sshd 74214 444916 1 0 3 0x100083 ttyin getty 21073 105281 1 0 3 0x80 select sshd 3273 181774 26845 73 3 0x100010 ffs_fsync syslogd 26845 95939 1 0 3 0x100082 netio syslogd 43694 386224 1 77 3 0x100090 poll dhclient 90516 91282 1 0 3 0x80 poll dhclient 18354 40631 0 0 3 0x14200 pgzero zerothread 40820 13417 0 0 3 0x14200 aiodoned aiodoned 45147 68955 0 0 3 0x14200 syncer update 76905 296542 0 0 3 0x14200 cleaner cleaner *23768 499114 0 0 7 0x14200 reaper 24775 313154 0 0 3 0x14200 pgdaemon pagedaemon 64948 365410 0 0 3 0x14200 bored crynlk 50111 88623 0 0 3 0x14200 bored crypto 24151 51769 0 0 3 0x40014200 acpi0 acpi0 32472 350489 0 0 3 0x40014200 idle1 79979 354012 0 0 3 0x14200 bored softnet 46336 362248 0 0 3 0x14200 bored systqmp 13696 74376 0 0 3 0x14200 bored systq 99196 463532 0 0 3 0x40014200 bored softclock 28056 352902 0 0 7 0x40014200 idle0 1 77061 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper