witness: thread 0xffff800020aab650 exiting with the following locks held: exclusive rrwlock inode r = 0 (0xfffffd80662b45f8) #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 0xffff800020aab650 cannot exit while holding sleeplocks Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 239786 29798 73 0x100010 0 1 syslogd *319503 44397 0 0x14000 0x200 0 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(ffff800020aab650) 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{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic thread 0xffff800020aab650 cannot exit while holding sleeplocks ddb{0}> 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(ffff800020aab650) 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{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020a5d850 rbx 0xffff800020a5d900 rdx 0xffff800020a5fb30 rcx 0 rax 0 r8 0xffffffff8145b623 kprintf+0x173 r9 0x1 r10 0x25 r11 0x71efa9754d9910e0 r12 0x3000000008 r13 0xffff800020a5d860 r14 0x100 r15 0x1 rip 0xffffffff81c821e8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020a5d840 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (reaper) pid=319503 stat=onproc flags process=14000 proc=200 pri=4, usrpri=55, nice=20 forw=0xffffffffffffffff, list=0xffff800020a11b28,0xffff800020a5eee8 process=0xffff800020a4a008 user=0xffff800020a58000, vmspace=0xffffffff8262f4c8 estcpu=5, cpticks=8, pctcpu=0.62 user=0, sys=6, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 61915 415956 96933 0 3 0x80 nanosleep syz-executor.0 61915 338268 96933 0 2 0x4000000 syz-executor.0 8828 449850 47111 0 3 0x82 nanosleep syz-executor.1 27730 352354 1 0 2 0x100083 getty 55776 29886 0 0 3 0x14200 bored sosplice 94644 427678 0 0 3 0x14200 acct acct 96933 74043 47111 0 3 0x82 nanosleep syz-executor.0 47111 290176 17803 0 3 0x82 thrsleep syz-fuzzer 47111 430050 17803 0 3 0x4000082 thrsleep syz-fuzzer 47111 511703 17803 0 3 0x4000082 thrsleep syz-fuzzer 47111 447479 17803 0 3 0x4000082 thrsleep syz-fuzzer 47111 514083 17803 0 3 0x4000082 thrsleep syz-fuzzer 47111 32799 17803 0 3 0x4000082 thrsleep syz-fuzzer 47111 139933 17803 0 3 0x4000082 thrsleep syz-fuzzer 47111 263077 17803 0 3 0x4000082 thrsleep syz-fuzzer 47111 81655 17803 0 3 0x4000082 thrsleep syz-fuzzer 47111 258656 17803 0 3 0x4000082 kqread syz-fuzzer 17803 319558 59157 0 3 0x10008a pause ksh 59157 154699 48036 0 3 0x92 select sshd 48036 286119 1 0 3 0x80 select sshd 92535 228375 79626 74 3 0x100092 bpf pflogd 79626 323740 1 0 3 0x80 netio pflogd 29798 239786 18307 73 7 0x100010 syslogd 18307 247950 1 0 3 0x100082 netio syslogd 4424 112766 1 77 3 0x100090 poll dhclient 38223 13211 1 0 3 0x80 poll dhclient 52191 194508 0 0 3 0x14200 pgzero zerothread 98990 322613 0 0 3 0x14200 aiodoned aiodoned 6334 46611 0 0 3 0x14200 syncer update 53680 426767 0 0 3 0x14200 cleaner cleaner *44397 319503 0 0 7 0x14200 reaper 84885 304727 0 0 3 0x14200 pgdaemon pagedaemon 73144 441807 0 0 3 0x14200 bored crynlk 18920 102528 0 0 3 0x14200 bored crypto 67143 37080 0 0 3 0x40014200 acpi0 acpi0 50235 504042 0 0 3 0x40014200 idle1 56622 453464 0 0 3 0x14200 bored softnet 97507 62752 0 0 3 0x14200 bored systqmp 92173 162271 0 0 3 0x14200 bored systq 1084 208880 0 0 2 0x40014200 softclock 91589 331205 0 0 3 0x40014200 idle0 48345 74339 0 0 2 0x40014200 smr 1 352214 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 29798 (syslogd) thread 0xffff800020ac0c68 (239786) exclusive rrwlock inode r = 0 (0xfffffd806eb50d58) #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{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9564 6681K 7182K 78643K 12464 0 0 pcb 13 8K 8K 78643K 80 0 0 rtable 111 4K 4K 78643K 407 0 0 ifaddr 68 14K 15K 78643K 148 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1494 0 0 iov 0 0K 16K 78643K 101 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1218 77K 77K 78643K 1834 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 12 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 0K 78643K 116 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 699 0 0 sigio 0 0K 0K 78643K 18 0 0 proc 53 50K 83K 78643K 536 0 0 subproc 32 2K 2K 78643K 51 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 49 0 0 in_multi 33 2K 2K 78643K 59 0 0 ether_multi 1 0K 0K 78643K 6 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 265 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 99 21K 30K 78643K 3235 0 0 UVM aobj 34 3K 3K 78643K 38 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 40 0 0 NDP 15 0K 0K 78643K 40 0 0 temp 185 3538K 3602K 78643K 5546 0 0 kqueue 0 0K 0K 78643K 7 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 8 0 2 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 55 0 53 1 0 1 1 0 8 0 rtentry 112 58 0 14 2 0 2 2 0 8 0 unpcb 120 213 0 203 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 6553 0 6553 1 1 0 1 0 8 0 tcpcb 544 124 0 120 1 0 1 1 0 8 0 inpcb 280 356 0 349 2 0 2 2 0 8 1 nd6 48 9 0 3 1 0 1 1 0 8 0 ppxss 1128 17 0 17 3 2 1 1 0 8 1 pffrag 232 1 0 1 1 1 0 1 0 482 0 pffrnode 88 1 0 1 1 1 0 1 0 8 0 pffrent 40 2 0 2 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 26 0 15 1 0 1 1 0 8 0 pfstkey 112 26 0 15 1 0 1 1 0 8 0 pfstate 328 26 0 15 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 236 0 44 12 0 12 12 0 8 0 art_table 32 237 0 44 2 0 2 2 0 8 0 art_node 16 55 0 15 1 0 1 1 0 8 0 sysvmsgpl 40 17 0 6 1 0 1 1 0 8 0 semapl 112 114 0 104 1 0 1 1 0 8 0 shmpl 112 36 0 4 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2471 0 1048 47 0 47 47 0 8 0 ffsino 272 2471 0 1048 96 0 96 96 0 8 0 nchpl 144 3624 0 1998 62 0 62 62 0 8 0 uvmvnodes 72 2943 0 0 54 0 54 54 0 8 0 vnodes 200 2943 0 0 155 0 155 155 0 8 0 namei 1024 10791 0 10791 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scsiplug 64 3 0 3 2 1 1 1 0 8 1 scxspl 192 10323 0 10323 12 11 1 7 0 8 1 plimitpl 152 83 0 75 1 0 1 1 0 8 0 sigapl 432 897 0 882 3 1 2 3 0 8 0 futexpl 56 8133 0 8133 1 0 1 1 0 8 1 knotepl 112 147 0 128 1 0 1 1 0 8 0 kqueuepl 104 96 0 94 1 0 1 1 0 8 0 pipepl 112 538 0 519 2 1 1 2 0 8 0 fdescpl 488 898 0 882 5 2 3 3 0 8 0 filepl 152 5036 0 4936 8 3 5 7 0 8 0 lockfpl 104 203 0 203 2 1 1 1 0 8 1 lockfspl 48 69 0 69 2 1 1 1 0 8 1 sessionpl 112 20 0 9 1 0 1 1 0 8 0 pgrppl 48 30 0 19 1 0 1 1 0 8 0 ucredpl 96 959 0 949 1 0 1 1 0 8 0 zombiepl 144 882 0 881 2 1 1 1 0 8 0 processpl 896 915 0 881 4 0 4 4 0 8 0 procpl 632 2409 0 2365 6 1 5 5 0 8 1 srpgc 64 2 0 2 1 1 0 1 0 8 0 sosppl 128 5 0 5 2 2 0 1 0 8 0 sockpl 384 628 0 609 5 2 3 4 0 8 1 mcl64k 65536 512 0 0 64 4 60 64 0 8 1 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 9 0 0 1 0 1 1 0 8 0 mcl9k 9216 7 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 6 0 0 1 0 1 1 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 163 0 0 20 0 20 20 0 8 0 mtagpl 80 11 0 0 1 0 1 1 0 8 0 mbufpl 256 631 0 0 37 0 37 37 0 8 0 bufpl 256 7161 0 1168 375 0 375 375 0 8 0 anonpl 16 103374 0 91153 79 13 66 67 0 124 14 amapchunkpl 152 5487 0 5374 13 5 8 10 0 158 2 amappl16 192 4483 0 3789 58 15 43 47 0 8 8 amappl14 176 60 0 54 1 0 1 1 0 8 0 amappl13 168 546 0 541 1 0 1 1 0 8 0 amappl12 160 8 0 7 2 1 1 1 0 8 0 amappl11 152 175 0 160 1 0 1 1 0 8 0 amappl10 144 74 0 70 1 0 1 1 0 8 0 amappl9 136 599 0 596 1 0 1 1 0 8 0 amappl8 128 160 0 139 1 0 1 1 0 8 0 amappl7 120 41 0 35 1 0 1 1 0 8 0 amappl6 112 174 0 168 1 0 1 1 0 8 0 amappl5 104 165 0 150 1 0 1 1 0 8 0 amappl4 96 1168 0 1135 2 1 1 2 0 8 0 amappl3 88 210 0 198 1 0 1 1 0 8 0 amappl2 80 6720 0 6637 3 1 2 3 0 8 0 amappl1 72 29157 0 28701 26 16 10 20 0 8 0 amappl 80 2679 0 2639 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 37 0 4 1 0 1 1 0 8 0 uaddrrnd 24 898 0 881 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 898 0 881 1 0 1 1 0 8 0 vmmpekpl 168 10917 0 10882 2 0 2 2 0 8 0 vmmpepl 168 115575 0 113649 134 42 92 103 0 357 8 vmsppl 368 897 0 881 2 0 2 2 0 8 0 pdppl 4096 1803 0 1762 7 1 6 6 0 8 0 pvpl 32 292310 0 276836 194 29 165 165 0 265 36 pmappl 232 897 0 881 2 1 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 627 0 9 18 0 18 18 0 8 0