panic: Thread 0xffff800020b932d8 cannot exit while holding sleeplocks Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 227164 81836 32767 0x10 0x480 1 syz-executor0 *516164 48544 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(1fee89d35c0b4ecc) 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 0xffff800020b932d8 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(1fee89d35c0b4ecc) 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 0xffff800020b672f0 rbx 0xffff800020b67390 rdx 0xffffffff81ec3ef0 cmd0646_9_tim_udma+0x1592a rcx 0 rax 0 r8 0xffffffff815d9fe4 kprintf+0x174 r9 0x1 r10 0xb26297d02d9dedd5 r11 0x501665c82617c974 r12 0x3000000008 r13 0xffff800020b67300 r14 0x100 r15 0x1 rip 0xffffffff81391848 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b672e0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (reaper) pid=516164 stat=onproc flags process=14000 proc=200 pri=4, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff800020b20e10,0xffff800020b21c30 process=0xffff800020b5a350 user=0xffff800020b62000, vmspace=0xffffffff822de998 estcpu=1, cpticks=4, pctcpu=0.39 user=0, sys=3, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 4610 497134 23009 32767 2 0x490 syz-executor1 23009 231316 58721 0 3 0x82 wait syz-executor1 81836 227164 75258 32767 7 0x490 syz-executor0 75258 139247 58721 0 3 0x82 wait syz-executor0 11495 46665 0 0 3 0x14200 bored sosplice 58721 97087 34208 0 3 0x82 thrsleep syz-fuzzer 58721 143253 34208 0 3 0x4000082 thrsleep syz-fuzzer 58721 286665 34208 0 3 0x4000082 thrsleep syz-fuzzer 58721 486119 34208 0 3 0x4000082 thrsleep syz-fuzzer 58721 373843 34208 0 3 0x4000082 thrsleep syz-fuzzer 58721 523490 34208 0 3 0x4000082 thrsleep syz-fuzzer 58721 491632 34208 0 3 0x4000082 thrsleep syz-fuzzer 58721 295521 34208 0 3 0x4000082 kqread syz-fuzzer 58721 442477 34208 0 3 0x4000082 thrsleep syz-fuzzer 58721 259894 34208 0 3 0x4000082 thrsleep syz-fuzzer 34208 2471 51369 0 3 0x10008a pause ksh 51369 219380 13837 0 3 0x92 select sshd 81858 76779 1 0 3 0x100083 ttyin getty 13837 263644 1 0 3 0x80 select sshd 73506 307812 98797 73 2 0x100010 syslogd 98797 465720 1 0 3 0x100082 netio syslogd 76914 10613 1 77 3 0x100090 poll dhclient 32878 321423 1 0 3 0x80 poll dhclient 2119 485035 0 0 3 0x14200 pgzero zerothread 75058 373410 0 0 3 0x14200 aiodoned aiodoned 11658 451154 0 0 3 0x14200 syncer update 37867 396521 0 0 3 0x14200 cleaner cleaner *48544 516164 0 0 7 0x14200 reaper 29998 64093 0 0 3 0x14200 pgdaemon pagedaemon 85409 517533 0 0 3 0x14200 bored crynlk 7419 149509 0 0 3 0x14200 bored crypto 3112 143202 0 0 3 0x40014200 acpi0 acpi0 87534 448386 0 0 3 0x40014200 idle1 91508 440035 0 0 3 0x14200 bored softnet 15317 123967 0 0 3 0x14200 bored systqmp 78940 7873 0 0 3 0x14200 bored systq 61545 452751 0 0 3 0x40014200 bored softclock 97001 192900 0 0 3 0x40014200 idle0 1 379331 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper