panic: Thread 0xffff800020be5c30 cannot exit while holding sleeplocks Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 92149 91543 0 0x2 0x480 0 syz-executor0 *486156 459 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(d53795631eb55156) 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 0xffff800020be5c30 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(d53795631eb55156) 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 0xffff800020b66ec0 rbx 0xffff800020b66f60 rdx 0xffffffff81ec577a cmd0646_9_tim_udma+0x16395 rcx 0x201 rax 0x1 r8 0xffffffff81788154 kprintf+0x174 r9 0x1 r10 0xa212e286df116f31 r11 0x6b6864fc64059a22 r12 0x3000000008 r13 0xffff800020b66ed0 r14 0x100 r15 0x1 rip 0xffffffff81107618 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b66eb0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (reaper) pid=486156 stat=onproc flags process=14000 proc=200 pri=4, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020b21770,0xffff800020b21c30 process=0xffff800020b5b3b8 user=0xffff800020b62000, vmspace=0xffffffff822fc8c0 estcpu=0, cpticks=3, pctcpu=0.4 user=0, sys=2, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 75182 59289 30672 0 2 0 syz-executor1 75182 335754 30672 0 3 0x4000000 inode syz-executor1 91543 92149 29201 0 7 0x482 syz-executor0 30672 245002 29201 0 2 0x482 syz-executor1 29201 108694 83174 0 3 0x82 kqread syz-execprog 29201 220678 83174 0 3 0x4000082 thrsleep syz-execprog 29201 72506 83174 0 3 0x4000082 thrsleep syz-execprog 29201 491937 83174 0 3 0x4000082 thrsleep syz-execprog 29201 395368 83174 0 3 0x4000082 thrsleep syz-execprog 29201 213739 83174 0 3 0x4000082 thrsleep syz-execprog 29201 373210 83174 0 3 0x4000082 thrsleep syz-execprog 29201 491002 83174 0 3 0x4000082 thrsleep syz-execprog 29201 125943 83174 0 3 0x4000082 thrsleep syz-execprog 83174 400362 68546 0 3 0x10008a pause ksh 68546 81897 5985 0 3 0x92 select sshd 22104 402075 1 0 3 0x100083 ttyin getty 5985 496624 1 0 3 0x80 select sshd 52354 427943 50185 73 3 0x100010 ffs_fsync syslogd 50185 213914 1 0 3 0x100082 netio syslogd 485 331643 1 77 3 0x100090 poll dhclient 25747 427324 1 0 3 0x80 poll dhclient 3231 203837 0 0 2 0x14200 zerothread 70257 320088 0 0 3 0x14200 aiodoned aiodoned 81984 1133 0 0 3 0x14200 syncer update 83375 508209 0 0 3 0x14200 cleaner cleaner * 459 486156 0 0 7 0x14200 reaper 91005 89318 0 0 3 0x14200 pgdaemon pagedaemon 4775 60873 0 0 3 0x14200 bored crynlk 25805 134484 0 0 3 0x14200 bored crypto 78944 7717 0 0 3 0x40014200 acpi0 acpi0 9052 267328 0 0 3 0x40014200 idle1 55553 254301 0 0 3 0x14200 bored softnet 7231 97134 0 0 3 0x14200 bored systqmp 94367 94600 0 0 3 0x14200 bored systq 30359 465770 0 0 3 0x40014200 bored softclock 44017 300520 0 0 3 0x40014200 idle0 1 61088 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}>