panic: Thread 0xffff800020b932d8 cannot exit while holding sleeplocks Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 305352 6184 0 0x2 0x4000480 0 syz-fuzzer *452099 92296 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(bb1ad8fa39f4da94) 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 0xffff800020b932d8 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(bb1ad8fa39f4da94) 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 0xffff800020b67950 rbx 0xffff800020b679f0 rdx 0xffffffff81f2ec1b cy_pio_rec+0x1a98 rcx 0 rax 0 r8 0xffffffff817cef24 kprintf+0x174 r9 0x1 r10 0x9bec0df8e997a7e7 r11 0x44e52705b844a64b r12 0x3000000008 r13 0xffff800020b67960 r14 0x100 r15 0x1 rip 0xffffffff81a668f8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b67940 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (reaper) pid=452099 stat=onproc flags process=14000 proc=200 pri=4, usrpri=52, nice=20 forw=0xffffffffffffffff, list=0xffff800020b21770,0xffff800020b21c30 process=0xffff800020b5b070 user=0xffff800020b62000, vmspace=0xffffffff82306388 estcpu=2, cpticks=7, pctcpu=0.21 user=0, sys=3, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 48676 495047 93581 0 2 0 syz-executor1 48676 421581 93581 0 2 0x4000000 syz-executor1 78301 210957 1 0 3 0x100083 ttyin getty 17859 279582 0 0 3 0x14200 bored sosplice 93581 502128 6184 0 2 0x482 syz-executor1 471 42723 6184 0 3 0x82 nanosleep syz-executor0 6184 137149 74475 0 3 0x82 thrsleep syz-fuzzer 6184 305352 74475 0 7 0x4000482 syz-fuzzer 6184 56879 74475 0 3 0x4000082 thrsleep syz-fuzzer 6184 189560 74475 0 3 0x4000082 thrsleep syz-fuzzer 6184 233967 74475 0 3 0x4000082 thrsleep syz-fuzzer 6184 366904 74475 0 3 0x4000082 thrsleep syz-fuzzer 6184 507165 74475 0 3 0x4000082 thrsleep syz-fuzzer 6184 127443 74475 0 3 0x4000082 thrsleep syz-fuzzer 6184 287569 74475 0 3 0x4000082 kqread syz-fuzzer 6184 141775 74475 0 3 0x4000082 thrsleep syz-fuzzer 74475 333637 55714 0 3 0x10008a pause ksh 55714 485784 12856 0 3 0x92 select sshd 12856 272074 1 0 3 0x80 select sshd 78708 225898 10063 73 2 0x100010 syslogd 10063 288430 1 0 3 0x100082 netio syslogd 61132 215240 1 77 3 0x100090 poll dhclient 76867 371870 1 0 3 0x80 poll dhclient 53295 338210 0 0 2 0x14200 zerothread 63742 37415 0 0 3 0x14200 aiodoned aiodoned 66667 109793 0 0 3 0x14200 syncer update 53599 350512 0 0 3 0x14200 cleaner cleaner *92296 452099 0 0 7 0x14200 reaper 14349 137533 0 0 3 0x14200 pgdaemon pagedaemon 8407 336202 0 0 3 0x14200 bored crynlk 89872 202473 0 0 3 0x14200 bored crypto 30104 154261 0 0 3 0x40014200 acpi0 acpi0 18452 500167 0 0 3 0x40014200 idle1 51932 272464 0 0 3 0x14200 bored softnet 34907 82430 0 0 3 0x14200 bored systqmp 78637 427855 0 0 3 0x14200 bored systq 38239 403873 0 0 3 0x40014200 bored softclock 60701 337845 0 0 3 0x40014200 idle0 1 183768 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper