panic: Thread 0xffff800020b744b8 cannot exit while holding sleeplocks Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 66955 21207 73 0x100010 0 0 syslogd *152605 21832 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(8e318539c92aeda) 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 0xffff800020b744b8 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(8e318539c92aeda) 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 0xffffffff81f2daa4 cy_pio_rec+0xed2 rcx 0x201 rax 0x1 r8 0xffffffff814fd024 kprintf+0x174 r9 0x1 r10 0x75cd7e54e232fa5f r11 0x9f9f85061e55bb2a r12 0x3000000008 r13 0xffff800020b670c0 r14 0x100 r15 0x1 rip 0xffffffff817711a8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b670a0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (reaper) pid=152605 stat=onproc flags process=14000 proc=200 pri=4, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff800020b20e10,0xffff800020b21780 process=0xffff800020b5a350 user=0xffff800020b62000, vmspace=0xffffffff822d3ea8 estcpu=1, cpticks=2, pctcpu=0.3 user=0, sys=2, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 41466 336152 76090 0 3 0x82 nanosleep syz-executor0 76090 245258 4980 0 3 0x82 thrsleep syz-execprog 76090 501005 4980 0 3 0x4000082 thrsleep syz-execprog 76090 49099 4980 0 3 0x4000082 thrsleep syz-execprog 76090 251404 4980 0 3 0x4000082 thrsleep syz-execprog 76090 40305 4980 0 3 0x4000082 thrsleep syz-execprog 76090 51759 4980 0 3 0x4000082 thrsleep syz-execprog 76090 140400 4980 0 3 0x4000082 kqread syz-execprog 76090 319024 4980 0 3 0x4000082 thrsleep syz-execprog 76090 308929 4980 0 3 0x4000082 thrsleep syz-execprog 4980 27809 74912 0 3 0x10008a pause ksh 74912 138657 92343 0 3 0x92 select sshd 55515 357181 1 0 3 0x100083 ttyin getty 92343 86346 1 0 3 0x80 select sshd 21207 66955 81496 73 7 0x100010 syslogd 81496 80854 1 0 3 0x100082 netio syslogd 40897 100947 1 77 3 0x100090 poll dhclient 49353 102181 1 0 3 0x80 poll dhclient 4450 152698 0 0 3 0x14200 pgzero zerothread 57526 414880 0 0 3 0x14200 aiodoned aiodoned 88797 239552 0 0 3 0x14200 syncer update 369 490391 0 0 3 0x14200 cleaner cleaner *21832 152605 0 0 7 0x14200 reaper 17186 427270 0 0 3 0x14200 pgdaemon pagedaemon 68960 353932 0 0 3 0x14200 bored crynlk 37306 33090 0 0 3 0x14200 bored crypto 30404 74828 0 0 3 0x40014200 acpi0 acpi0 72821 75968 0 0 3 0x40014200 idle1 98190 225025 0 0 3 0x14200 bored softnet 43283 79670 0 0 3 0x14200 bored systqmp 2113 250631 0 0 3 0x14200 bored systq 45030 218796 0 0 3 0x40014200 bored softclock 80603 168547 0 0 3 0x40014200 idle0 1 449691 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}>