login: witness: thread 0xffff800020b29b48 exiting with the following locks held: exclusive rrwlock inode r = 0 (0xfffffd807e99fb48) #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 spec_read+0x101 sys/kern/spec_vnops.c:225 #6 VOP_READ+0xca sys/kern/vfs_vops.c:247 #7 vn_read+0x17d sys/kern/vfs_vnops.c:366 #8 dofilereadv+0x1a2 sys/kern/sys_generic.c:236 #9 sys_read+0x83 sys/kern/sys_generic.c:156 #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 panic: thread 0xffff800020b29b48 cannot exit while holding sleeplocks Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 234821 72458 32767 0x10 0x4000000 0 syz-executor.1 *350418 70611 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(ffff800020b29b48) 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}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic thread 0xffff800020b29b48 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(ffff800020b29b48) 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 0xffff800020afdce0 rbx 0xffff800020afdd90 rdx 0xffff800020aff8b8 rcx 0 rax 0 r8 0xffffffff81b97273 kprintf+0x173 r9 0x1 r10 0x25 r11 0x1ebe4dd0914e7f8c r12 0x3000000008 r13 0xffff800020afdcf0 r14 0x100 r15 0x1 rip 0xffffffff81c53558 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020afdcd0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (reaper) pid=350418 stat=onproc flags process=14000 proc=200 pri=4, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab1b28,0xffff800020aff3d8 process=0xffff800020aea708 user=0xffff800020af8000, vmspace=0xffffffff82398cb0 estcpu=1, cpticks=7, pctcpu=0.38 user=0, sys=6, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 31733 169512 50303 32767 2 0x10 syz-executor.0 72458 133149 27617 32767 2 0x10 syz-executor.1 72458 462114 27617 32767 3 0x4000010 inode syz-executor.1 72458 234821 27617 32767 7 0x4000010 syz-executor.1 50303 2693 45419 32767 3 0x90 nanosleep syz-executor.0 45419 201200 90677 0 3 0x82 wait syz-executor.0 27617 313017 26602 32767 3 0x90 nanosleep syz-executor.1 26602 81695 90677 0 3 0x82 wait syz-executor.1 87627 298477 0 0 3 0x14200 bored sosplice 90677 99989 80052 0 3 0x82 kqread syz-fuzzer 90677 90068 80052 0 3 0x4000082 thrsleep syz-fuzzer 90677 514766 80052 0 3 0x4000082 thrsleep syz-fuzzer 90677 65850 80052 0 3 0x4000082 thrsleep syz-fuzzer 90677 416886 80052 0 3 0x4000082 thrsleep syz-fuzzer 90677 320777 80052 0 3 0x4000082 thrsleep syz-fuzzer 90677 284738 80052 0 3 0x4000082 thrsleep syz-fuzzer 90677 437705 80052 0 3 0x4000082 thrsleep syz-fuzzer 90677 136835 80052 0 3 0x4000082 thrsleep syz-fuzzer 90677 254801 80052 0 3 0x4000082 thrsleep syz-fuzzer 80052 502911 53843 0 3 0x10008a pause ksh 53843 470345 72339 0 3 0x92 select sshd 82426 142687 1 0 3 0x100083 ttyin getty 72339 276360 1 0 3 0x80 select sshd 60581 420872 24190 73 3 0x100010 ffs_fsync syslogd 24190 212725 1 0 3 0x100082 netio syslogd 99196 409407 1 77 3 0x100090 poll dhclient 47607 135003 1 0 3 0x80 poll dhclient 20562 66859 0 0 2 0x14200 zerothread 68601 292016 0 0 3 0x14200 aiodoned aiodoned 60730 186596 0 0 3 0x14200 syncer update 84912 70326 0 0 3 0x14200 cleaner cleaner *70611 350418 0 0 7 0x14200 reaper 96696 120077 0 0 3 0x14200 pgdaemon pagedaemon 83458 224940 0 0 3 0x14200 bored crynlk 77995 256106 0 0 3 0x14200 bored crypto 96489 398254 0 0 3 0x40014200 acpi0 acpi0 50384 319682 0 0 3 0x40014200 idle1 69635 302946 0 0 2 0x14200 softnet 17963 228895 0 0 3 0x14200 bored systqmp 38979 409173 0 0 3 0x14200 bored systq 20129 476813 0 0 3 0x40014200 bored softclock 28178 33141 0 0 3 0x40014200 idle0 34572 466751 0 0 3 0x14200 bored smr 1 145028 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 72458 (syz-executor.1) thread 0xffff800020b28298 (462114) exclusive rrwlock inode r = 0 (0xfffffd806b9223d8) #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 vfs_lookup+0xec sys/kern/vfs_lookup.c:418 #6 namei+0x61c sys/kern/vfs_lookup.c:248 #7 unp_connect+0x18b sys/kern/uipc_usrreq.c:513 #8 uipc_usrreq+0x8a9 sys/kern/uipc_usrreq.c:224 #9 sosend+0x668 sys/kern/uipc_socket.c:524 #10 sendit+0x52f sys/kern/uipc_syscalls.c:662 #11 sys_sendmsg+0x1a4 sys/kern/uipc_syscalls.c:567 #12 syscall+0x552 mi_syscall sys/sys/syscall_mi.h:92 [inline] #12 syscall+0x552 sys/arch/amd64/amd64/trap.c:555 #13 Xsyscall+0x128 Process 72458 (syz-executor.1) thread 0xffff800020b29658 (234821) exclusive rrwlock inode r = 0 (0xfffffd807e99f818) #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_write+0x169 vn_lock sys/kern/vfs_vnops.c:561 [inline] #4 vn_write+0x169 sys/kern/vfs_vnops.c:401 #5 dofilewritev+0x1ac sys/kern/sys_generic.c:364 #6 sys_pwritev+0xb8 sys/kern/vfs_syscalls.c:3269 #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 Process 60581 (syslogd) thread 0xffff800020b60c68 (420872) exclusive rrwlock inode r = 0 (0xfffffd806eb9e4d8) #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 9461 6321K 6321K 78643K 10638 0 0 pcb 13 8K 8K 78643K 13 0 0 rtable 105 3K 3K 78643K 990 0 0 ifaddr 35 10K 10K 78643K 146 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 46 0 0 iov 1 4K 28K 78643K 67 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1215 76K 76K 78643K 1635 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 10 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 0K 78643K 48 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 8 25K 33K 78643K 840 0 0 sigio 0 0K 0K 78643K 8 0 0 proc 41 38K 70K 78643K 1163 0 0 subproc 34 2K 2K 78643K 340 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 76 0 0 in_multi 33 2K 2K 78643K 254 0 0 ether_multi 1 0K 0K 78643K 4 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 54 238K 238K 78643K 54 0 0 exec 0 0K 1K 78643K 509 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 94 21K 22K 78643K 3522 0 0 UVM aobj 38 2K 2K 78643K 40 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 62 0 0 NDP 5 0K 0K 78643K 63 0 0 temp 118 2749K 2814K 78643K 6800 0 0 kqueue 0 0K 0K 78643K 12 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 42 0 36 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 71 0 69 1 0 1 1 0 8 0 rtentry 112 243 0 199 2 0 2 2 0 8 0 unpcb 120 313 0 304 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 4815 0 4815 1 1 0 1 0 8 0 tcpcb 544 155 0 151 1 0 1 1 0 8 0 inpcb 280 447 0 440 1 0 1 1 0 8 0 nd6 48 60 0 54 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 990 0 799 12 0 12 12 0 8 0 art_table 32 991 0 799 2 0 2 2 0 8 0 art_node 16 242 0 202 1 0 1 1 0 8 0 sysvmsgpl 40 8 0 6 1 0 1 1 0 8 0 semapl 112 46 0 36 1 0 1 1 0 8 0 shmpl 112 38 0 2 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2202 0 772 47 0 47 47 0 8 0 ffsino 272 2202 0 772 96 0 96 96 0 8 0 nchpl 144 3325 0 1698 61 0 61 61 0 8 0 uvmvnodes 72 2551 0 0 47 0 47 47 0 8 0 vnodes 200 2551 0 0 135 0 135 135 0 8 0 namei 1024 11785 0 11784 2 1 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 9421 0 9420 8 7 1 6 0 8 0 plimitpl 152 148 0 139 1 0 1 1 0 8 0 sigapl 432 957 0 941 4 2 2 3 0 8 0 futexpl 56 6380 0 6380 1 0 1 1 0 8 1 knotepl 112 564 0 545 1 0 1 1 0 8 0 kqueuepl 104 154 0 152 1 0 1 1 0 8 0 pipepl 112 586 0 567 2 1 1 2 0 8 0 fdescpl 488 958 0 941 3 0 3 3 0 8 0 filepl 152 5390 0 5292 8 3 5 7 0 8 1 lockfpl 104 150 0 149 3 2 1 1 0 8 0 lockfspl 48 44 0 43 3 2 1 1 0 8 0 sessionpl 112 35 0 25 1 0 1 1 0 8 0 pgrppl 48 43 0 33 1 0 1 1 0 8 0 ucredpl 96 1222 0 1213 1 0 1 1 0 8 0 zombiepl 144 941 0 941 2 1 1 1 0 8 1 processpl 896 974 0 941 4 0 4 4 0 8 0 procpl 632 2114 0 2069 7 2 5 5 0 8 1 srpgc 64 36 0 36 3 2 1 1 0 8 1 sosppl 128 12 0 12 3 2 1 1 0 8 1 sockpl 384 839 0 821 4 1 3 4 0 8 1 mcl64k 65536 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 9 0 0 1 0 1 1 0 8 0 mcl9k 9216 4 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 12 0 0 2 0 2 2 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 132 0 0 16 0 16 16 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 199 0 0 11 0 11 11 0 8 0 bufpl 256 6842 0 1154 356 0 356 356 0 8 0 anonpl 16 109418 0 103231 47 11 36 44 0 125 5 amapchunkpl 152 6598 0 6505 12 6 6 8 0 158 1 amappl16 192 4025 0 3657 43 20 23 31 0 8 3 amappl15 184 153 0 153 3 2 1 1 0 8 1 amappl14 176 321 0 313 1 0 1 1 0 8 0 amappl13 168 92 0 91 1 0 1 1 0 8 0 amappl12 160 169 0 167 2 1 1 1 0 8 0 amappl11 152 132 0 121 1 0 1 1 0 8 0 amappl10 144 129 0 128 1 0 1 1 0 8 0 amappl9 136 914 0 908 1 0 1 1 0 8 0 amappl8 128 429 0 407 1 0 1 1 0 8 0 amappl7 120 134 0 127 1 0 1 1 0 8 0 amappl6 112 93 0 82 1 0 1 1 0 8 0 amappl5 104 396 0 386 1 0 1 1 0 8 0 amappl4 96 1160 0 1132 2 1 1 2 0 8 0 amappl3 88 255 0 245 1 0 1 1 0 8 0 amappl2 80 5570 0 5505 3 1 2 3 0 8 0 amappl1 72 33703 0 33269 23 13 10 19 0 8 0 amappl 80 2610 0 2572 2 0 2 2 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 39 0 2 1 0 1 1 0 8 0 uaddrrnd 24 958 0 941 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 958 0 941 1 0 1 1 0 8 0 vmmpekpl 168 11473 0 11440 2 0 2 2 0 8 0 vmmpepl 168 126292 0 124671 102 24 78 90 0 357 6 vmsppl 368 957 0 941 2 0 2 2 0 8 0 pdppl 4096 1924 0 1882 6 0 6 6 0 8 0 pvpl 32 329310 0 319944 141 34 107 118 0 265 20 pmappl 232 957 0 941 3 2 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 512 0 3 15 0 15 15 0 8 0