witness: thread 0xffff800020a88c78 exiting with the following locks held: exclusive rrwlock inode r = 0 (0xfffffd8072b36808) #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_read+0xa9 vn_lock sys/kern/vfs_vnops.c:561 [inline] #4 vn_read+0xa9 sys/kern/vfs_vnops.c:348 #5 dofilereadv+0x1a2 sys/kern/sys_generic.c:236 #6 sys_readv+0xa7 sys/kern/sys_generic.c:183 #7 syscall+0x552 mi_syscall sys/sys/syscall_mi.h:92 [inline] #7 syscall+0x552 sys/arch/amd64/amd64/trap.c:555 #8 Xsyscall+0x128 panic: thread 0xffff800020a88c78 cannot exit while holding sleeplocks Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 77866 74565 73 0x100010 0 0 syslogd *143295 6107 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(ffff800020a88c78) at witness_thread_exit+0x213 sys/kern/subr_witness.c:1364 reaper(ffff800020a5f150) 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 0xffff800020a88c78 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(ffff800020a88c78) at witness_thread_exit+0x213 sys/kern/subr_witness.c:1364 reaper(ffff800020a5f150) at reaper+0x14c sys/kern/kern_exit.c:423 end trace frame: 0x0, count: -4 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020a5d2b0 rbx 0xffff800020a5d360 rdx 0xffff800020a5f150 rcx 0 rax 0 r8 0xffffffff81254693 kprintf+0x173 r9 0x1 r10 0x25 r11 0xad0015a06a2fd0f5 r12 0x3000000008 r13 0xffff800020a5d2c0 r14 0x100 r15 0x1 rip 0xffffffff819fbe58 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020a5d2a0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (reaper) pid=143295 stat=onproc flags process=14000 proc=200 pri=4, usrpri=52, nice=20 forw=0xffffffffffffffff, list=0xffff800020a118b0,0xffff800020a5e780 process=0xffff800020a4ae08 user=0xffff800020a58000, vmspace=0xffffffff8264ea98 estcpu=2, cpticks=6, pctcpu=0.32 user=0, sys=5, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 61863 260472 39194 32767 2 0x10 syz-executor.1 61863 383700 39194 32767 3 0x4000090 kqread syz-executor.1 34023 392317 8960 32767 2 0x3010 syz-executor.0 8960 171353 83395 32767 3 0x90 nanosleep syz-executor.0 83395 89630 38462 0 3 0x82 wait syz-executor.0 39194 249845 68064 32767 3 0x90 nanosleep syz-executor.1 68064 279410 38462 0 3 0x82 wait syz-executor.1 6574 184195 0 0 3 0x14200 bored sosplice 38462 384954 49820 0 3 0x82 thrsleep syz-fuzzer 38462 142692 49820 0 3 0x4000082 thrsleep syz-fuzzer 38462 54260 49820 0 3 0x4000082 thrsleep syz-fuzzer 38462 232986 49820 0 3 0x4000082 thrsleep syz-fuzzer 38462 304027 49820 0 2 0x4000482 syz-fuzzer 38462 411530 49820 0 3 0x4000082 kqread syz-fuzzer 38462 132802 49820 0 3 0x4000082 thrsleep syz-fuzzer 38462 90971 49820 0 3 0x4000082 thrsleep syz-fuzzer 38462 104433 49820 0 3 0x4000082 thrsleep syz-fuzzer 38462 1622 49820 0 3 0x4000082 thrsleep syz-fuzzer 49820 362497 16972 0 3 0x10008a pause ksh 16972 361596 82511 0 3 0x92 select sshd 17435 497710 1 0 3 0x100083 ttyin getty 82511 195321 1 0 3 0x80 select sshd 74565 77866 11750 73 7 0x100010 syslogd 11750 161535 1 0 3 0x100082 netio syslogd 38383 394436 1 77 3 0x100090 poll dhclient 63796 18258 1 0 3 0x80 poll dhclient 88090 350391 0 0 2 0x14200 zerothread 37726 382548 0 0 3 0x14200 aiodoned aiodoned 10262 30836 0 0 3 0x14200 syncer update 22133 23976 0 0 3 0x14200 cleaner cleaner * 6107 143295 0 0 7 0x14200 reaper 23924 347730 0 0 3 0x14200 pgdaemon pagedaemon 78435 414002 0 0 3 0x14200 bored crynlk 45925 176116 0 0 3 0x14200 bored crypto 12975 393247 0 0 3 0x40014200 acpi0 acpi0 25645 140438 0 0 3 0x40014200 idle1 29986 220945 0 0 3 0x14200 bored softnet 28638 235785 0 0 3 0x14200 bored systqmp 97226 95153 0 0 3 0x14200 bored systq 77399 107474 0 0 3 0x40014200 bored softclock 38304 350558 0 0 3 0x40014200 idle0 85769 486571 0 0 3 0x14200 bored smr 1 125908 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 74565 (syslogd) thread 0xffff800020ac0288 (77866) exclusive rrwlock inode r = 0 (0xfffffd806eb554d8) #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 9463 6322K 6322K 78643K 11065 0 0 pcb 13 8K 8K 78643K 13 0 0 rtable 105 3K 3K 78643K 4814 0 0 ifaddr 36 12K 12K 78643K 669 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 252 0 0 iov 0 0K 28K 78643K 414 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1215 76K 76K 78643K 3694 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 57 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 0K 78643K 648 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 8 25K 33K 78643K 5386 0 0 sigio 0 0K 0K 78643K 65 0 0 proc 41 38K 70K 78643K 5025 0 0 subproc 34 2K 2K 78643K 1785 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 579 0 0 in_multi 33 2K 2K 78643K 1299 0 0 ether_multi 1 0K 0K 78643K 30 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 1905 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 98 21K 31K 78643K 18311 0 0 UVM aobj 130 4K 4K 78643K 144 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 328 0 0 NDP 5 0K 0K 78643K 318 0 0 temp 121 3554K 3636K 78643K 26149 0 0 kqueue 0 0K 0K 78643K 69 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 214 0 208 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 451 0 448 1 0 1 1 0 8 0 rtentry 112 1180 0 1136 2 0 2 2 0 8 0 unpcb 120 1960 0 1952 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 4246 0 4246 2 2 0 1 0 8 0 tcpcb 544 1159 0 1155 1 0 1 1 0 8 0 ipq 40 9 0 9 6 6 0 1 0 8 0 ipqe 40 20 0 20 6 6 0 1 0 8 0 inpcb 280 2894 0 2887 3 2 1 2 0 8 0 nd6 48 315 0 309 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 4822 0 4631 18 6 12 13 0 8 0 art_table 32 4823 0 4631 2 0 2 2 0 8 0 art_node 16 1179 0 1139 1 0 1 1 0 8 0 sysvmsgpl 40 34 0 14 2 1 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 643 0 633 1 0 1 1 0 8 0 shmpl 112 142 0 14 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 6760 0 5318 47 0 47 47 0 8 0 ffsino 272 6760 0 5318 100 3 97 97 0 8 0 nchpl 144 13063 0 11435 61 0 61 61 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 54475 0 54475 5 4 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 34946 0 34946 19 18 1 7 0 8 1 plimitpl 152 818 0 809 1 0 1 1 0 8 0 sigapl 432 5248 0 5232 8 6 2 3 0 8 0 futexpl 56 48212 0 48212 3 2 1 1 0 8 1 knotepl 112 3214 0 3195 2 1 1 2 0 8 0 kqueuepl 104 1225 0 1222 1 0 1 1 0 8 0 pipepl 112 3482 0 3461 6 5 1 2 0 8 0 fdescpl 488 5249 0 5232 4 1 3 3 0 8 0 filepl 152 30988 0 30880 14 9 5 7 0 8 0 lockfpl 104 827 0 827 6 5 1 1 0 8 1 lockfspl 48 268 0 268 6 5 1 1 0 8 1 sessionpl 112 120 0 110 1 0 1 1 0 8 0 pgrppl 48 187 0 177 1 0 1 1 0 8 0 ucredpl 96 8119 0 8110 1 0 1 1 0 8 0 zombiepl 144 5233 0 5232 5 4 1 1 0 8 0 processpl 896 5265 0 5232 4 0 4 4 0 8 0 procpl 632 13314 0 13270 17 12 5 5 0 8 1 srpgc 64 206 0 206 17 16 1 1 0 8 1 sosppl 128 92 0 92 22 21 1 1 0 8 1 sockpl 384 5409 0 5391 8 5 3 4 0 8 1 mcl64k 65536 8 0 0 1 0 1 1 0 8 0 mcl16k 16384 10 0 0 2 0 2 2 0 8 0 mcl12k 12288 23 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 10 0 0 2 0 2 2 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 7 0 0 1 0 1 1 0 8 0 mcl2k 2048 128 0 0 15 0 15 15 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 447 0 0 14 0 14 14 0 8 0 bufpl 256 11756 0 4742 439 0 439 439 0 8 0 anonpl 16 541855 0 534795 120 76 44 47 0 124 5 amapchunkpl 152 41055 0 40965 68 62 6 18 0 158 0 amappl16 192 22168 0 21770 159 130 29 33 0 8 8 amappl15 184 874 0 874 10 10 0 1 0 8 0 amappl14 176 1700 0 1694 1 0 1 1 0 8 0 amappl13 168 868 0 865 15 14 1 1 0 8 0 amappl12 160 503 0 498 2 1 1 1 0 8 0 amappl11 152 802 0 790 1 0 1 1 0 8 0 amappl10 144 911 0 908 1 0 1 1 0 8 0 amappl9 136 2219 0 2213 1 0 1 1 0 8 0 amappl8 128 1438 0 1408 3 1 2 2 0 8 0 amappl7 120 1082 0 1073 1 0 1 1 0 8 0 amappl6 112 545 0 533 1 0 1 1 0 8 0 amappl5 104 1306 0 1292 1 0 1 1 0 8 0 amappl4 96 5327 0 5295 1 0 1 1 0 8 0 amappl3 88 1652 0 1642 1 0 1 1 0 8 0 amappl2 80 33639 0 33562 3 1 2 3 0 8 0 amappl1 72 149260 0 148810 23 13 10 19 0 8 0 amappl 80 15143 0 15105 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 143 0 14 3 0 3 3 0 8 0 uaddrrnd 24 5249 0 5232 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5249 0 5232 1 0 1 1 0 8 0 vmmpekpl 168 45620 0 45589 2 0 2 2 0 8 0 vmmpepl 168 674904 0 673200 196 112 84 90 0 357 9 vmsppl 368 5248 0 5232 2 0 2 2 0 8 0 pdppl 4096 10505 0 10464 9 3 6 6 0 8 0 pvpl 32 1513040 0 1502686 333 215 118 125 0 265 22 pmappl 232 5248 0 5232 12 11 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 617 0 18 18 0 18 18 0 8 0