login: witness: thread 0xffff800020b5e018 exiting with the following locks held: exclusive rrwlock inode r = 0 (0xfffffd8070df1708) #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 0xffff800020b5e018 cannot exit while holding sleeplocks Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 275451 5278 73 0x100010 0 1K syslogd *500595 26766 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(ffff800020b5e018) at witness_thread_exit+0x213 sys/kern/subr_witness.c:1364 reaper(ffff800020aff8b8) 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 0xffff800020b5e018 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(ffff800020b5e018) at witness_thread_exit+0x213 sys/kern/subr_witness.c:1364 reaper(ffff800020aff8b8) at reaper+0x14c sys/kern/kern_exit.c:423 end trace frame: 0x0, count: -4 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020afda70 rbx 0xffff800020afdb20 rdx 0xffff800020aff8b8 rcx 0 rax 0 r8 0xffffffff81f21ae3 kprintf+0x173 r9 0x1 r10 0x25 r11 0x6cdd181fa1f26d4e r12 0x3000000008 r13 0xffff800020afda80 r14 0x100 r15 0x1 rip 0xffffffff81010db8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020afda60 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (reaper) pid=500595 stat=onproc flags process=14000 proc=200 pri=4, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab1b28,0xffff800020aff3d8 process=0xffff800020aea008 user=0xffff800020af8000, vmspace=0xffffffff82386b98 estcpu=1, cpticks=11, pctcpu=0.52 user=0, sys=6, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 78848 39214 87012 0 3 0x80 nanosleep syz-executor.0 78848 474510 87012 0 3 0x4000080 fsleep syz-executor.0 78848 310792 87012 0 3 0x4000080 lockf syz-executor.0 78848 49029 87012 0 3 0x4000080 fsleep syz-executor.0 78848 176263 87012 0 3 0x4000080 fsleep syz-executor.0 26579 70177 0 0 3 0x14200 acct acct 28369 310573 1 0 2 0x100083 getty 60706 47275 85321 0 2 0x482 syz-executor.1 15107 17260 0 0 3 0x14200 bored sosplice 87012 216433 85321 0 2 0x482 syz-executor.0 85321 370755 64957 0 3 0x82 thrsleep syz-fuzzer 85321 386993 64957 0 3 0x4000082 thrsleep syz-fuzzer 85321 161123 64957 0 3 0x4000082 thrsleep syz-fuzzer 85321 299180 64957 0 3 0x4000082 kqread syz-fuzzer 85321 358877 64957 0 3 0x4000082 thrsleep syz-fuzzer 85321 427236 64957 0 3 0x4000082 thrsleep syz-fuzzer 85321 184313 64957 0 3 0x4000082 thrsleep syz-fuzzer 85321 365178 64957 0 3 0x4000082 thrsleep syz-fuzzer 85321 459923 64957 0 3 0x4000082 thrsleep syz-fuzzer 85321 337600 64957 0 3 0x4000082 thrsleep syz-fuzzer 64957 259854 72784 0 3 0x10008a pause ksh 72784 376787 43781 0 3 0x92 select sshd 43781 98135 1 0 3 0x80 select sshd 41974 356135 69131 74 3 0x100092 bpf pflogd 69131 199702 1 0 3 0x80 netio pflogd 5278 275451 52733 73 7 0x100010 syslogd 52733 432398 1 0 3 0x100082 netio syslogd 58609 31865 1 77 3 0x100090 poll dhclient 48211 33674 1 0 3 0x80 poll dhclient 54949 307812 0 0 3 0x14200 pgzero zerothread 80725 326717 0 0 3 0x14200 aiodoned aiodoned 94431 257034 0 0 3 0x14200 syncer update 72158 380049 0 0 3 0x14200 cleaner cleaner *26766 500595 0 0 7 0x14200 reaper 1926 295105 0 0 3 0x14200 pgdaemon pagedaemon 96685 502215 0 0 3 0x14200 bored crynlk 45269 112618 0 0 3 0x14200 bored crypto 7822 407685 0 0 3 0x40014200 acpi0 acpi0 83358 139866 0 0 3 0x40014200 idle1 40820 180518 0 0 3 0x14200 bored softnet 21224 468597 0 0 3 0x14200 bored systqmp 80086 96169 0 0 3 0x14200 bored systq 56520 21641 0 0 3 0x40014200 bored softclock 13512 488869 0 0 3 0x40014200 idle0 67554 334657 0 0 3 0x14200 bored smr 1 358719 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 5278 (syslogd) thread 0xffff800020b60c68 (275451) exclusive rrwlock inode r = 0 (0xfffffd806ecebd58) #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 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff823953d0) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 syscall+0x412 mi_syscall sys/sys/syscall_mi.h:83 [inline] #1 syscall+0x412 sys/arch/amd64/amd64/trap.c:555 #2 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9555 6566K 6951K 78643K 13483 0 0 pcb 13 8K 8K 78643K 133 0 0 rtable 110 4K 4K 78643K 544 0 0 ifaddr 68 14K 15K 78643K 223 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1518 0 0 iov 0 0K 24K 78643K 156 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1215 76K 77K 78643K 2200 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 8 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 0K 78643K 120 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 1150 0 0 sigio 0 0K 0K 78643K 6 0 0 proc 54 51K 83K 78643K 578 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 100 0 0 in_multi 33 2K 2K 78643K 74 0 0 ether_multi 1 0K 0K 78643K 3 0 0 mrt 0 0K 0K 78643K 2 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 72 318K 318K 78643K 72 0 0 exec 0 0K 1K 78643K 342 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 111 22K 31K 78643K 4751 0 0 UVM aobj 24 2K 2K 78643K 33 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 48 0 0 NDP 15 0K 0K 78643K 63 0 0 temp 193 2752K 2818K 78643K 12623 0 0 kqueue 0 0K 0K 78643K 10 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 9 0 2 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 69 0 67 1 0 1 1 0 8 0 rtentry 112 59 0 14 2 0 2 2 0 8 0 unpcb 120 389 0 379 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 8358 0 8358 1 1 0 1 0 8 0 tcpcb 544 182 0 178 1 0 1 1 0 8 0 inpcb 280 566 0 558 3 1 2 2 0 8 1 nd6 48 9 0 3 1 0 1 1 0 8 0 pkpcb 40 3 0 3 2 2 0 1 0 8 0 swfcl 56 1 0 0 1 0 1 1 0 8 0 ppxss 1128 24 0 24 4 3 1 1 0 8 1 pffrag 232 5 0 5 2 2 0 1 0 482 0 pffrnode 88 5 0 5 2 2 0 1 0 8 0 pffrent 40 12 0 12 2 2 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 53 0 33 1 0 1 1 0 8 0 pfstkey 112 53 0 33 1 0 1 1 0 8 0 pfstate 328 53 0 32 3 0 3 3 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 56 0 15 1 0 1 1 0 8 0 sysvmsgpl 40 14 0 8 2 1 1 1 0 8 0 semapl 112 116 0 106 1 0 1 1 0 8 0 shmpl 112 31 0 9 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3231 0 1807 47 0 47 47 0 8 0 ffsino 272 3231 0 1807 96 0 96 96 0 8 0 nchpl 144 5074 0 3435 62 0 62 62 0 8 0 uvmvnodes 72 3935 0 0 72 0 72 72 0 8 0 vnodes 200 3935 0 0 208 0 208 208 0 8 0 namei 1024 15559 0 15559 3 2 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 14924 0 14923 8 7 1 6 0 8 0 plimitpl 152 121 0 113 1 0 1 1 0 8 0 sigapl 432 1349 0 1334 3 1 2 3 0 8 0 futexpl 56 13527 0 13524 1 0 1 1 0 8 0 knotepl 112 253 0 234 1 0 1 1 0 8 0 kqueuepl 104 252 0 250 1 0 1 1 0 8 0 pipepl 112 774 0 751 1 0 1 1 0 8 0 fdescpl 488 1350 0 1334 3 0 3 3 0 8 0 filepl 152 7945 0 7838 6 1 5 5 0 8 0 lockfpl 104 357 0 355 3 2 1 1 0 8 0 lockfspl 48 137 0 136 3 2 1 1 0 8 0 sessionpl 112 21 0 10 1 0 1 1 0 8 0 pgrppl 48 32 0 21 1 0 1 1 0 8 0 ucredpl 96 1514 0 1505 1 0 1 1 0 8 0 zombiepl 144 1334 0 1333 2 1 1 1 0 8 0 processpl 896 1367 0 1333 4 0 4 4 0 8 0 procpl 632 3890 0 3843 8 3 5 5 0 8 1 srpgc 64 2 0 2 1 1 0 1 0 8 0 sosppl 128 13 0 13 4 3 1 1 0 8 1 sockpl 384 1036 0 1017 6 3 3 4 0 8 1 mcl64k 65536 256 0 0 32 0 32 32 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 10 0 0 1 0 1 1 0 8 0 mcl9k 9216 8 0 0 1 0 1 1 0 8 0 mcl8k 8192 6 0 0 1 0 1 1 0 8 0 mcl4k 4096 11 0 0 2 0 2 2 0 8 0 mcl2k2 2112 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 149 0 0 16 0 16 16 0 8 0 mtagpl 80 38 0 0 1 0 1 1 0 8 0 mbufpl 256 444 0 0 24 0 24 24 0 8 0 bufpl 256 8078 0 1168 432 0 432 432 0 8 0 anonpl 16 136128 0 123822 88 26 62 66 0 125 12 amapchunkpl 152 7823 0 7704 22 12 10 10 0 158 4 amappl16 192 6674 0 5998 63 25 38 46 0 8 4 amappl15 184 1 0 1 1 1 0 1 0 8 0 amappl14 176 58 0 52 1 0 1 1 0 8 0 amappl13 168 16 0 15 2 1 1 1 0 8 0 amappl12 160 429 0 425 1 0 1 1 0 8 0 amappl11 152 68 0 53 1 0 1 1 0 8 0 amappl10 144 90 0 84 1 0 1 1 0 8 0 amappl9 136 1179 0 1174 1 0 1 1 0 8 0 amappl8 128 733 0 709 1 0 1 1 0 8 0 amappl7 120 41 0 34 1 0 1 1 0 8 0 amappl6 112 66 0 57 1 0 1 1 0 8 0 amappl5 104 572 0 557 1 0 1 1 0 8 0 amappl4 96 1627 0 1596 2 1 1 2 0 8 0 amappl3 88 221 0 210 1 0 1 1 0 8 0 amappl2 80 9852 0 9774 3 1 2 3 0 8 0 amappl1 72 38877 0 38403 27 17 10 20 0 8 0 amappl 80 4157 0 4113 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 32 0 9 1 0 1 1 0 8 0 uaddrrnd 24 1350 0 1333 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1350 0 1333 1 0 1 1 0 8 0 vmmpekpl 168 14800 0 14768 2 0 2 2 0 8 0 vmmpepl 168 170440 0 168496 148 62 86 102 0 357 1 vmsppl 368 1349 0 1333 2 0 2 2 0 8 0 pdppl 4096 2708 0 2666 6 0 6 6 0 8 0 pvpl 32 390428 0 374854 213 59 154 166 0 265 28 pmappl 232 1349 0 1333 2 1 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 636 0 5 19 0 19 19 0 8 0