panic: Thread 0xffff800020b92e28 cannot exit while holding sleeplocks Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 69675 64609 32767 0x10 0x480 0 syz-executor1 *223587 46711 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(7d723a0d8671bf2c) 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(7d723a0d8671bf2c) 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 0xffff800020b676c0 rbx 0xffff800020b67760 rdx 0xffffffff81ec7fae cmd0646_9_tim_udma+0x14d39 rcx 0 rax 0 r8 0xffffffff81ba5254 kprintf+0x174 r9 0x1 r10 0xfc426a3d9a890cad r11 0x79068ae9be130b06 r12 0x3000000008 r13 0xffff800020b676d0 r14 0x100 r15 0x1 rip 0xffffffff817aed68 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b676b0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (reaper) pid=223587 stat=onproc flags process=14000 proc=200 pri=4, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff800020b21518,0xffff800020b21c30 process=0xffff800020b5b3b8 user=0xffff800020b62000, vmspace=0xffffffff82313430 estcpu=1, cpticks=3, pctcpu=0.32 user=0, sys=3, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 62129 402048 64609 32767 3 0x90 nanosleep syz-executor1 62129 111362 64609 32767 3 0x4000090 ttyin syz-executor1 62129 107148 64609 32767 3 0x4000090 fsleep syz-executor1 53436 353204 53031 32767 2 0x490 syz-executor0 53031 69820 39980 0 3 0x82 wait syz-executor0 64609 69675 94937 32767 7 0x490 syz-executor1 94937 18650 39980 0 3 0x82 wait syz-executor1 60935 182886 0 0 3 0x14200 bored sosplice 39980 381926 45523 0 3 0x82 kqread syz-fuzzer 39980 150320 45523 0 3 0x4000082 thrsleep syz-fuzzer 39980 379172 45523 0 3 0x4000082 thrsleep syz-fuzzer 39980 31933 45523 0 3 0x4000082 thrsleep syz-fuzzer 39980 366327 45523 0 3 0x4000082 thrsleep syz-fuzzer 39980 393260 45523 0 3 0x4000082 thrsleep syz-fuzzer 39980 115737 45523 0 3 0x4000082 thrsleep syz-fuzzer 39980 313518 45523 0 3 0x4000082 thrsleep syz-fuzzer 39980 190152 45523 0 3 0x4000082 thrsleep syz-fuzzer 39980 65643 45523 0 3 0x4000082 thrsleep syz-fuzzer 39980 139139 45523 0 3 0x4000082 thrsleep syz-fuzzer 45523 146149 25398 0 3 0x10008a pause ksh 25398 339008 44773 0 3 0x92 select sshd 88292 32773 1 0 3 0x100083 ttyin getty 44773 465016 1 0 3 0x80 select sshd 25693 99050 79798 73 3 0x100010 ffs_fsync syslogd 79798 180154 1 0 3 0x100082 netio syslogd 91224 324830 1 77 3 0x100090 poll dhclient 18544 271052 1 0 3 0x80 poll dhclient 85589 521829 0 0 3 0x14200 pgzero zerothread 13549 272552 0 0 3 0x14200 aiodoned aiodoned 63984 124819 0 0 3 0x14200 syncer update 34710 247815 0 0 3 0x14200 cleaner cleaner *46711 223587 0 0 7 0x14200 reaper 53391 466842 0 0 3 0x14200 pgdaemon pagedaemon 17651 309311 0 0 3 0x14200 bored crynlk 24808 473916 0 0 3 0x14200 bored crypto 97462 169433 0 0 3 0x40014200 acpi0 acpi0 85938 461278 0 0 3 0x40014200 idle1 85376 351500 0 0 3 0x14200 bored softnet 59336 393061 0 0 3 0x14200 bored systqmp 50183 103016 0 0 3 0x14200 bored systq 1116 375004 0 0 3 0x40014200 bored softclock 52062 419803 0 0 3 0x40014200 idle0 1 455236 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper