witness: thread 0xffff800020ab1160 exiting with the following locks held: exclusive rrwlock inode r = 0 (0xfffffd807e84f1a8) #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 0xffff800020ab1160 cannot exit while holding sleeplocks Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 516236 13764 73 0x100010 0 0 syslogd *282345 4336 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(ffff800020ab1160) at witness_thread_exit+0x213 sys/kern/subr_witness.c:1364 reaper(ffff800020a5f8b8) 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 0xffff800020ab1160 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(ffff800020ab1160) at witness_thread_exit+0x213 sys/kern/subr_witness.c:1364 reaper(ffff800020a5f8b8) at reaper+0x14c sys/kern/kern_exit.c:423 end trace frame: 0x0, count: -4 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020a5d620 rbx 0xffff800020a5d6d0 rdx 0xffff800020a5f8b8 rcx 0 rax 0 r8 0xffffffff8145b623 kprintf+0x173 r9 0x1 r10 0x25 r11 0x90131525144e0e2d r12 0x3000000008 r13 0xffff800020a5d630 r14 0x100 r15 0x1 rip 0xffffffff81c821e8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020a5d610 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (reaper) pid=282345 stat=onproc flags process=14000 proc=200 pri=4, usrpri=52, nice=20 forw=0xffffffffffffffff, list=0xffff800020a11b28,0xffff800020a5f650 process=0xffff800020a4a388 user=0xffff800020a58000, vmspace=0xffffffff8262f4c8 estcpu=2, cpticks=6, pctcpu=0.65 user=0, sys=6, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 77663 250350 15954 0 3 0x3000 suspend syz-executor.0 77663 461066 15954 0 2 0x4081000 syz-executor.0 59963 360561 0 0 3 0x14200 acct acct 15954 224955 26110 0 3 0x82 nanosleep syz-executor.0 37667 233623 26110 0 3 0x82 nanosleep syz-executor.1 88452 356097 1 0 3 0x100083 ttyopn getty 55921 69639 0 0 3 0x14200 bored sosplice 26110 382426 15693 0 3 0x82 thrsleep syz-fuzzer 26110 497975 15693 0 3 0x4000082 thrsleep syz-fuzzer 26110 122245 15693 0 3 0x4000082 thrsleep syz-fuzzer 26110 341769 15693 0 3 0x4000082 kqread syz-fuzzer 26110 8813 15693 0 3 0x4000082 thrsleep syz-fuzzer 26110 345854 15693 0 3 0x4000082 thrsleep syz-fuzzer 26110 173453 15693 0 3 0x4000082 thrsleep syz-fuzzer 26110 137779 15693 0 3 0x4000082 thrsleep syz-fuzzer 26110 218944 15693 0 3 0x4000082 thrsleep syz-fuzzer 26110 232061 15693 0 3 0x4000082 thrsleep syz-fuzzer 15693 333376 46937 0 3 0x10008a pause ksh 46937 48893 35446 0 3 0x92 select sshd 35446 229622 1 0 3 0x80 select sshd 49173 181908 20209 74 3 0x100092 bpf pflogd 20209 108223 1 0 3 0x80 netio pflogd 13764 516236 99135 73 7 0x100010 syslogd 99135 419483 1 0 3 0x100082 netio syslogd 35706 60643 1 77 3 0x100090 poll dhclient 13949 507479 1 0 3 0x80 poll dhclient 93892 132953 0 0 3 0x14200 pgzero zerothread 66973 304418 0 0 3 0x14200 aiodoned aiodoned 45840 336010 0 0 3 0x14200 syncer update 47230 98260 0 0 3 0x14200 cleaner cleaner * 4336 282345 0 0 7 0x14200 reaper 79933 265724 0 0 3 0x14200 pgdaemon pagedaemon 43459 219703 0 0 3 0x14200 bored crynlk 64839 139076 0 0 3 0x14200 bored crypto 41933 75111 0 0 3 0x40014200 acpi0 acpi0 73824 433776 0 0 3 0x40014200 idle1 64941 377368 0 0 3 0x14200 bored softnet 22731 38197 0 0 3 0x14200 bored systqmp 57523 363298 0 0 3 0x14200 bored systq 62285 392912 0 0 3 0x40014200 bored softclock 13170 153598 0 0 3 0x40014200 idle0 79861 226277 0 0 2 0x40014200 smr 1 131844 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 13764 (syslogd) thread 0xffff800020ac1158 (516236) exclusive rrwlock inode r = 0 (0xfffffd806eb9ad58) #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 9568 6678K 7130K 78643K 18923 0 0 pcb 13 8K 8K 78643K 193 0 0 rtable 111 4K 5K 78643K 1718 0 0 ifaddr 71 18K 20K 78643K 680 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1709 0 0 iov 0 0K 28K 78643K 361 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1209 76K 77K 78643K 4321 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 9K 78643K 88 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 0K 78643K 533 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 4879 0 0 sigio 0 0K 0K 78643K 30 0 0 proc 55 51K 83K 78643K 987 0 0 subproc 32 2K 2K 78643K 170 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 283 0 0 in_multi 33 2K 2K 78643K 176 0 0 ether_multi 1 0K 0K 78643K 10 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 78 344K 344K 78643K 78 0 0 exec 0 0K 1K 78643K 512 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 13160 0 0 UVM aobj 130 4K 4K 78643K 130 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 1K 78643K 200 0 0 NDP 15 0K 0K 78643K 212 0 0 temp 195 3544K 3671K 78643K 28202 0 0 kqueue 0 0K 0K 78643K 53 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 23 0 17 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 164 0 162 1 0 1 1 0 8 0 rtentry 112 122 0 78 3 1 2 2 0 8 0 unpcb 120 1075 0 1065 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 206 0 206 10 10 0 1 0 8 0 tcpcb 544 469 0 465 1 0 1 1 0 8 0 inpcb 280 1531 0 1524 2 1 1 2 0 8 0 nd6 48 26 0 20 1 0 1 1 0 8 0 pkpcb 40 35 0 35 4 4 0 1 0 8 0 ppxss 1128 133 0 132 3 2 1 1 0 8 0 pffrag 232 13 0 13 2 2 0 1 0 482 0 pffrnode 88 13 0 13 2 2 0 1 0 8 0 pffrent 40 36 0 36 3 3 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 105 0 92 1 0 1 1 0 8 0 pfstkey 112 105 0 92 2 1 1 2 0 8 0 pfstate 328 105 0 92 6 4 2 6 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 479 0 285 17 4 13 13 0 8 0 art_table 32 480 0 285 2 0 2 2 0 8 0 art_node 16 121 0 81 1 0 1 1 0 8 0 semapl 112 531 0 521 1 0 1 1 0 8 0 shmpl 112 128 0 0 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 9160 0 7721 47 0 47 47 0 8 0 ffsino 272 9160 0 7721 98 1 97 97 0 8 0 nchpl 144 15175 0 13539 62 1 61 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 41692 0 41692 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 54252 0 54252 19 18 1 7 0 8 1 plimitpl 152 351 0 343 1 0 1 1 0 8 0 sigapl 432 5056 0 5041 3 1 2 3 0 8 0 futexpl 56 35986 0 35986 1 0 1 1 0 8 1 knotepl 112 900 0 881 1 0 1 1 0 8 0 kqueuepl 104 679 0 677 1 0 1 1 0 8 0 pipepl 112 802 0 783 3 2 1 2 0 8 0 fdescpl 488 5057 0 5041 3 0 3 3 0 8 0 filepl 152 19029 0 18928 10 5 5 7 0 8 1 lockfpl 104 1133 0 1133 7 6 1 1 0 8 1 lockfspl 48 412 0 412 7 6 1 1 0 8 1 sessionpl 112 27 0 16 1 0 1 1 0 8 0 pgrppl 48 108 0 97 1 0 1 1 0 8 0 ucredpl 96 4286 0 4277 1 0 1 1 0 8 0 zombiepl 144 5042 0 5040 2 1 1 1 0 8 0 processpl 896 5074 0 5040 4 0 4 4 0 8 0 procpl 632 11806 0 11761 12 7 5 5 0 8 1 srpgc 64 16 0 16 6 6 0 1 0 8 0 sosppl 128 42 0 42 6 6 0 1 0 8 0 sockpl 384 2814 0 2795 8 5 3 4 0 8 1 mcl64k 65536 8 0 0 1 0 1 1 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 14 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 23 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 164 0 0 12 0 12 12 0 8 1 mtagpl 80 32 0 0 1 0 1 1 0 8 0 mbufpl 256 287 0 0 11 0 11 11 0 8 0 bufpl 256 20260 0 13241 439 0 439 439 0 8 0 anonpl 16 472908 0 468154 67 38 29 35 0 124 0 amapchunkpl 152 24262 0 24174 40 31 9 14 0 158 4 amappl16 192 24929 0 24705 49 36 13 23 0 8 1 amappl15 184 1242 0 1241 1 0 1 1 0 8 0 amappl14 176 1827 0 1820 1 0 1 1 0 8 0 amappl13 168 131 0 128 2 1 1 1 0 8 0 amappl12 160 1146 0 1145 2 1 1 1 0 8 0 amappl11 152 734 0 719 1 0 1 1 0 8 0 amappl10 144 685 0 682 1 0 1 1 0 8 0 amappl9 136 1244 0 1239 1 0 1 1 0 8 0 amappl8 128 791 0 768 1 0 1 1 0 8 0 amappl7 120 658 0 650 1 0 1 1 0 8 0 amappl6 112 710 0 704 1 0 1 1 0 8 0 amappl5 104 1318 0 1302 1 0 1 1 0 8 0 amappl4 96 5364 0 5329 2 1 1 2 0 8 0 amappl3 88 908 0 897 1 0 1 1 0 8 0 amappl2 80 40505 0 40425 4 2 2 3 0 8 0 amappl1 72 98132 0 97673 26 16 10 20 0 8 0 amappl 80 12215 0 12179 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 129 0 0 3 0 3 3 0 8 0 uaddrrnd 24 5057 0 5040 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5057 0 5040 1 0 1 1 0 8 0 vmmpekpl 168 30855 0 30818 2 0 2 2 0 8 0 vmmpepl 168 581737 0 580281 130 64 66 78 0 357 1 vmsppl 368 5056 0 5040 2 0 2 2 0 8 0 pdppl 4096 10121 0 10080 6 0 6 6 0 8 0 pvpl 32 1489135 0 1481091 183 97 86 104 0 265 6 pmappl 232 5056 0 5040 3 2 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 604 0 10 17 0 17 17 0 8 0