panic: Thread 0xffff800020bbabd0 cannot exit while holding sleeplocks Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 263026 2691 32767 0x10 0x480 0 syz-executor0 *263951 79484 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(10fd77151b818fdb) 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 0xffff800020bbabd0 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(10fd77151b818fdb) 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 0xffff800020b67c70 rbx 0xffff800020b67d10 rdx 0xffffffff81ecc876 cmd0646_9_tim_udma+0x15f95 rcx 0 rax 0 r8 0xffffffff81c79d54 kprintf+0x174 r9 0x1 r10 0xf4993340837fe488 r11 0xb66ccbf02b8253c r12 0x3000000008 r13 0xffff800020b67c80 r14 0x100 r15 0x1 rip 0xffffffff81885668 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b67c60 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (reaper) pid=263951 stat=onproc flags process=14000 proc=200 pri=4, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff800020b212c0,0xffff800020b21c30 process=0xffff800020b5ad28 user=0xffff800020b62000, vmspace=0xffffffff822f21c0 estcpu=1, cpticks=3, pctcpu=0.19 user=0, sys=3, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 75396 263896 2691 32767 2 0x10 syz-executor0 75396 339596 2691 32767 2 0x4000010 syz-executor0 2691 263026 72334 32767 7 0x490 syz-executor0 72334 394973 4233 0 3 0x82 wait syz-executor0 44347 488787 87414 32767 3 0x90 nanosleep syz-executor1 87414 146967 4233 0 3 0x82 wait syz-executor1 39765 24648 0 0 3 0x14200 bored sosplice 4233 58320 46587 0 3 0x82 thrsleep syz-fuzzer 4233 450521 46587 0 3 0x4000082 nanosleep syz-fuzzer 4233 16934 46587 0 3 0x4000082 thrsleep syz-fuzzer 4233 189208 46587 0 3 0x4000082 thrsleep syz-fuzzer 4233 243341 46587 0 3 0x4000082 thrsleep syz-fuzzer 4233 225598 46587 0 3 0x4000082 thrsleep syz-fuzzer 4233 169508 46587 0 3 0x4000082 thrsleep syz-fuzzer 4233 81219 46587 0 3 0x4000082 thrsleep syz-fuzzer 4233 200492 46587 0 3 0x4000082 kqread syz-fuzzer 4233 393792 46587 0 3 0x4000082 thrsleep syz-fuzzer 4233 293601 46587 0 3 0x4000082 thrsleep syz-fuzzer 4233 422729 46587 0 3 0x4000082 thrsleep syz-fuzzer 46587 14737 95628 0 3 0x10008a pause ksh 95628 173539 36287 0 3 0x92 select sshd 65700 520746 1 0 3 0x100083 ttyin getty 36287 472148 1 0 3 0x80 select sshd 11894 442044 72644 73 3 0x100010 ffs_fsync syslogd 72644 373560 1 0 3 0x100082 netio syslogd 16689 160881 1 77 3 0x100090 poll dhclient 96712 263674 1 0 3 0x80 poll dhclient 20636 506487 0 0 2 0x14200 zerothread 35616 400141 0 0 3 0x14200 aiodoned aiodoned 87644 485845 0 0 3 0x14200 syncer update 64581 497880 0 0 3 0x14200 cleaner cleaner *79484 263951 0 0 7 0x14200 reaper 26247 38855 0 0 3 0x14200 pgdaemon pagedaemon 18724 140198 0 0 3 0x14200 bored crynlk 44080 134290 0 0 3 0x14200 bored crypto 87978 187588 0 0 3 0x40014200 acpi0 acpi0 50490 37267 0 0 3 0x40014200 idle1 77560 4896 0 0 3 0x14200 bored softnet 9836 387481 0 0 3 0x14200 bored systqmp 26868 95206 0 0 3 0x14200 bored systq 57607 339571 0 0 3 0x40014200 bored softclock 77588 96100 0 0 3 0x40014200 idle0 1 302203 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper