panic: Thread 0xffff800020b924c8 cannot exit while holding sleeplocks Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 141671 44507 32767 0x10 0x480 1 syz-executor1 *390794 37223 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(1bd280ed088222f0) 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 0xffff800020b924c8 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(1bd280ed088222f0) 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 0xffff800020b672d0 rbx 0xffff800020b67370 rdx 0xffffffff81ecc876 cmd0646_9_tim_udma+0x15f95 rcx 0 rax 0 r8 0xffffffff81c79d54 kprintf+0x174 r9 0x1 r10 0xe3996b88f66f2ad9 r11 0x1c66947777a8eb6d r12 0x3000000008 r13 0xffff800020b672e0 r14 0x100 r15 0x1 rip 0xffffffff81885668 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b672c0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (reaper) pid=390794 stat=onproc flags process=14000 proc=200 pri=4, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff800020b21770,0xffff800020b21c30 process=0xffff800020b5ad28 user=0xffff800020b62000, vmspace=0xffffffff822f21c0 estcpu=1, cpticks=3, pctcpu=0.28 user=0, sys=3, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 19241 265763 22956 32767 2 0x490 syz-executor0 19241 159368 22956 32767 3 0x4000090 ttyin syz-executor0 19241 150081 22956 32767 3 0x4000090 fsleep syz-executor0 19241 426620 22956 32767 3 0x4000090 fsleep syz-executor0 22956 146651 23567 32767 2 0x490 syz-executor0 23567 433654 49961 0 3 0x82 wait syz-executor0 44507 141671 73013 32767 7 0x490 syz-executor1 73013 523274 49961 0 3 0x82 wait syz-executor1 32712 295573 0 0 3 0x14200 bored sosplice 49961 322125 13957 0 3 0x82 thrsleep syz-fuzzer 49961 64442 13957 0 3 0x4000082 thrsleep syz-fuzzer 49961 443838 13957 0 3 0x4000082 thrsleep syz-fuzzer 49961 79275 13957 0 3 0x4000082 kqread syz-fuzzer 49961 121679 13957 0 3 0x4000082 thrsleep syz-fuzzer 49961 277740 13957 0 3 0x4000082 thrsleep syz-fuzzer 49961 372453 13957 0 3 0x4000082 thrsleep syz-fuzzer 49961 263511 13957 0 3 0x4000082 thrsleep syz-fuzzer 49961 345739 13957 0 3 0x4000082 thrsleep syz-fuzzer 49961 338035 13957 0 3 0x4000082 thrsleep syz-fuzzer 49961 128626 13957 0 3 0x4000082 thrsleep syz-fuzzer 49961 79309 13957 0 3 0x4000082 thrsleep syz-fuzzer 13957 480767 7735 0 3 0x10008a pause ksh 7735 404859 52143 0 3 0x92 select sshd 14615 368462 1 0 3 0x100083 ttyin getty 52143 181073 1 0 3 0x80 select sshd 15848 328682 84126 73 2 0x100010 syslogd 84126 318458 1 0 3 0x100082 netio syslogd 16323 200633 1 77 3 0x100090 poll dhclient 5044 381226 1 0 3 0x80 poll dhclient 72883 140814 0 0 3 0x14200 pgzero zerothread 98631 327785 0 0 3 0x14200 aiodoned aiodoned 51802 415740 0 0 3 0x14200 syncer update 9836 191962 0 0 3 0x14200 cleaner cleaner *37223 390794 0 0 7 0x14200 reaper 97622 295308 0 0 3 0x14200 pgdaemon pagedaemon 69472 50340 0 0 3 0x14200 bored crynlk 56127 279965 0 0 3 0x14200 bored crypto 46548 449110 0 0 3 0x40014200 acpi0 acpi0 52301 325121 0 0 3 0x40014200 idle1 53897 424187 0 0 3 0x14200 bored softnet 14712 368397 0 0 3 0x14200 bored systqmp 85053 451694 0 0 3 0x14200 bored systq 40420 455657 0 0 2 0x40014200 softclock 68502 242154 0 0 3 0x40014200 idle0 1 138856 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper