login: witness: thread 0xffff800020ab0c70 exiting with the following locks held: exclusive rrwlock inode r = 0 (0xfffffd80679d7f88) #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 0xffff800020ab0c70 cannot exit while holding sleeplocks Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *306371 76837 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(ffff800020ab0c70) 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 0xffff800020ab0c70 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(ffff800020ab0c70) 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 0xffff800020a5cfd0 rbx 0xffff800020a5d080 rdx 0xffff800020a5fb30 rcx 0 rax 0 r8 0xffffffff8145b623 kprintf+0x173 r9 0x1 r10 0x25 r11 0x2bcae9a795e25719 r12 0x3000000008 r13 0xffff800020a5cfe0 r14 0x100 r15 0x1 rip 0xffffffff81c821e8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020a5cfc0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (reaper) pid=306371 stat=onproc flags process=14000 proc=200 pri=4, usrpri=52, nice=20 forw=0xffffffffffffffff, list=0xffff800020a11b28,0xffff800020a5e9f8 process=0xffff800020a4ae08 user=0xffff800020a58000, vmspace=0xffffffff8262f4c8 estcpu=2, cpticks=9, pctcpu=1.3 user=0, sys=5, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 59549 362724 1 0 3 0x100083 ttyin getty 59242 244486 20986 0 3 0x82 nanosleep syz-executor.0 28330 313672 0 0 3 0x14200 acct acct 56250 324513 0 0 3 0x14200 bored sosplice 12706 325111 20986 0 3 0x82 nanosleep syz-executor.1 20986 57912 69394 0 3 0x82 kqread syz-fuzzer 20986 268699 69394 0 3 0x4000082 thrsleep syz-fuzzer 20986 160913 69394 0 3 0x4000082 thrsleep syz-fuzzer 20986 165638 69394 0 3 0x4000082 thrsleep syz-fuzzer 20986 397657 69394 0 3 0x4000082 thrsleep syz-fuzzer 20986 516721 69394 0 3 0x4000082 thrsleep syz-fuzzer 20986 405250 69394 0 3 0x4000082 thrsleep syz-fuzzer 20986 111429 69394 0 3 0x4000082 thrsleep syz-fuzzer 20986 491157 69394 0 3 0x4000082 thrsleep syz-fuzzer 20986 285327 69394 0 3 0x4000082 thrsleep syz-fuzzer 69394 172383 3396 0 3 0x10008a pause ksh 3396 371210 73828 0 3 0x92 select sshd 73828 11984 1 0 3 0x80 select sshd 28855 143921 66568 74 3 0x100092 bpf pflogd 66568 311882 1 0 3 0x80 netio pflogd 4334 501645 96334 73 3 0x100010 ffs_fsync syslogd 96334 98748 1 0 3 0x100082 netio syslogd 76195 173932 1 77 3 0x100090 poll dhclient 61621 95281 1 0 3 0x80 poll dhclient 28545 197600 0 0 3 0x14200 pgzero zerothread 45703 99412 0 0 3 0x14200 aiodoned aiodoned 71777 252895 0 0 3 0x14200 syncer update 78569 450550 0 0 3 0x14200 cleaner cleaner *76837 306371 0 0 7 0x14200 reaper 45676 435249 0 0 3 0x14200 pgdaemon pagedaemon 40466 460307 0 0 3 0x14200 bored crynlk 44022 9329 0 0 3 0x14200 bored crypto 42671 365371 0 0 3 0x40014200 acpi0 acpi0 30289 174431 0 0 3 0x40014200 idle1 89247 500403 0 0 3 0x14200 bored softnet 76531 20138 0 0 3 0x14200 bored systqmp 19449 346900 0 0 3 0x14200 bored systq 13213 8577 0 0 3 0x40014200 bored softclock 54647 408028 0 0 7 0x40014200 idle0 22729 214553 0 0 3 0x14200 bored smr 1 271393 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 4334 (syslogd) thread 0xffff800020ac0c68 (501645) exclusive rrwlock inode r = 0 (0xfffffd806eb236f8) #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 9554 7062K 7579K 78643K 14387 0 0 pcb 13 8K 8K 78643K 159 0 0 rtable 113 4K 5K 78643K 581 0 0 ifaddr 72 15K 15K 78643K 206 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1538 0 0 iov 0 0K 20K 78643K 178 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1213 76K 77K 78643K 2562 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 18 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 0K 78643K 154 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 4 9K 25K 78643K 1491 0 0 sigio 0 0K 0K 78643K 27 0 0 proc 53 50K 83K 78643K 706 0 0 subproc 32 2K 2K 78643K 85 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 158 0 0 in_multi 33 2K 2K 78643K 105 0 0 ether_multi 1 0K 0K 78643K 3 0 0 mrt 0 0K 0K 78643K 5 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 345 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 97 21K 25K 78643K 5858 0 0 UVM aobj 73 5K 5K 78643K 81 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 52 0 0 NDP 16 0K 0K 78643K 59 0 0 temp 200 3544K 4184K 78643K 14955 0 0 kqueue 0 0K 0K 78643K 9 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 12 0 6 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 80 0 78 1 0 1 1 0 8 0 rtentry 112 82 0 38 2 0 2 2 0 8 0 unpcb 120 557 0 547 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 8112 0 8112 2 2 0 1 0 8 0 tcpcb 544 215 0 211 1 0 1 1 0 8 0 inpcb 280 692 0 685 2 1 1 2 0 8 0 rttmr 72 2 0 2 2 2 0 1 0 8 0 nd6 48 15 0 9 1 0 1 1 0 8 0 pkpcb 40 5 0 5 2 1 1 1 0 8 1 ppxss 1128 22 0 22 3 2 1 1 0 8 1 pffrag 232 3 0 3 1 1 0 1 0 482 0 pffrnode 88 3 0 3 1 1 0 1 0 8 0 pffrent 40 10 0 10 1 1 0 1 0 8 0 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 46 0 27 1 0 1 1 0 8 0 pfstkey 112 46 0 27 1 0 1 1 0 8 0 pfstate 328 46 0 27 2 0 2 2 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 326 0 135 12 0 12 12 0 8 0 art_table 32 327 0 135 2 0 2 2 0 8 0 art_node 16 79 0 39 1 0 1 1 0 8 0 sysvmsgpl 40 23 0 14 1 0 1 1 0 8 0 semapl 112 152 0 142 1 0 1 1 0 8 0 shmpl 112 79 0 8 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3729 0 2309 47 0 47 47 0 8 0 ffsino 272 3729 0 2309 96 0 96 96 0 8 0 nchpl 144 6078 0 4439 62 0 62 62 0 8 0 uvmvnodes 72 4711 0 0 86 0 86 86 0 8 0 vnodes 200 4711 0 0 248 0 248 248 0 8 0 namei 1024 18858 0 18858 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scsiplug 64 4 0 4 3 2 1 1 0 8 1 scxspl 192 19150 0 19149 13 12 1 7 0 8 0 plimitpl 152 141 0 133 1 0 1 1 0 8 0 sigapl 432 1683 0 1669 3 1 2 3 0 8 0 futexpl 56 17500 0 17500 1 0 1 1 0 8 1 knotepl 112 397 0 378 1 0 1 1 0 8 0 kqueuepl 104 361 0 359 1 0 1 1 0 8 0 pipepl 112 1022 0 1003 5 3 2 2 0 8 1 fdescpl 488 1684 0 1669 3 0 3 3 0 8 0 filepl 152 9993 0 9894 13 6 7 7 0 8 3 lockfpl 104 492 0 492 2 1 1 1 0 8 1 lockfspl 48 165 0 165 2 1 1 1 0 8 1 sessionpl 112 22 0 11 1 0 1 1 0 8 0 pgrppl 48 40 0 29 1 0 1 1 0 8 0 ucredpl 96 1832 0 1823 1 0 1 1 0 8 0 zombiepl 144 1669 0 1667 2 1 1 1 0 8 0 processpl 896 1701 0 1667 4 0 4 4 0 8 0 procpl 632 4922 0 4878 5 0 5 5 0 8 1 srpgc 64 8 0 8 5 5 0 1 0 8 0 sosppl 128 12 0 12 3 2 1 1 0 8 1 sockpl 384 1342 0 1323 6 2 4 4 0 8 1 mcl64k 65536 9 0 0 2 0 2 2 0 8 0 mcl16k 16384 4 0 0 1 0 1 1 0 8 0 mcl12k 12288 9 0 0 1 0 1 1 0 8 0 mcl9k 9216 5 0 0 1 0 1 1 0 8 0 mcl8k 8192 7 0 0 1 0 1 1 0 8 0 mcl4k 4096 8 0 0 1 0 1 1 0 8 0 mcl2k2 2112 6 0 0 1 0 1 1 0 8 0 mcl2k 2048 152 0 0 18 0 18 18 0 8 0 mtagpl 80 30 0 0 1 0 1 1 0 8 0 mbufpl 256 230 0 0 11 0 11 11 0 8 0 bufpl 256 12414 0 5395 439 0 439 439 0 8 0 anonpl 16 157362 0 145175 91 34 57 66 0 124 7 amapchunkpl 152 9747 0 9635 19 9 10 10 0 158 5 amappl16 192 7827 0 7158 64 29 35 46 0 8 1 amappl15 184 201 0 199 3 2 1 1 0 8 0 amappl14 176 846 0 837 1 0 1 1 0 8 0 amappl13 168 7 0 7 2 2 0 1 0 8 0 amappl12 160 10 0 10 1 1 0 1 0 8 0 amappl11 152 69 0 53 1 0 1 1 0 8 0 amappl10 144 203 0 199 1 0 1 1 0 8 0 amappl9 136 923 0 920 1 0 1 1 0 8 0 amappl8 128 477 0 458 1 0 1 1 0 8 0 amappl7 120 171 0 165 1 0 1 1 0 8 0 amappl6 112 71 0 64 1 0 1 1 0 8 0 amappl5 104 169 0 155 1 0 1 1 0 8 0 amappl4 96 1770 0 1738 2 1 1 2 0 8 0 amappl3 88 1198 0 1181 1 0 1 1 0 8 0 amappl2 80 12354 0 12274 3 1 2 3 0 8 0 amappl1 72 46695 0 46245 25 15 10 20 0 8 0 amappl 80 5220 0 5180 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 80 0 8 2 0 2 2 0 8 0 uaddrrnd 24 1684 0 1667 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1684 0 1667 1 0 1 1 0 8 0 vmmpekpl 168 17031 0 16999 2 0 2 2 0 8 0 vmmpepl 168 209896 0 208002 163 71 92 102 0 357 9 vmsppl 368 1683 0 1667 2 0 2 2 0 8 0 pdppl 4096 3375 0 3334 7 1 6 6 0 8 0 pvpl 32 461652 0 446199 214 69 145 162 0 265 20 pmappl 232 1683 0 1667 2 1 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 601 0 5 18 0 18 18 0 8 0