witness: thread 0xffff800020ace2d0 exiting with the following locks held: exclusive rrwlock inode r = 0 (0xfffffd806ebd15e8) #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 0xffff800020ace2d0 cannot exit while holding sleeplocks Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 365824 21761 73 0x100010 0 0 syslogd * 7631 22421 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(ffff800020ace2d0) 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 0xffff800020ace2d0 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(ffff800020ace2d0) 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 0xffff800020a5d860 rbx 0xffff800020a5d910 rdx 0xffff800020a5fb30 rcx 0 rax 0 r8 0xffffffff8145b623 kprintf+0x173 r9 0x1 r10 0x25 r11 0x8c689d32453bba7 r12 0x3000000008 r13 0xffff800020a5d870 r14 0x100 r15 0x1 rip 0xffffffff81c821e8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020a5d850 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (reaper) pid=7631 stat=onproc flags process=14000 proc=200 pri=4, usrpri=54, nice=20 forw=0xffffffffffffffff, list=0xffff800020a11b28,0xffff800020a5f8c8 process=0xffff800020a4aa88 user=0xffff800020a58000, vmspace=0xffffffff8262f4c8 estcpu=4, cpticks=9, pctcpu=0.62 user=0, sys=5, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 27897 458617 41050 0 3 0x82 nanosleep syz-executor.0 66580 272005 0 0 3 0x14200 acct acct 29968 52787 41050 0 3 0x82 nanosleep syz-executor.1 55842 227308 0 0 3 0x14200 bored sosplice 41050 31427 8058 0 3 0x82 thrsleep syz-fuzzer 41050 351695 8058 0 3 0x4000082 thrsleep syz-fuzzer 41050 480061 8058 0 3 0x4000082 thrsleep syz-fuzzer 41050 312284 8058 0 3 0x4000082 thrsleep syz-fuzzer 41050 488824 8058 0 3 0x4000082 kqread syz-fuzzer 41050 342388 8058 0 3 0x4000082 thrsleep syz-fuzzer 41050 490327 8058 0 3 0x4000082 thrsleep syz-fuzzer 41050 421004 8058 0 3 0x4000082 thrsleep syz-fuzzer 41050 518728 8058 0 3 0x4000082 thrsleep syz-fuzzer 41050 476720 8058 0 3 0x4000082 thrsleep syz-fuzzer 8058 225704 91061 0 3 0x10008a pause ksh 91061 295522 2340 0 3 0x92 select sshd 168 62671 1 0 3 0x100083 ttyopn getty 2340 217419 1 0 3 0x80 select sshd 94072 406458 80642 74 3 0x100092 bpf pflogd 80642 68702 1 0 3 0x80 netio pflogd 21761 365824 38910 73 7 0x100010 syslogd 38910 509606 1 0 3 0x100082 netio syslogd 10339 520610 1 77 3 0x100090 poll dhclient 91107 162011 1 0 3 0x80 poll dhclient 19913 149968 0 0 3 0x14200 pgzero zerothread 3918 324182 0 0 3 0x14200 aiodoned aiodoned 5018 131026 0 0 3 0x14200 syncer update 63882 285127 0 0 3 0x14200 cleaner cleaner *22421 7631 0 0 7 0x14200 reaper 9847 458889 0 0 3 0x14200 pgdaemon pagedaemon 6970 289167 0 0 3 0x14200 bored crynlk 56870 145617 0 0 3 0x14200 bored crypto 34643 296694 0 0 3 0x40014200 acpi0 acpi0 5983 35011 0 0 3 0x40014200 idle1 69090 65476 0 0 3 0x14200 bored softnet 70174 262333 0 0 3 0x14200 bored systqmp 26560 486397 0 0 3 0x14200 bored systq 75126 199081 0 0 3 0x40014200 bored softclock 5658 385049 0 0 3 0x40014200 idle0 57846 495684 0 0 3 0x14200 bored smr 1 185672 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 21761 (syslogd) thread 0xffff800020ac13d0 (365824) exclusive rrwlock inode r = 0 (0xfffffd806eb69d58) #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 9593 6456K 7214K 78643K 20372 0 0 pcb 13 8K 8K 78643K 258 0 0 rtable 89 4K 5K 78643K 1268 0 0 ifaddr 78 16K 18K 78643K 478 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1650 0 0 iov 0 0K 32K 78643K 466 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1207 76K 77K 78643K 4749 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 57 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 0K 78643K 469 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 4 9K 25K 78643K 3790 0 0 sigio 0 0K 0K 78643K 63 0 0 proc 54 51K 83K 78643K 1065 0 0 subproc 32 2K 2K 78643K 193 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 349 0 0 in_multi 22 1K 2K 78643K 307 0 0 ether_multi 1 0K 0K 78643K 30 0 0 mrt 0 0K 0K 78643K 19 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 102 450K 450K 78643K 102 0 0 exec 0 0K 1K 78643K 666 0 0 pfkey data 0 0K 4K 78643K 2 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 30K 78643K 13592 0 0 UVM aobj 130 4K 4K 78643K 152 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 174 0 0 NDP 19 0K 0K 78643K 141 0 0 temp 222 3544K 3615K 78643K 41617 0 0 kqueue 0 0K 0K 78643K 32 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 24 0 20 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 166 0 164 1 0 1 1 0 8 0 rtentry 112 150 0 117 3 1 2 2 0 8 0 unpcb 120 1265 0 1255 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 6251 0 6251 2 2 0 2 0 8 0 tcpcb 544 561 0 557 1 0 1 1 0 8 0 inpcb 280 1718 0 1711 2 0 2 2 0 8 1 rttmr 72 3 0 3 3 3 0 1 0 8 0 nd6 48 33 0 30 1 0 1 1 0 8 0 pkpcb 40 24 0 24 11 10 1 1 0 8 1 swfcl 56 7 0 0 1 0 1 1 0 8 0 ppxss 1128 69 0 69 13 12 1 1 0 8 1 pffrag 232 11 0 11 5 4 1 1 0 482 1 pffrnode 88 11 0 11 5 4 1 1 0 8 1 pffrent 40 24 0 24 6 5 1 1 0 8 1 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 118 0 93 1 0 1 1 0 8 0 pfstkey 112 118 0 93 1 0 1 1 0 8 0 pfstate 328 118 0 93 4 1 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 612 0 465 15 2 13 13 0 8 1 art_table 32 613 0 465 2 0 2 2 0 8 0 art_node 16 146 0 116 1 0 1 1 0 8 0 sysvmsgpl 40 21 0 9 1 0 1 1 0 8 0 semapl 112 467 0 457 1 0 1 1 0 8 0 shmpl 112 150 0 22 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 7287 0 5865 47 0 47 47 0 8 0 ffsino 272 7287 0 5865 96 0 96 96 0 8 0 nchpl 144 12827 0 11194 62 0 62 62 0 8 0 uvmvnodes 72 5928 0 0 108 0 108 108 0 8 0 vnodes 200 5928 0 0 312 0 312 312 0 8 0 namei 1024 41106 0 41106 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scsiplug 64 9 0 9 4 3 1 1 0 8 1 scxspl 192 43210 0 43210 22 18 4 7 0 8 4 plimitpl 152 377 0 369 1 0 1 1 0 8 0 sigapl 432 3963 0 3949 3 1 2 3 0 8 0 futexpl 56 46028 0 46028 1 0 1 1 0 8 1 knotepl 112 823 0 804 1 0 1 1 0 8 0 kqueuepl 104 820 0 818 1 0 1 1 0 8 0 pipepl 112 2192 0 2173 4 3 1 2 0 8 0 fdescpl 488 3964 0 3949 3 0 3 3 0 8 0 filepl 152 23562 0 23463 11 6 5 7 0 8 1 lockfpl 104 1362 0 1361 3 2 1 1 0 8 0 lockfspl 48 465 0 464 3 2 1 1 0 8 0 sessionpl 112 27 0 16 1 0 1 1 0 8 0 pgrppl 48 70 0 59 1 0 1 1 0 8 0 ucredpl 96 4702 0 4693 1 0 1 1 0 8 0 zombiepl 144 3949 0 3947 2 1 1 1 0 8 0 processpl 896 3981 0 3947 4 0 4 4 0 8 0 procpl 632 12295 0 12251 12 7 5 5 0 8 0 srpgc 64 23 0 23 11 10 1 1 0 8 1 sosppl 128 54 0 54 16 15 1 1 0 8 1 sockpl 384 3210 0 3191 7 4 3 4 0 8 1 mcl64k 65536 18 0 0 3 0 3 3 0 8 0 mcl16k 16384 7 0 0 1 0 1 1 0 8 0 mcl12k 12288 15 0 0 2 0 2 2 0 8 0 mcl9k 9216 18 0 0 2 0 2 2 0 8 0 mcl8k 8192 15 0 0 2 0 2 2 0 8 0 mcl4k 4096 13 0 0 2 0 2 2 0 8 0 mcl2k2 2112 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 252 0 0 31 5 26 31 0 8 2 mtagpl 80 66 0 0 1 0 1 1 0 8 0 mbufpl 256 358 0 0 18 0 18 18 0 8 0 bufpl 256 20595 0 13576 439 0 439 439 0 8 0 anonpl 16 380527 0 368354 139 85 54 66 0 124 0 amapchunkpl 152 24670 0 24555 48 42 6 19 0 158 0 amappl16 192 20276 0 19579 120 84 36 47 0 8 1 amappl15 184 360 0 360 2 2 0 1 0 8 0 amappl14 176 470 0 465 1 0 1 1 0 8 0 amappl13 168 1118 0 1113 1 0 1 1 0 8 0 amappl12 160 877 0 877 2 2 0 1 0 8 0 amappl11 152 439 0 424 1 0 1 1 0 8 0 amappl10 144 99 0 95 1 0 1 1 0 8 0 amappl9 136 1366 0 1362 1 0 1 1 0 8 0 amappl8 128 920 0 894 2 0 2 2 0 8 0 amappl7 120 76 0 67 1 0 1 1 0 8 0 amappl6 112 420 0 411 1 0 1 1 0 8 0 amappl5 104 1092 0 1076 1 0 1 1 0 8 0 amappl4 96 3456 0 3425 2 1 1 2 0 8 0 amappl3 88 1169 0 1158 1 0 1 1 0 8 0 amappl2 80 30549 0 30470 3 1 2 3 0 8 0 amappl1 72 96587 0 96118 26 16 10 20 0 8 0 amappl 80 12724 0 12683 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 151 0 22 3 0 3 3 0 8 0 uaddrrnd 24 3964 0 3947 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3964 0 3947 1 0 1 1 0 8 0 vmmpekpl 168 31899 0 31867 3 1 2 2 0 8 0 vmmpepl 168 487040 0 485100 237 133 104 105 0 357 16 vmsppl 368 3963 0 3947 2 0 2 2 0 8 0 pdppl 4096 7935 0 7894 7 1 6 6 0 8 0 pvpl 32 1057222 0 1041565 284 151 133 165 0 265 0 pmappl 232 3963 0 3947 2 1 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 627 0 12 18 0 18 18 0 8 0