witness: thread 0xffff800020ace370 exiting with the following locks held: exclusive rrwlock inode r = 0 (0xfffffd8076ba15e8) #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_read+0x101 sys/kern/spec_vnops.c:225 #6 VOP_READ+0xca sys/kern/vfs_vops.c:247 #7 vn_read+0x17d sys/kern/vfs_vnops.c:366 #8 dofilereadv+0x1a2 sys/kern/sys_generic.c:236 #9 sys_read+0x83 sys/kern/sys_generic.c:156 #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 0xffff800020ace370 cannot exit while holding sleeplocks Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 99029 87849 73 0x100010 0 0 syslogd * 82654 59887 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(ffff800020ace370) 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 0xffff800020ace370 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(ffff800020ace370) 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 0xffff800020a5d450 rbx 0xffff800020a5d500 rdx 0xffff800020a5fb30 rcx 0 rax 0 r8 0xffffffff81adb933 kprintf+0x173 r9 0x1 r10 0x25 r11 0x747599f61fad64c0 r12 0x3000000008 r13 0xffff800020a5d460 r14 0x100 r15 0x1 rip 0xffffffff81a7b868 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020a5d440 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (reaper) pid=82654 stat=onproc flags process=14000 proc=200 pri=4, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020a11b28,0xffff800020a5f8c8 process=0xffff800020a4ae08 user=0xffff800020a58000, vmspace=0xffffffff82664870 estcpu=0, cpticks=1, pctcpu=0.37 user=0, sys=6, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 86812 125840 3114 32767 3 0x90 nanosleep syz-executor.1 3114 463179 57756 0 3 0x82 wait syz-executor.1 58223 12433 57756 0 3 0x82 wait syz-executor.0 27395 190168 0 0 3 0x14200 bored sosplice 57756 329458 2325 0 3 0x82 thrsleep syz-fuzzer 57756 47074 2325 0 3 0x4000082 thrsleep syz-fuzzer 57756 106619 2325 0 3 0x4000082 thrsleep syz-fuzzer 57756 256671 2325 0 3 0x4000082 thrsleep syz-fuzzer 57756 267227 2325 0 3 0x4000082 thrsleep syz-fuzzer 57756 315291 2325 0 3 0x4000082 kqread syz-fuzzer 57756 472794 2325 0 3 0x4000082 thrsleep syz-fuzzer 57756 457738 2325 0 3 0x4000082 thrsleep syz-fuzzer 57756 352691 2325 0 3 0x4000082 thrsleep syz-fuzzer 57756 224164 2325 0 3 0x4000082 thrsleep syz-fuzzer 2325 443553 73993 0 3 0x10008a pause ksh 73993 153892 79469 0 3 0x92 select sshd 73132 518056 1 0 3 0x100083 ttyin getty 79469 409733 1 0 3 0x80 select sshd 87849 99029 72750 73 7 0x100010 syslogd 72750 205012 1 0 3 0x100082 netio syslogd 54235 111701 1 77 3 0x100090 poll dhclient 75720 190204 1 0 3 0x80 poll dhclient 40410 43083 0 0 3 0x14200 pgzero zerothread 55054 397914 0 0 3 0x14200 aiodoned aiodoned 79804 283890 0 0 3 0x14200 syncer update 17497 257631 0 0 3 0x14200 cleaner cleaner *59887 82654 0 0 7 0x14200 reaper 34673 473585 0 0 3 0x14200 pgdaemon pagedaemon 16384 210928 0 0 3 0x14200 bored crynlk 84924 170546 0 0 3 0x14200 bored crypto 7346 466283 0 0 3 0x40014200 acpi0 acpi0 90530 188280 0 0 3 0x40014200 idle1 2068 19658 0 0 3 0x14200 bored softnet 25472 171278 0 0 3 0x14200 bored systqmp 49672 110241 0 0 3 0x14200 bored systq 17980 153064 0 0 3 0x40014200 bored softclock 80077 38607 0 0 3 0x40014200 idle0 28748 184302 0 0 3 0x14200 bored smr 1 50360 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 87849 (syslogd) thread 0xffff800020ac1158 (99029) exclusive rrwlock inode r = 0 (0xfffffd806eb5b1a8) #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 9457 6319K 6321K 78643K 11409 0 0 pcb 13 8K 8K 78643K 13 0 0 rtable 83 2K 3K 78643K 7997 0 0 ifaddr 31 13K 15K 78643K 1098 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 376 0 0 iov 0 0K 24K 78643K 830 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1215 76K 76K 78643K 5626 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 100 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 1K 1K 78643K 740 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 33K 78643K 10822 0 0 sigio 0 0K 0K 78643K 90 0 0 proc 41 38K 70K 78643K 8187 0 0 subproc 34 2K 2K 78643K 2958 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 950 0 0 in_multi 22 1K 2K 78643K 2282 0 0 ether_multi 1 0K 0K 78643K 82 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 60 265K 265K 78643K 60 0 0 exec 0 0K 1K 78643K 2972 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 120 22K 32K 78643K 34741 0 0 UVM aobj 130 5K 5K 78643K 156 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 533 0 0 NDP 4 0K 0K 78643K 525 0 0 temp 114 3554K 3668K 78643K 45705 0 0 kqueue 0 0K 0K 78643K 166 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 354 0 350 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 894 0 892 1 0 1 1 0 8 0 rtentry 112 1941 0 1908 2 0 2 2 0 8 0 unpcb 120 4131 0 4123 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 sackhl 24 2 0 2 2 2 0 1 0 8 0 tcpqe 32 124 0 124 9 9 0 1 0 8 0 tcpcb 544 1986 0 1982 1 0 1 1 0 8 0 ipq 40 19 0 19 10 10 0 1 0 8 0 ipqe 40 45 0 45 10 10 0 1 0 8 0 inpcb 280 5463 0 5456 3 2 1 2 0 8 0 nd6 48 522 0 519 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 7976 0 7828 21 8 13 13 0 8 2 art_table 32 7977 0 7828 2 0 2 2 0 8 0 art_node 16 1940 0 1910 1 0 1 1 0 8 0 sysvmsgpl 40 13 0 8 1 0 1 1 0 8 0 semapl 112 738 0 728 1 0 1 1 0 8 0 shmpl 112 154 0 26 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 12919 0 11463 48 0 48 48 0 8 0 ffsino 272 12919 0 11463 100 2 98 98 0 8 0 nchpl 144 25548 0 23915 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 98893 0 98893 4 3 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 86220 0 86220 31 30 1 7 0 8 1 plimitpl 152 1808 0 1799 1 0 1 1 0 8 0 sigapl 432 10477 0 10463 13 11 2 3 0 8 0 futexpl 56 87898 0 87898 4 3 1 1 0 8 1 knotepl 112 5440 0 5421 1 0 1 1 0 8 0 kqueuepl 104 2224 0 2222 1 0 1 1 0 8 0 pipepl 112 4846 0 4827 10 9 1 2 0 8 0 fdescpl 488 10478 0 10463 3 0 3 3 0 8 0 filepl 152 57583 0 57486 30 25 5 7 0 8 0 lockfpl 104 2092 0 2092 30 29 1 1 0 8 1 lockfspl 48 795 0 795 30 29 1 1 0 8 1 sessionpl 112 189 0 179 1 0 1 1 0 8 0 pgrppl 48 276 0 266 1 0 1 1 0 8 0 ucredpl 96 16723 0 16714 1 0 1 1 0 8 0 zombiepl 144 10464 0 10462 5 4 1 1 0 8 0 processpl 896 10494 0 10462 4 0 4 4 0 8 0 procpl 632 25997 0 25955 32 27 5 5 0 8 0 srpgc 64 346 0 346 33 32 1 1 0 8 1 sosppl 128 181 0 181 33 32 1 1 0 8 1 sockpl 384 10675 0 10658 24 21 3 4 0 8 1 mcl64k 65536 17 0 0 3 0 3 3 0 8 0 mcl16k 16384 5 0 0 1 0 1 1 0 8 0 mcl12k 12288 44 0 0 2 0 2 2 0 8 0 mcl9k 9216 21 0 0 2 0 2 2 0 8 0 mcl8k 8192 10 0 0 2 0 2 2 0 8 0 mcl4k 4096 25 0 0 4 1 3 3 0 8 0 mcl2k2 2112 8 0 0 1 0 1 1 0 8 0 mcl2k 2048 468 0 0 15 7 8 15 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 831 0 0 14 2 12 14 0 8 0 bufpl 256 34548 0 27534 439 0 439 439 0 8 0 anonpl 16 1543489 0 1538220 151 114 37 49 0 124 0 amapchunkpl 152 85437 0 85349 152 144 8 18 0 158 3 amappl16 192 70201 0 69942 256 234 22 32 0 8 0 amappl15 184 2067 0 2067 17 16 1 1 0 8 1 amappl14 176 2748 0 2740 1 0 1 1 0 8 0 amappl13 168 833 0 830 1 0 1 1 0 8 0 amappl12 160 1218 0 1215 12 11 1 1 0 8 0 amappl11 152 2254 0 2241 1 0 1 1 0 8 0 amappl10 144 1452 0 1448 2 1 1 1 0 8 0 amappl9 136 3513 0 3508 1 0 1 1 0 8 0 amappl8 128 2726 0 2658 3 0 3 3 0 8 0 amappl7 120 1804 0 1796 1 0 1 1 0 8 0 amappl6 112 1741 0 1728 1 0 1 1 0 8 0 amappl5 104 2565 0 2554 1 0 1 1 0 8 0 amappl4 96 9808 0 9768 5 3 2 2 0 8 1 amappl3 88 3449 0 3437 1 0 1 1 0 8 0 amappl2 80 70865 0 70793 4 2 2 3 0 8 0 amappl1 72 275341 0 274891 37 28 9 19 0 8 0 amappl 80 29248 0 29212 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 155 0 26 3 0 3 3 0 8 0 uaddrrnd 24 10478 0 10462 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 10478 0 10462 1 0 1 1 0 8 0 vmmpekpl 168 80945 0 80914 3 0 3 3 0 8 0 vmmpepl 168 1322164 0 1320636 342 263 79 87 0 357 6 vmsppl 368 10477 0 10462 2 0 2 2 0 8 0 pdppl 4096 20963 0 20924 8 2 6 6 0 8 1 pvpl 32 3836859 0 3828328 438 335 103 128 0 265 0 pmappl 232 10477 0 10462 23 22 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 620 0 27 17 0 17 17 0 8 0