witness: thread 0xffff800020b29650 exiting with the following locks held: exclusive rrwlock inode r = 0 (0xfffffd80671a5818) #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 0xffff800020b29650 cannot exit while holding sleeplocks Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 162347 63015 73 0x100010 0 0K syslogd *309741 42507 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(ffff800020b29650) 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{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic thread 0xffff800020b29650 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(ffff800020b29650) 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{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020afd4b0 rbx 0xffff800020afd560 rdx 0xffff800020aff8b8 rcx 0 rax 0 r8 0xffffffff815a9073 kprintf+0x173 r9 0x1 r10 0x25 r11 0x4303ad3eae7e1b49 r12 0x3000000008 r13 0xffff800020afd4c0 r14 0x100 r15 0x1 rip 0xffffffff81e595e8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020afd4a0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (reaper) pid=309741 stat=onproc flags process=14000 proc=200 pri=4, usrpri=52, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab1638,0xffff800020aff3d8 process=0xffff800020aeaa88 user=0xffff800020af8000, vmspace=0xffffffff8236a918 estcpu=2, cpticks=6, pctcpu=0.34 user=0, sys=6, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 38428 57216 23357 0 2 0 syz-executor.1 38428 217501 23357 0 2 0x4000000 syz-executor.1 38428 36197 23357 0 3 0x4000080 netio syz-executor.1 99267 97419 0 0 3 0x14200 acct acct 23357 150359 1126 0 3 0x82 nanosleep syz-executor.1 16975 285688 1126 0 3 0x82 nanosleep syz-executor.0 37694 281844 1 0 2 0x100083 getty 67987 271945 0 0 3 0x14200 bored sosplice 1126 324227 31790 0 3 0x82 thrsleep syz-fuzzer 1126 274786 31790 0 3 0x4000082 thrsleep syz-fuzzer 1126 110149 31790 0 3 0x4000082 thrsleep syz-fuzzer 1126 375683 31790 0 3 0x4000082 thrsleep syz-fuzzer 1126 424729 31790 0 3 0x4000082 thrsleep syz-fuzzer 1126 332180 31790 0 3 0x4000082 thrsleep syz-fuzzer 1126 304639 31790 0 3 0x4000082 thrsleep syz-fuzzer 1126 84473 31790 0 3 0x4000082 thrsleep syz-fuzzer 1126 111775 31790 0 3 0x4000082 kqread syz-fuzzer 1126 490092 31790 0 3 0x4000082 thrsleep syz-fuzzer 31790 89572 59960 0 3 0x10008a pause ksh 59960 45414 68155 0 3 0x92 select sshd 68155 101558 1 0 3 0x80 select sshd 41243 506258 31940 74 3 0x100092 bpf pflogd 31940 91486 1 0 3 0x80 netio pflogd 63015 162347 16016 73 7 0x100010 syslogd 16016 270859 1 0 3 0x100082 netio syslogd 45110 417870 1 77 3 0x100090 poll dhclient 8470 223511 1 0 3 0x80 poll dhclient 23270 160663 0 0 3 0x14200 pgzero zerothread 72 48831 0 0 3 0x14200 aiodoned aiodoned 5757 263278 0 0 3 0x14200 syncer update 72745 160797 0 0 3 0x14200 cleaner cleaner *42507 309741 0 0 7 0x14200 reaper 94624 142727 0 0 3 0x14200 pgdaemon pagedaemon 97492 225827 0 0 3 0x14200 bored crynlk 16405 26314 0 0 3 0x14200 bored crypto 96906 164526 0 0 3 0x40014200 acpi0 acpi0 90713 117484 0 0 3 0x40014200 idle1 52927 466767 0 0 3 0x14200 bored softnet 12858 455929 0 0 3 0x14200 bored systqmp 9887 491381 0 0 3 0x14200 bored systq 55717 183070 0 0 3 0x40014200 bored softclock 27743 431674 0 0 3 0x40014200 idle0 76353 252388 0 0 3 0x14200 bored smr 1 359233 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks CPU 0: exclusive sched_lock &sched_lock r = 0 (0xffffffff8237b620) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 __mp_acquire_count+0x51 sys/kern/kern_lock.c:227 #2 mi_switch+0x3a8 sys/kern/sched_bsd.c:444 #3 sleep_finish+0x113 sys/kern/kern_synch.c:373 #4 tsleep+0x198 sleep_finish_timeout sys/kern/kern_synch.c:397 [inline] #4 tsleep+0x198 sleep_finish_all sys/kern/kern_synch.c:183 [inline] #4 tsleep+0x198 sys/kern/kern_synch.c:152 #5 biowait+0xa1 sys/kern/vfs_bio.c:1231 #6 bwrite+0x1e1 sys/kern/vfs_bio.c:747 #7 ffs_update+0x2c2 sys/ufs/ffs/ffs_inode.c:113 #8 VOP_FSYNC+0xc7 sys/kern/vfs_vops.c:352 #9 sys_fsync+0x128 sys/kern/vfs_syscalls.c:2806 #10 syscall+0x552 mi_syscall sys/sys/syscall_mi.h:92 [inline] #10 syscall+0x552 sys/arch/amd64/amd64/trap.c:555 #11 Xsyscall+0x128 Process 63015 (syslogd) thread 0xffff800020b61158 (162347) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff823822f8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 __mp_acquire_count+0x51 sys/kern/kern_lock.c:227 #2 mi_switch+0x38f sys/kern/sched_bsd.c:441 #3 sleep_finish+0x113 sys/kern/kern_synch.c:373 #4 tsleep+0x198 sleep_finish_timeout sys/kern/kern_synch.c:397 [inline] #4 tsleep+0x198 sleep_finish_all sys/kern/kern_synch.c:183 [inline] #4 tsleep+0x198 sys/kern/kern_synch.c:152 #5 biowait+0xa1 sys/kern/vfs_bio.c:1231 #6 bwrite+0x1e1 sys/kern/vfs_bio.c:747 #7 ffs_update+0x2c2 sys/ufs/ffs/ffs_inode.c:113 #8 VOP_FSYNC+0xc7 sys/kern/vfs_vops.c:352 #9 sys_fsync+0x128 sys/kern/vfs_syscalls.c:2806 #10 syscall+0x552 mi_syscall sys/sys/syscall_mi.h:92 [inline] #10 syscall+0x552 sys/arch/amd64/amd64/trap.c:555 #11 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd807e695e68) #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 9564 6451K 14605K 78643K 27114 0 0 pcb 13 8K 8K 78643K 579 0 0 rtable 110 4K 4K 78643K 8777 0 0 ifaddr 72 34K 44K 78643K 4933 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 2099 0 0 iov 0 0K 24K 78643K 1261 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1208 76K 77K 78643K 8017 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 43 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 0K 78643K 2229 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 7040 0 0 sigio 0 0K 0K 78643K 63 0 0 proc 54 51K 83K 78643K 1157 0 0 subproc 32 2K 2K 78643K 187 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 596 0 0 in_multi 33 2K 2K 78643K 238 0 0 ether_multi 1 0K 0K 78643K 14 0 0 mrt 0 0K 0K 78643K 10 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 90 397K 397K 78643K 90 0 0 exec 0 0K 1K 78643K 1765 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 113 22K 32K 78643K 21874 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 253 0 0 NDP 16 0K 0K 78643K 1394 0 0 temp 200 2752K 2820K 78643K 36604 0 0 kqueue 0 0K 0K 78643K 20 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 18 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 148 0 104 3 1 2 2 0 8 0 unpcb 120 1346 0 1334 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 8934 0 8934 1 1 0 1 0 8 0 tcpcb 544 1527 0 1523 1 0 1 1 0 8 0 inpcb 280 3217 0 3208 1 0 1 1 0 8 0 rttmr 72 2 0 2 1 1 0 1 0 8 0 nd6 48 33 0 27 1 0 1 1 0 8 0 pkpcb 40 12 0 12 3 3 0 1 0 8 0 ppxss 1128 1338 0 1338 18 18 0 1 0 8 0 pffrag 232 7 0 7 4 4 0 1 0 482 0 pffrnode 88 7 0 7 4 4 0 1 0 8 0 pffrent 40 24 0 24 5 5 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 90 0 86 1 0 1 1 0 8 0 pfstkey 112 90 0 86 1 0 1 1 0 8 0 pfstate 328 90 0 86 3 2 1 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 649 0 452 16 3 13 13 0 8 0 art_table 32 650 0 452 2 0 2 2 0 8 0 art_node 16 145 0 105 1 0 1 1 0 8 0 semupl 112 9 0 9 1 1 0 1 0 8 0 semapl 112 2227 0 2217 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 14933 0 13524 47 0 47 47 0 8 0 ffsino 272 14933 0 13524 96 0 96 96 0 8 0 nchpl 144 24355 0 22716 62 0 62 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 75607 0 75607 4 3 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scsiplug 64 5 0 5 4 4 0 1 0 8 0 scxspl 192 68327 0 68326 26 25 1 6 0 8 0 plimitpl 152 355 0 347 1 0 1 1 0 8 0 sigapl 432 7215 0 7200 3 1 2 3 0 8 0 futexpl 56 97438 0 97438 2 1 1 1 0 8 1 knotepl 112 777 0 758 1 0 1 1 0 8 0 kqueuepl 104 809 0 807 1 0 1 1 0 8 0 pipepl 112 2782 0 2763 6 5 1 2 0 8 0 fdescpl 488 7216 0 7200 3 0 3 3 0 8 0 filepl 152 38453 0 38352 13 8 5 7 0 8 0 lockfpl 104 2117 0 2117 8 8 0 1 0 8 0 lockfspl 48 828 0 828 8 8 0 1 0 8 0 sessionpl 112 29 0 18 1 0 1 1 0 8 0 pgrppl 48 73 0 62 1 0 1 1 0 8 0 ucredpl 96 6560 0 6551 1 0 1 1 0 8 0 zombiepl 144 7200 0 7199 2 1 1 1 0 8 0 processpl 896 7233 0 7199 4 0 4 4 0 8 0 procpl 632 20405 0 20360 16 11 5 5 0 8 1 srpgc 64 20 0 20 8 8 0 1 0 8 0 sosppl 128 65 0 65 19 18 1 1 0 8 1 sockpl 384 4794 0 4773 12 9 3 4 0 8 0 mcl64k 65536 13 0 0 2 0 2 2 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 37 0 0 2 0 2 2 0 8 0 mcl9k 9216 18 0 0 2 0 2 2 0 8 0 mcl8k 8192 8 0 0 1 0 1 1 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 238 0 0 22 9 13 22 0 8 1 mtagpl 80 30 0 0 1 0 1 1 0 8 0 mbufpl 256 448 0 0 13 1 12 13 0 8 2 bufpl 256 20829 0 13800 440 0 440 440 0 8 0 anonpl 16 581774 0 569881 143 87 56 68 0 125 0 amapchunkpl 152 37809 0 37688 43 37 6 12 0 158 0 amappl16 192 30022 0 29329 132 96 36 47 0 8 0 amappl15 184 4843 0 4840 1 0 1 1 0 8 0 amappl14 176 4863 0 4856 1 0 1 1 0 8 0 amappl13 168 467 0 466 1 0 1 1 0 8 0 amappl12 160 618 0 618 3 3 0 1 0 8 0 amappl11 152 88 0 73 1 0 1 1 0 8 0 amappl10 144 588 0 583 1 0 1 1 0 8 0 amappl9 136 717 0 714 1 0 1 1 0 8 0 amappl8 128 267 0 239 3 1 2 2 0 8 0 amappl7 120 549 0 541 1 0 1 1 0 8 0 amappl6 112 71 0 60 1 0 1 1 0 8 0 amappl5 104 845 0 830 1 0 1 1 0 8 0 amappl4 96 6303 0 6271 2 1 1 2 0 8 0 amappl3 88 3486 0 3476 1 0 1 1 0 8 0 amappl2 80 58808 0 58726 3 1 2 3 0 8 0 amappl1 72 154856 0 154380 26 16 10 20 0 8 0 amappl 80 20836 0 20792 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 7216 0 7199 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 7216 0 7199 1 0 1 1 0 8 0 vmmpekpl 168 47094 0 47058 2 0 2 2 0 8 0 vmmpepl 168 854841 0 852881 279 190 89 104 0 357 0 vmsppl 368 7215 0 7199 2 0 2 2 0 8 0 pdppl 4096 14440 0 14398 6 0 6 6 0 8 0 pvpl 32 1682201 0 1665969 340 205 135 166 0 265 0 pmappl 232 7215 0 7199 2 1 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 615 0 19 18 0 18 18 0 8 0