panic: Thread 0xffff800020b93c38 cannot exit while holding sleeplocks Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 219468 25101 32767 0x10 0 1K syz-executor1 *356256 78311 0 0x14000 0x200 0 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(fe7e9e185a7c7146) 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{0}> ddb{0}> set $lines = 0 ddb{0}> show panic Thread 0xffff800020b93c38 cannot exit while holding sleeplocks ddb{0}> 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(fe7e9e185a7c7146) 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{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020b67270 rbx 0xffff800020b67310 rdx 0xffffffff81ec7fae cmd0646_9_tim_udma+0x14d39 rcx 0 rax 0 r8 0xffffffff81ba5254 kprintf+0x174 r9 0x1 r10 0x52e8f88e8ea1d0ab r11 0xbf2015407062eda4 r12 0x3000000008 r13 0xffff800020b67280 r14 0x100 r15 0x1 rip 0xffffffff817aed68 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b67260 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (reaper) pid=356256 stat=onproc flags process=14000 proc=200 pri=4, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff800020b21518,0xffff800020b21c30 process=0xffff800020b5a008 user=0xffff800020b62000, vmspace=0xffffffff82313430 estcpu=1, cpticks=5, pctcpu=0.39 user=0, sys=3, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 74034 210793 66954 32767 2 0x490 syz-executor0 66954 120731 27475 0 3 0x82 wait syz-executor0 25101 219468 96737 32767 7 0x10 syz-executor1 96737 164065 27475 0 3 0x82 wait syz-executor1 81153 268544 0 0 3 0x14200 bored sosplice 27475 270658 95281 0 3 0x82 thrsleep syz-fuzzer 27475 75371 95281 0 2 0x4000482 syz-fuzzer 27475 411906 95281 0 3 0x4000082 thrsleep syz-fuzzer 27475 279465 95281 0 3 0x4000082 kqread syz-fuzzer 27475 181485 95281 0 3 0x4000082 thrsleep syz-fuzzer 27475 245987 95281 0 3 0x4000082 thrsleep syz-fuzzer 27475 310780 95281 0 3 0x4000082 thrsleep syz-fuzzer 27475 22237 95281 0 3 0x4000082 thrsleep syz-fuzzer 27475 370836 95281 0 3 0x4000082 thrsleep syz-fuzzer 27475 373211 95281 0 3 0x4000082 thrsleep syz-fuzzer 95281 407131 38648 0 3 0x10008a pause ksh 38648 456523 15467 0 3 0x92 select sshd 46732 137014 1 0 3 0x100083 ttyin getty 15467 155803 1 0 3 0x80 select sshd 99929 519587 49725 73 2 0x100010 syslogd 49725 523888 1 0 3 0x100082 netio syslogd 91931 321033 1 77 3 0x100090 poll dhclient 18563 263288 1 0 3 0x80 poll dhclient 75483 414135 0 0 3 0x14200 pgzero zerothread 21146 63694 0 0 3 0x14200 aiodoned aiodoned 25419 357803 0 0 3 0x14200 syncer update 77242 251373 0 0 3 0x14200 cleaner cleaner *78311 356256 0 0 7 0x14200 reaper 52333 410210 0 0 3 0x14200 pgdaemon pagedaemon 6612 441804 0 0 3 0x14200 bored crynlk 27708 139053 0 0 3 0x14200 bored crypto 31606 378796 0 0 3 0x40014200 acpi0 acpi0 70028 347807 0 0 3 0x40014200 idle1 17764 81854 0 0 3 0x14200 bored softnet 34980 518841 0 0 3 0x14200 bored systqmp 99779 307509 0 0 3 0x14200 bored systq 47514 80077 0 0 3 0x40014200 bored softclock 77731 260410 0 0 3 0x40014200 idle0 1 494004 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper