panic: Thread 0xffff800020b93788 cannot exit while holding sleeplocks Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 49121 29685 73 0x100010 0 0 syslogd *275163 71621 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(b5cf3c3a410f7871) 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(b5cf3c3a410f7871) 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 0xffff800020b67a10 rbx 0xffff800020b67ab0 rdx 0xffffffff81ecc876 cmd0646_9_tim_udma+0x15f95 rcx 0 rax 0 r8 0xffffffff81c79d54 kprintf+0x174 r9 0x1 r10 0xb3a755939195e39f r11 0x4c58aa6c1052222b r12 0x3000000008 r13 0xffff800020b67a20 r14 0x100 r15 0x1 rip 0xffffffff81885668 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b67a00 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (reaper) pid=275163 stat=onproc flags process=14000 proc=200 pri=4, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020b21518,0xffff800020b21c30 process=0xffff800020b5a350 user=0xffff800020b62000, vmspace=0xffffffff822f21c0 estcpu=0, cpticks=2, pctcpu=0.53 user=0, sys=2, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 32496 285577 99785 32767 3 0x90 nanosleep syz-executor0 32496 334034 99785 32767 3 0x4000090 lockf syz-executor0 32496 474002 99785 32767 3 0x4000090 fsleep syz-executor0 99785 207026 46900 32767 3 0x90 nanosleep syz-executor0 46900 306562 86719 0 3 0x82 wait syz-executor0 95278 43495 9213 32767 3 0x90 nanosleep syz-executor1 9213 97956 86719 0 3 0x82 wait syz-executor1 13387 279940 0 0 3 0x14200 bored sosplice 86719 241183 23047 0 3 0x82 thrsleep syz-fuzzer 86719 177420 23047 0 3 0x4000082 thrsleep syz-fuzzer 86719 393575 23047 0 3 0x4000082 thrsleep syz-fuzzer 86719 335063 23047 0 3 0x4000082 thrsleep syz-fuzzer 86719 209986 23047 0 3 0x4000082 thrsleep syz-fuzzer 86719 141229 23047 0 3 0x4000082 thrsleep syz-fuzzer 86719 502537 23047 0 3 0x4000082 thrsleep syz-fuzzer 86719 348734 23047 0 3 0x4000082 kqread syz-fuzzer 86719 46273 23047 0 3 0x4000082 thrsleep syz-fuzzer 86719 236705 23047 0 3 0x4000082 thrsleep syz-fuzzer 86719 219115 23047 0 3 0x4000082 thrsleep syz-fuzzer 23047 102973 66765 0 3 0x10008a pause ksh 66765 115609 14456 0 3 0x92 select sshd 50200 196694 1 0 3 0x100083 ttyin getty 14456 228459 1 0 3 0x80 select sshd 29685 49121 74256 73 7 0x100010 syslogd 74256 6760 1 0 3 0x100082 netio syslogd 20521 270251 1 77 3 0x100090 poll dhclient 33548 238309 1 0 3 0x80 poll dhclient 43213 453900 0 0 3 0x14200 pgzero zerothread 83071 71069 0 0 3 0x14200 aiodoned aiodoned 64137 440873 0 0 3 0x14200 syncer update 11950 467742 0 0 3 0x14200 cleaner cleaner *71621 275163 0 0 7 0x14200 reaper 70264 374348 0 0 3 0x14200 pgdaemon pagedaemon 38259 507820 0 0 3 0x14200 bored crynlk 95315 311706 0 0 3 0x14200 bored crypto 11347 248174 0 0 3 0x40014200 acpi0 acpi0 30261 186702 0 0 3 0x40014200 idle1 55263 404347 0 0 3 0x14200 bored softnet 55500 213845 0 0 3 0x14200 bored systqmp 24626 420744 0 0 3 0x14200 bored systq 13135 497410 0 0 3 0x40014200 bored softclock 22944 184674 0 0 3 0x40014200 idle0 1 496038 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper