panic: Thread 0xffff800020b93080 cannot exit while holding sleeplocks Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 103189 87567 32767 0x10 0x480 1 syz-executor1 * 58002 49862 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(319a48667e3e616f) 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 0xffff800020b93080 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(319a48667e3e616f) 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 0xffff800020b67620 rbx 0xffff800020b676c0 rdx 0xffffffff81ec577a cmd0646_9_tim_udma+0x16395 rcx 0 rax 0 r8 0xffffffff81788154 kprintf+0x174 r9 0x1 r10 0x630f58acd0aa4b66 r11 0x898092e66c88e980 r12 0x3000000008 r13 0xffff800020b67630 r14 0x100 r15 0x1 rip 0xffffffff81107618 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b67610 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (reaper) pid=58002 stat=onproc flags process=14000 proc=200 pri=4, usrpri=52, nice=20 forw=0xffffffffffffffff, list=0xffff800020b21518,0xffff800020b21c30 process=0xffff800020b5a350 user=0xffff800020b62000, vmspace=0xffffffff822fc8c0 estcpu=2, cpticks=7, pctcpu=0.25 user=0, sys=3, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 55022 474361 91288 32767 2 0x10 syz-executor0 55022 345315 91288 32767 2 0x4000010 syz-executor0 55022 258450 91288 32767 3 0x4000090 fsleep syz-executor0 87567 103189 64224 32767 7 0x490 syz-executor1 64224 43893 84395 0 3 0x82 wait syz-executor1 91288 293408 96730 32767 2 0x490 syz-executor0 96730 57012 84395 0 3 0x82 wait syz-executor0 69898 420886 0 0 3 0x14200 bored sosplice 84395 270696 95935 0 3 0x82 thrsleep syz-fuzzer 84395 71600 95935 0 3 0x4000082 thrsleep syz-fuzzer 84395 16411 95935 0 3 0x4000082 thrsleep syz-fuzzer 84395 296000 95935 0 3 0x4000082 thrsleep syz-fuzzer 84395 269520 95935 0 3 0x4000082 thrsleep syz-fuzzer 84395 312275 95935 0 3 0x4000082 thrsleep syz-fuzzer 84395 148626 95935 0 3 0x4000082 thrsleep syz-fuzzer 84395 136361 95935 0 3 0x4000082 thrsleep syz-fuzzer 84395 276923 95935 0 3 0x4000082 kqread syz-fuzzer 84395 31524 95935 0 3 0x4000082 thrsleep syz-fuzzer 84395 463433 95935 0 3 0x4000082 thrsleep syz-fuzzer 95935 239208 93025 0 3 0x10008a pause ksh 93025 60592 56250 0 3 0x92 select sshd 95207 208336 1 0 3 0x100083 ttyin getty 56250 239184 1 0 3 0x80 select sshd 81371 257752 73541 73 2 0x100010 syslogd 73541 213866 1 0 3 0x100082 netio syslogd 44071 402227 1 77 3 0x100090 poll dhclient 87669 501693 1 0 3 0x80 poll dhclient 17542 3095 0 0 3 0x14200 pgzero zerothread 7065 491028 0 0 3 0x14200 aiodoned aiodoned 69985 424621 0 0 3 0x14200 syncer update 72029 204867 0 0 3 0x14200 cleaner cleaner *49862 58002 0 0 7 0x14200 reaper 38522 121589 0 0 3 0x14200 pgdaemon pagedaemon 16551 376432 0 0 3 0x14200 bored crynlk 46222 211480 0 0 3 0x14200 bored crypto 65859 76125 0 0 3 0x40014200 acpi0 acpi0 48391 279346 0 0 3 0x40014200 idle1 14043 242497 0 0 3 0x14200 bored softnet 65798 151729 0 0 3 0x14200 bored systqmp 77241 220495 0 0 3 0x14200 bored systq 16987 69095 0 0 3 0x40014200 bored softclock 33753 390591 0 0 3 0x40014200 idle0 1 84644 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper