panic: Thread 0xffff800020bbb2d8 cannot exit while holding sleeplocks Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 223058 50342 73 0x100010 0 0 syslogd *414888 2498 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(e439faf0c9d72f9e) 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 0xffff800020bbb2d8 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(e439faf0c9d72f9e) 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 0xffff800020b67880 rbx 0xffff800020b67920 rdx 0xffffffff81ecc876 cmd0646_9_tim_udma+0x15f95 rcx 0 rax 0 r8 0xffffffff81c79d54 kprintf+0x174 r9 0x1 r10 0x9f7e348d73d0f035 r11 0x6081cb72f2173181 r12 0x3000000008 r13 0xffff800020b67890 r14 0x100 r15 0x1 rip 0xffffffff81885668 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b67870 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (reaper) pid=414888 stat=onproc flags process=14000 proc=200 pri=4, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff800020b212c0,0xffff800020b219d8 process=0xffff800020b5a350 user=0xffff800020b62000, vmspace=0xffffffff822f21c0 estcpu=1, cpticks=3, pctcpu=0.20 user=0, sys=3, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 36939 500538 28961 32767 2 0x10 syz-executor0 36939 55464 28961 32767 2 0x4000010 syz-executor0 28961 29144 31812 32767 3 0x90 nanosleep syz-executor0 31812 209993 46297 0 3 0x82 wait syz-executor0 25366 469336 67709 32767 3 0x90 nanosleep syz-executor1 67709 367275 46297 0 3 0x82 wait syz-executor1 91066 406232 0 0 3 0x14200 bored sosplice 46297 186225 90230 0 3 0x82 thrsleep syz-fuzzer 46297 103637 90230 0 3 0x4000082 thrsleep syz-fuzzer 46297 511974 90230 0 3 0x4000082 thrsleep syz-fuzzer 46297 496407 90230 0 3 0x4000082 kqread syz-fuzzer 46297 313888 90230 0 3 0x4000082 thrsleep syz-fuzzer 46297 480710 90230 0 3 0x4000082 thrsleep syz-fuzzer 46297 163283 90230 0 3 0x4000082 thrsleep syz-fuzzer 46297 499482 90230 0 3 0x4000082 thrsleep syz-fuzzer 46297 12172 90230 0 3 0x4000082 thrsleep syz-fuzzer 46297 226154 90230 0 3 0x4000082 thrsleep syz-fuzzer 90230 521620 81088 0 3 0x10008a pause ksh 81088 59941 20766 0 3 0x92 select sshd 99478 65027 1 0 3 0x100083 ttyin getty 20766 275367 1 0 3 0x80 select sshd 50342 223058 13124 73 7 0x100010 syslogd 13124 307701 1 0 3 0x100082 netio syslogd 99097 32099 1 77 3 0x100090 poll dhclient 26632 220136 1 0 3 0x80 poll dhclient 29299 112164 0 0 2 0x14200 zerothread 27718 320928 0 0 3 0x14200 aiodoned aiodoned 75886 49875 0 0 3 0x14200 syncer update 72521 311791 0 0 3 0x14200 cleaner cleaner * 2498 414888 0 0 7 0x14200 reaper 359 142236 0 0 3 0x14200 pgdaemon pagedaemon 75900 295952 0 0 3 0x14200 bored crynlk 29979 234706 0 0 3 0x14200 bored crypto 27803 42167 0 0 3 0x40014200 acpi0 acpi0 66318 369513 0 0 3 0x40014200 idle1 43031 94088 0 0 3 0x14200 bored softnet 45256 216139 0 0 3 0x14200 bored systqmp 41211 297923 0 0 3 0x14200 bored systq 33531 391828 0 0 3 0x40014200 bored softclock 69132 442583 0 0 3 0x40014200 idle0 1 233331 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper