panic: Thread 0xffff800020b93080 cannot exit while holding sleeplocks Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 140802 84253 73 0x100010 0 0 syslogd * 19741 75649 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(50155e8db8249dff) 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 0xffff800020b93080 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(50155e8db8249dff) 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 0xffff800020b66e40 rbx 0xffff800020b66ee0 rdx 0xffffffff81ecc876 cmd0646_9_tim_udma+0x15f95 rcx 0 rax 0 r8 0xffffffff81c79d54 kprintf+0x174 r9 0x1 r10 0x61d91b3cf22cb62a r11 0x9e26e4c373eb779e r12 0x3000000008 r13 0xffff800020b66e50 r14 0x100 r15 0x1 rip 0xffffffff81885668 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b66e30 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (reaper) pid=19741 stat=onproc flags process=14000 proc=200 pri=4, usrpri=52, nice=20 forw=0xffffffffffffffff, list=0xffff800020b212c0,0xffff800020b21c30 process=0xffff800020b5b070 user=0xffff800020b62000, vmspace=0xffffffff822f21c0 estcpu=2, cpticks=9, pctcpu=0.44 user=0, sys=3, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 59299 99861 44108 32767 3 0x90 nanosleep syz-executor0 59299 210243 44108 32767 3 0x4000090 select syz-executor0 59299 523821 44108 32767 3 0x4000090 fsleep syz-executor0 41414 37413 42774 32767 3 0x3010 suspend syz-executor1 41414 3947 42774 32767 3 0x4081010 inode syz-executor1 42774 58568 45371 32767 3 0x90 nanosleep syz-executor1 45371 20861 55660 0 3 0x82 wait syz-executor1 44108 458755 34794 32767 3 0x90 nanosleep syz-executor0 34794 122304 55660 0 3 0x82 wait syz-executor0 17587 187680 0 0 3 0x14200 bored sosplice 55660 520504 21993 0 3 0x82 thrsleep syz-fuzzer 55660 517662 21993 0 3 0x4000082 thrsleep syz-fuzzer 55660 521759 21993 0 3 0x4000082 thrsleep syz-fuzzer 55660 49673 21993 0 3 0x4000082 kqread syz-fuzzer 55660 330140 21993 0 3 0x4000082 thrsleep syz-fuzzer 55660 480257 21993 0 3 0x4000082 thrsleep syz-fuzzer 55660 171851 21993 0 3 0x4000082 thrsleep syz-fuzzer 55660 134322 21993 0 3 0x4000082 thrsleep syz-fuzzer 55660 379506 21993 0 3 0x4000082 thrsleep syz-fuzzer 55660 404448 21993 0 3 0x4000082 thrsleep syz-fuzzer 55660 122765 21993 0 3 0x4000082 thrsleep syz-fuzzer 55660 517162 21993 0 3 0x4000082 thrsleep syz-fuzzer 21993 24086 39143 0 3 0x10008a pause ksh 39143 415101 690 0 3 0x92 select sshd 2789 239520 1 0 3 0x100083 ttyin getty 690 213179 1 0 3 0x80 select sshd 84253 140802 58605 73 7 0x100010 syslogd 58605 462366 1 0 3 0x100082 netio syslogd 40852 13412 1 77 3 0x100090 poll dhclient 36223 435295 1 0 3 0x80 poll dhclient 98758 103218 0 0 3 0x14200 pgzero zerothread 80834 281660 0 0 3 0x14200 aiodoned aiodoned 68434 427160 0 0 3 0x14200 syncer update 95624 6858 0 0 3 0x14200 cleaner cleaner *75649 19741 0 0 7 0x14200 reaper 12029 480580 0 0 3 0x14200 pgdaemon pagedaemon 50191 44722 0 0 3 0x14200 bored crynlk 93980 67960 0 0 3 0x14200 bored crypto 2152 482735 0 0 3 0x40014200 acpi0 acpi0 44062 224987 0 0 3 0x40014200 idle1 25229 103655 0 0 3 0x14200 bored softnet 57628 122006 0 0 3 0x14200 bored systqmp 21122 312494 0 0 3 0x14200 bored systq 80389 512664 0 0 3 0x40014200 bored softclock 71608 403780 0 0 3 0x40014200 idle0 1 275165 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper