witness: thread 0xffff800020acf4b8 exiting with the following locks held: exclusive rrwlock inode r = 0 (0xfffffd8068de9f78) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x46d sys/kern/kern_rwlock.c:306 #2 rrw_enter+0x4f sys/kern/kern_rwlock.c:435 #3 VOP_LOCK+0x4b sys/kern/vfs_vops.c:602 #4 vn_lock+0x6e sys/kern/vfs_vnops.c:561 #5 spec_write+0xec sys/kern/spec_vnops.c:312 #6 VOP_WRITE+0xce sys/kern/vfs_vops.c:268 #7 vn_write+0x1be sys/kern/vfs_vnops.c:405 #8 dofilewritev+0x1ac sys/kern/sys_generic.c:364 #9 sys_write+0x83 sys/kern/sys_generic.c:284 #10 syscall+0x552 mi_syscall sys/sys/syscall_mi.h:92 [inline] #10 syscall+0x552 sys/arch/amd64/amd64/trap.c:555 #11 Xsyscall+0x128 panic: thread 0xffff800020acf4b8 cannot exit while holding sleeplocks Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 452057 70926 73 0x100010 0 0 syslogd *239141 93142 0 0x14000 0x200 1 reaper db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 witness_thread_exit(ffff800020acf4b8) at witness_thread_exit+0x213 sys/kern/subr_witness.c:1364 reaper(ffff800020a5fb30) at reaper+0x14c sys/kern/kern_exit.c:423 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}> set $maxwidth = 0 ddb{1}> show panic thread 0xffff800020acf4b8 cannot exit while holding sleeplocks ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 witness_thread_exit(ffff800020acf4b8) at witness_thread_exit+0x213 sys/kern/subr_witness.c:1364 reaper(ffff800020a5fb30) at reaper+0x14c sys/kern/kern_exit.c:423 end trace frame: 0x0, count: -4 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020a5d440 rbx 0xffff800020a5d4f0 rdx 0xffff800020a5fb30 rcx 0 rax 0 r8 0xffffffff81de8423 kprintf+0x173 r9 0x1 r10 0x25 r11 0x26f0c6a27bfa2ac1 r12 0x3000000008 r13 0xffff800020a5d450 r14 0x100 r15 0x1 rip 0xffffffff81e723a8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020a5d430 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (reaper) pid=239141 stat=onproc flags process=14000 proc=200 pri=4, usrpri=53, nice=20 forw=0xffffffffffffffff, list=0xffff800020a11148,0xffff800020a5ec70 process=0xffff800020a4a388 user=0xffff800020a58000, vmspace=0xffffffff8261bff0 estcpu=3, cpticks=11, pctcpu=2.8 user=0, sys=6, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 2202 135103 80612 32767 3 0x90 nanosleep syz-executor.1 80612 53278 96361 0 3 0x82 wait syz-executor.1 59407 475396 24398 32767 3 0x90 nanosleep syz-executor.0 24398 461319 96361 0 3 0x82 wait syz-executor.0 55650 22942 0 0 3 0x14200 bored sosplice 96361 223616 4315 0 3 0x82 thrsleep syz-fuzzer 96361 94746 4315 0 3 0x4000082 thrsleep syz-fuzzer 96361 517361 4315 0 3 0x4000082 thrsleep syz-fuzzer 96361 157358 4315 0 3 0x4000082 thrsleep syz-fuzzer 96361 69112 4315 0 3 0x4000082 kqread syz-fuzzer 96361 324218 4315 0 3 0x4000082 thrsleep syz-fuzzer 96361 185433 4315 0 3 0x4000082 thrsleep syz-fuzzer 96361 308684 4315 0 3 0x4000082 thrsleep syz-fuzzer 96361 378330 4315 0 3 0x4000082 thrsleep syz-fuzzer 96361 9461 4315 0 3 0x4000082 thrsleep syz-fuzzer 4315 119527 35098 0 3 0x10008a pause ksh 35098 230891 78466 0 3 0x92 select sshd 14982 453879 1 0 3 0x100083 ttyin getty 78466 466091 1 0 3 0x80 select sshd 70926 452057 94257 73 7 0x100010 syslogd 94257 265467 1 0 3 0x100082 netio syslogd 45313 205002 1 77 3 0x100090 poll dhclient 69039 456193 1 0 3 0x80 poll dhclient 98635 379716 0 0 3 0x14200 pgzero zerothread 71639 306905 0 0 3 0x14200 aiodoned aiodoned 5712 155062 0 0 3 0x14200 syncer update 81970 363625 0 0 3 0x14200 cleaner cleaner *93142 239141 0 0 7 0x14200 reaper 65040 352397 0 0 3 0x14200 pgdaemon pagedaemon 13755 55072 0 0 3 0x14200 bored crynlk 69524 146492 0 0 3 0x14200 bored crypto 36555 506164 0 0 3 0x40014200 acpi0 acpi0 15723 176288 0 0 3 0x40014200 idle1 97241 486930 0 0 3 0x14200 bored softnet 25824 120572 0 0 3 0x14200 bored systqmp 23455 44776 0 0 3 0x14200 bored systq 70288 391164 0 0 3 0x40014200 bored softclock 30833 171057 0 0 3 0x40014200 idle0 95509 385752 0 0 3 0x14200 bored smr 1 345317 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 70926 (syslogd) thread 0xffff800020ac09f0 (452057) exclusive rrwlock inode r = 0 (0xfffffd806eb572b8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x46d sys/kern/kern_rwlock.c:306 #2 rrw_enter+0x4f sys/kern/kern_rwlock.c:435 #3 VOP_LOCK+0x4b sys/kern/vfs_vops.c:602 #4 vn_lock+0x6e sys/kern/vfs_vnops.c:561 #5 sys_fsync+0x114 sys/kern/vfs_syscalls.c:2806 #6 syscall+0x552 mi_syscall sys/sys/syscall_mi.h:92 [inline] #6 syscall+0x552 sys/arch/amd64/amd64/trap.c:555 #7 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9463 6322K 6322K 78643K 11485 0 0 pcb 13 8K 8K 78643K 13 0 0 rtable 105 3K 3K 78643K 8602 0 0 ifaddr 35 13K 13K 78643K 1183 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 399 0 0 iov 0 0K 24K 78643K 683 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1215 76K 76K 78643K 5826 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 5K 78643K 104 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 1K 78643K 946 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 33K 78643K 9616 0 0 sigio 0 0K 0K 78643K 103 0 0 proc 41 38K 70K 78643K 8854 0 0 subproc 34 2K 2K 78643K 3213 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 0K 78643K 1079 0 0 in_multi 33 2K 2K 78643K 2333 0 0 ether_multi 1 0K 0K 78643K 50 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 66 291K 291K 78643K 66 0 0 exec 0 0K 1K 78643K 3168 0 0 pagedep 1 8K 8K 78643K 1 0 0 inodedep 1 32K 32K 78643K 1 0 0 newblk 1 0K 0K 78643K 1 0 0 VM swap 7 26K 26K 78643K 7 0 0 UVM amap 104 21K 31K 78643K 32873 0 0 UVM aobj 130 4K 4K 78643K 142 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 492 0 0 NDP 7 0K 0K 78643K 570 0 0 temp 121 3542K 3638K 78643K 44749 0 0 kqueue 0 0K 0K 78643K 113 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 382 0 376 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 826 0 824 1 0 1 1 0 8 0 rtentry 112 2104 0 2060 2 0 2 2 0 8 0 unpcb 120 3575 0 3567 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 3872 0 3872 1 1 0 1 0 8 0 tcpcb 544 1987 0 1983 1 0 1 1 0 8 0 ipq 40 2 0 2 2 2 0 1 0 8 0 ipqe 40 5 0 5 2 2 0 1 0 8 0 inpcb 280 5002 0 4991 14 12 2 2 0 8 1 nd6 48 567 0 561 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 8606 0 8412 20 7 13 13 0 8 0 art_table 32 8607 0 8412 2 0 2 2 0 8 0 art_node 16 2103 0 2063 1 0 1 1 0 8 0 sysvmsgpl 40 34 0 24 2 1 1 1 0 8 0 semapl 112 944 0 934 1 0 1 1 0 8 0 shmpl 112 140 0 12 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 11056 0 9605 48 1 47 47 0 8 0 ffsino 272 11056 0 9605 101 4 97 98 0 8 0 nchpl 144 22320 0 20691 61 0 61 61 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 200 5926 0 0 312 0 312 312 0 8 0 namei 1024 95312 0 95312 4 3 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 67936 0 67936 38 37 1 7 0 8 1 plimitpl 152 1561 0 1551 1 0 1 1 0 8 0 sigapl 432 9226 0 9212 14 12 2 3 0 8 0 futexpl 56 80528 0 80528 2 1 1 1 0 8 1 knotepl 112 5819 0 5800 1 0 1 1 0 8 0 kqueuepl 104 2031 0 2029 1 0 1 1 0 8 0 pipepl 112 5732 0 5713 11 9 2 2 0 8 1 fdescpl 488 9227 0 9212 3 0 3 3 0 8 1 filepl 152 55521 0 55425 21 16 5 7 0 8 1 lockfpl 104 1521 0 1521 21 20 1 1 0 8 1 lockfspl 48 530 0 530 21 20 1 1 0 8 1 sessionpl 112 204 0 194 1 0 1 1 0 8 0 pgrppl 48 274 0 264 1 0 1 1 0 8 0 ucredpl 96 15538 0 15529 1 0 1 1 0 8 0 zombiepl 144 9212 0 9210 2 1 1 1 0 8 0 processpl 896 9243 0 9210 4 0 4 4 0 8 0 procpl 632 24167 0 24121 32 27 5 5 0 8 0 srpgc 64 374 0 374 34 33 1 1 0 8 1 sosppl 128 189 0 189 38 38 0 1 0 8 0 sockpl 384 9550 0 9533 13 10 3 4 0 8 1 mcl64k 65536 19 0 0 3 0 3 3 0 8 0 mcl16k 16384 12 0 0 2 0 2 2 0 8 0 mcl12k 12288 33 0 0 2 0 2 2 0 8 0 mcl9k 9216 33 0 0 3 1 2 2 0 8 0 mcl8k 8192 22 0 0 3 1 2 3 0 8 0 mcl4k 4096 26 0 0 3 0 3 3 0 8 0 mcl2k2 2112 8 0 0 1 0 1 1 0 8 0 mcl2k 2048 127 0 0 13 1 12 13 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 622 0 0 13 1 12 12 0 8 0 bufpl 256 25909 0 18895 439 0 439 439 0 8 0 anonpl 16 1018793 0 1012021 218 176 42 47 0 124 4 amapchunkpl 152 76102 0 76004 120 112 8 11 0 158 3 amappl16 192 42459 0 42052 271 242 29 33 0 8 6 amappl15 184 1976 0 1976 19 18 1 1 0 8 1 amappl14 176 2362 0 2358 1 0 1 1 0 8 0 amappl13 168 1248 0 1245 22 21 1 1 0 8 0 amappl12 160 1084 0 1081 1 0 1 1 0 8 0 amappl11 152 1301 0 1288 1 0 1 1 0 8 0 amappl10 144 1360 0 1359 1 0 1 1 0 8 0 amappl9 136 3764 0 3758 1 0 1 1 0 8 0 amappl8 128 2718 0 2691 3 1 2 2 0 8 0 amappl7 120 1745 0 1736 1 0 1 1 0 8 0 amappl6 112 961 0 948 1 0 1 1 0 8 0 amappl5 104 2402 0 2392 1 0 1 1 0 8 0 amappl4 96 8898 0 8865 1 0 1 1 0 8 0 amappl3 88 2620 0 2609 1 0 1 1 0 8 0 amappl2 80 59796 0 59716 3 1 2 3 0 8 0 amappl1 72 258082 0 257611 23 13 10 19 0 8 0 amappl 80 27481 0 27440 1 0 1 1 0 84 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma64 64 259 0 259 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 17 0 17 1 1 0 1 0 8 0 aobjpl 64 141 0 12 3 0 3 3 0 8 0 uaddrrnd 24 9227 0 9210 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 9227 0 9210 1 0 1 1 0 8 0 vmmpekpl 168 76823 0 76791 2 0 2 2 0 8 0 vmmpepl 168 1188801 0 1187058 293 207 86 94 0 357 9 vmsppl 368 9226 0 9210 2 0 2 2 0 8 0 pdppl 4096 18461 0 18420 8 2 6 6 0 8 0 pvpl 32 2787616 0 2777027 479 365 114 125 0 265 17 pmappl 232 9226 0 9210 19 17 2 2 0 8 1 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 618 0 21 18 0 18 18 0 8 0