login: witness: thread 0xffff800020b8a290 exiting with the following locks held: exclusive rrwlock inode r = 0 (0xfffffd806e5f8f88) #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_rdwr+0x109 vn_lock sys/kern/vfs_vnops.c:561 [inline] #4 vn_rdwr+0x109 sys/kern/vfs_vnops.c:317 #5 acct_process+0x5db sys/kern/kern_acct.c:221 #6 exit1+0x361 sys/kern/kern_exit.c:208 #7 sys_exit+0x17 sys/kern/kern_exit.c:94 #8 syscall+0x552 mi_syscall sys/sys/syscall_mi.h:92 [inline] #8 syscall+0x552 sys/arch/amd64/amd64/trap.c:555 #9 Xsyscall+0x128 panic: thread 0xffff800020b8a290 cannot exit while holding sleeplocks Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 326026 96900 73 0x100010 0 0 syslogd *267261 90415 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(ffff800020b8a290) at witness_thread_exit+0x213 sys/kern/subr_witness.c:1364 reaper(ffff800020aff640) 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 0xffff800020b8a290 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(ffff800020b8a290) at witness_thread_exit+0x213 sys/kern/subr_witness.c:1364 reaper(ffff800020aff640) at reaper+0x14c sys/kern/kern_exit.c:423 end trace frame: 0x0, count: -4 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020afd210 rbx 0xffff800020afd2c0 rdx 0xffff800020aff640 rcx 0 rax 0 r8 0xffffffff815a9073 kprintf+0x173 r9 0x1 r10 0x25 r11 0x93d1a31b0001b87 r12 0x3000000008 r13 0xffff800020afd220 r14 0x100 r15 0x1 rip 0xffffffff81e595e8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020afd200 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (reaper) pid=267261 stat=onproc flags process=14000 proc=200 pri=4, usrpri=52, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab1638,0xffff800020aff3d8 process=0xffff800020aea708 user=0xffff800020af8000, vmspace=0xffffffff8236a918 estcpu=2, cpticks=8, pctcpu=0.60 user=0, sys=5, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 2979 236763 1 0 3 0x100083 ttyin getty 59355 333562 0 0 3 0x14200 acct acct 51039 223368 99971 0 3 0x82 nanosleep syz-executor.1 20888 91699 99971 0 3 0x82 nanosleep syz-executor.0 9965 194282 0 0 3 0x14200 bored sosplice 99971 208520 86174 0 3 0x82 thrsleep syz-fuzzer 99971 257214 86174 0 3 0x4000082 thrsleep syz-fuzzer 99971 20669 86174 0 3 0x4000082 thrsleep syz-fuzzer 99971 288936 86174 0 3 0x4000082 thrsleep syz-fuzzer 99971 274351 86174 0 3 0x4000082 thrsleep syz-fuzzer 99971 73389 86174 0 3 0x4000082 thrsleep syz-fuzzer 99971 274961 86174 0 3 0x4000082 thrsleep syz-fuzzer 99971 11676 86174 0 3 0x4000082 thrsleep syz-fuzzer 99971 74928 86174 0 3 0x4000082 thrsleep syz-fuzzer 99971 171414 86174 0 3 0x4000082 kqread syz-fuzzer 86174 350854 80025 0 3 0x10008a pause ksh 80025 281183 70944 0 3 0x92 select sshd 70944 83639 1 0 3 0x80 select sshd 35110 457835 65716 74 3 0x100092 bpf pflogd 65716 277639 1 0 3 0x80 netio pflogd 96900 326026 93518 73 7 0x100010 syslogd 93518 109948 1 0 3 0x100082 netio syslogd 32201 177922 1 77 3 0x100090 poll dhclient 61241 140016 1 0 3 0x80 poll dhclient 60962 180062 0 0 3 0x14200 pgzero zerothread 71986 505585 0 0 3 0x14200 aiodoned aiodoned 24666 201041 0 0 3 0x14200 syncer update 88980 198052 0 0 3 0x14200 cleaner cleaner *90415 267261 0 0 7 0x14200 reaper 72736 254018 0 0 3 0x14200 pgdaemon pagedaemon 48497 338345 0 0 3 0x14200 bored crynlk 51471 228604 0 0 3 0x14200 bored crypto 61199 501159 0 0 3 0x40014200 acpi0 acpi0 2840 330214 0 0 3 0x40014200 idle1 91425 512327 0 0 3 0x14200 bored softnet 90802 162092 0 0 3 0x14200 bored systqmp 13790 390466 0 0 3 0x14200 bored systq 66209 237339 0 0 3 0x40014200 bored softclock 99456 20628 0 0 3 0x40014200 idle0 67182 313789 0 0 3 0x14200 bored smr 1 406956 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 96900 (syslogd) thread 0xffff800020b609f0 (326026) exclusive rrwlock inode r = 0 (0xfffffd806eb01d58) #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 9614 6468K 7724K 78643K 26936 0 0 pcb 13 8K 8K 78643K 536 0 0 rtable 115 12K 13K 78643K 2047 0 0 ifaddr 87 19K 22K 78643K 758 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1756 0 0 iov 0 0K 20K 78643K 708 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1206 76K 77K 78643K 7213 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 91 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 0K 78643K 686 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 4 9K 25K 78643K 6535 0 0 sigio 0 0K 0K 78643K 95 0 0 proc 54 51K 71K 78643K 1741 0 0 subproc 32 2K 2K 78643K 327 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 543 0 0 in_multi 33 2K 2K 78643K 400 0 0 ether_multi 1 0K 0K 78643K 26 0 0 mrt 0 0K 0K 78643K 27 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 108 477K 477K 78643K 108 0 0 exec 0 0K 1K 78643K 1012 0 0 pfkey data 0 0K 4K 78643K 6 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 109 22K 31K 78643K 22522 0 0 UVM aobj 130 6K 6K 78643K 149 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 345 0 0 NDP 21 0K 0K 78643K 227 0 0 temp 235 2753K 3392K 78643K 63839 0 0 kqueue 0 0K 0K 78643K 57 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 42 0 36 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 236 0 234 1 0 1 1 0 8 0 rtentry 112 242 0 198 3 1 2 2 0 8 0 unpcb 120 1960 0 1950 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 8366 0 8366 1 1 0 1 0 8 0 tcpcb 544 1044 0 1040 1 0 1 1 0 8 0 inpcb 280 3161 0 3154 6 5 1 2 0 8 0 rttmr 72 4 0 4 4 4 0 1 0 8 0 ip6q 72 1 0 1 1 1 0 1 0 8 0 ip6af 48 4 0 4 1 1 0 1 0 8 0 nd6 48 57 0 51 1 0 1 1 0 8 0 pkpcb 40 24 0 24 10 9 1 1 0 8 1 swfcl 56 7 0 0 1 0 1 1 0 8 0 ppxss 1128 129 0 129 18 17 1 1 0 8 1 pffrag 232 10 0 10 6 6 0 1 0 482 0 pffrnode 88 10 0 10 6 6 0 1 0 8 0 pffrent 40 29 0 29 6 6 0 1 0 8 0 pfosfp 40 846 0 846 5 5 0 5 0 8 0 pfosfpen 112 1428 0 1428 21 21 0 21 0 8 0 pfstitem 24 191 0 168 1 0 1 1 0 8 0 pfstkey 112 192 0 169 2 0 2 2 0 8 0 pfstate 328 192 0 169 5 2 3 4 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1006 0 815 18 6 12 14 0 8 0 art_table 32 1007 0 815 2 0 2 2 0 8 0 art_node 16 237 0 197 1 0 1 1 0 8 0 sysvmsgpl 40 20 0 16 1 0 1 1 0 8 0 semapl 112 682 0 672 1 0 1 1 0 8 0 shmpl 112 147 0 19 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 11587 0 10170 47 0 47 47 0 8 0 ffsino 272 11587 0 10170 96 0 96 96 0 8 0 nchpl 144 20821 0 19194 62 0 62 62 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 68193 0 68193 3 2 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scsiplug 64 13 0 13 8 7 1 1 0 8 1 scxspl 192 65306 0 65306 35 34 1 6 0 8 1 plimitpl 152 613 0 605 1 0 1 1 0 8 0 sigapl 432 6690 0 6676 3 1 2 3 0 8 0 futexpl 56 79089 0 79089 2 1 1 1 0 8 1 knotepl 112 1312 0 1293 2 1 1 2 0 8 0 kqueuepl 104 1345 0 1343 1 0 1 1 0 8 0 pipepl 112 3902 0 3883 10 9 1 2 0 8 0 fdescpl 488 6691 0 6676 3 0 3 3 0 8 0 filepl 152 39701 0 39602 16 11 5 7 0 8 1 lockfpl 104 2273 0 2273 4 3 1 1 0 8 1 lockfspl 48 777 0 777 4 3 1 1 0 8 1 sessionpl 112 41 0 30 1 0 1 1 0 8 0 pgrppl 48 113 0 102 1 0 1 1 0 8 0 ucredpl 96 7931 0 7922 1 0 1 1 0 8 0 zombiepl 144 6678 0 6676 4 3 1 1 0 8 0 processpl 896 6710 0 6676 4 0 4 4 0 8 0 procpl 632 20824 0 20780 10 5 5 5 0 8 0 srpgc 64 38 0 38 17 17 0 1 0 8 0 sosppl 128 82 0 82 19 18 1 1 0 8 1 sockpl 384 5442 0 5423 12 9 3 4 0 8 1 mcl64k 65536 271 0 0 34 27 7 34 0 8 1 mcl16k 16384 14 0 0 2 0 2 2 0 8 0 mcl12k 12288 25 0 0 2 0 2 2 0 8 0 mcl9k 9216 25 0 0 2 0 2 2 0 8 0 mcl8k 8192 19 0 0 3 1 2 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 6 0 0 1 0 1 1 0 8 0 mcl2k 2048 187 0 0 21 5 16 21 0 8 0 mtagpl 80 26 0 0 1 0 1 1 0 8 0 mbufpl 256 502 0 0 22 0 22 22 0 8 0 bufpl 256 27041 0 20012 440 0 440 440 0 8 0 anonpl 16 645726 0 633389 176 112 64 81 0 125 9 amapchunkpl 152 40624 0 40514 64 59 5 12 0 158 0 amappl16 192 33436 0 32758 185 145 40 58 0 8 6 amappl15 184 1763 0 1762 1 0 1 1 0 8 0 amappl14 176 2243 0 2237 1 0 1 1 0 8 0 amappl13 168 656 0 656 3 3 0 1 0 8 0 amappl12 160 1122 0 1118 1 0 1 1 0 8 0 amappl11 152 1401 0 1386 1 0 1 1 0 8 0 amappl10 144 281 0 276 1 0 1 1 0 8 0 amappl9 136 1840 0 1837 1 0 1 1 0 8 0 amappl8 128 1377 0 1344 2 0 2 2 0 8 0 amappl7 120 259 0 251 1 0 1 1 0 8 0 amappl6 112 1315 0 1305 1 0 1 1 0 8 0 amappl5 104 1389 0 1373 1 0 1 1 0 8 0 amappl4 96 5758 0 5724 2 1 1 2 0 8 0 amappl3 88 2882 0 2871 1 0 1 1 0 8 0 amappl2 80 53086 0 53006 3 1 2 3 0 8 0 amappl1 72 153627 0 153168 25 15 10 20 0 8 0 amappl 80 21363 0 21324 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 148 0 19 3 0 3 3 0 8 0 uaddrrnd 24 6691 0 6674 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 6691 0 6674 1 0 1 1 0 8 0 vmmpekpl 168 49596 0 49558 3 0 3 3 0 8 0 vmmpepl 168 821438 0 819505 317 224 93 105 0 357 8 vmsppl 368 6690 0 6674 2 0 2 2 0 8 0 pdppl 4096 13390 0 13348 6 0 6 6 0 8 0 pvpl 32 1701066 0 1685436 381 220 161 195 0 265 31 pmappl 232 6690 0 6674 2 1 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 659 0 44 19 0 19 19 0 8 0