login: witness: thread 0xffff800020b5f180 exiting with the following locks held: exclusive rrwlock inode r = 0 (0xfffffd806e6b96f8) #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 postsig+0x4e3 sigexit sys/kern/kern_sig.c:1499 [inline] #7 postsig+0x4e3 sys/kern/kern_sig.c:1431 #8 userret+0x199 sys/kern/kern_sig.c:1887 #9 syscall+0x44a mi_syscall_return sys/sys/syscall_mi.h:115 [inline] #9 syscall+0x44a sys/arch/amd64/amd64/trap.c:577 #10 Xsyscall+0x128 panic: thread 0xffff800020b5f180 cannot exit while holding sleeplocks Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 90175 98484 73 0x100010 0 0 syslogd * 53779 91450 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(ffff800020b5f180) at witness_thread_exit+0x213 sys/kern/subr_witness.c:1364 reaper(ffff800020aff640) 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 0xffff800020b5f180 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(ffff800020b5f180) at witness_thread_exit+0x213 sys/kern/subr_witness.c:1364 reaper(ffff800020aff640) at reaper+0x14c sys/kern/kern_exit.c:423 end trace frame: 0x0, count: -4 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020afd4d0 rbx 0xffff800020afd580 rdx 0xffff800020aff640 rcx 0 rax 0 r8 0xffffffff815a9073 kprintf+0x173 r9 0x1 r10 0x25 r11 0xf712164df2861526 r12 0x3000000008 r13 0xffff800020afd4e0 r14 0x100 r15 0x1 rip 0xffffffff81e595e8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020afd4c0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (reaper) pid=53779 stat=onproc flags process=14000 proc=200 pri=4, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab18b0,0xffff800020aff160 process=0xffff800020aea008 user=0xffff800020af8000, vmspace=0xffffffff8236a918 estcpu=1, cpticks=5, pctcpu=0.0 user=0, sys=5, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 81375 19463 1 0 3 0x80 nanosleep init 4836 469002 1 0 3 0x3000 suspend syz-executor.1 4836 143860 1 0 3 0x4081000 uvn_get syz-executor.1 4836 506710 1 0 3 0x4081000 uvn_flsh syz-executor.1 4836 333913 1 0 3 0x4081000 inode syz-executor.1 4836 263590 1 0 3 0x4081000 uvn_get syz-executor.1 4836 309512 1 0 3 0x4081000 uvn_get syz-executor.1 4836 159281 1 0 3 0x4081000 uvn_get syz-executor.1 83164 69441 28917 0 3 0x82 piperd syz-executor.0 74419 418708 0 0 3 0x14200 acct acct 63815 407536 0 0 3 0x14200 bored sosplice 28917 299668 72116 0 3 0x82 thrsleep syz-fuzzer 28917 165992 72116 0 3 0x4000082 thrsleep syz-fuzzer 28917 184741 72116 0 3 0x4000082 thrsleep syz-fuzzer 28917 242310 72116 0 3 0x4000082 thrsleep syz-fuzzer 28917 264544 72116 0 3 0x4000082 thrsleep syz-fuzzer 28917 341147 72116 0 3 0x4000082 thrsleep syz-fuzzer 28917 93517 72116 0 3 0x4000082 thrsleep syz-fuzzer 28917 66116 72116 0 3 0x4000082 thrsleep syz-fuzzer 28917 46610 72116 0 3 0x4000082 kqread syz-fuzzer 28917 181249 72116 0 3 0x4000082 thrsleep syz-fuzzer 72116 211695 97283 0 3 0x10008a pause ksh 97283 253683 66464 0 3 0x92 select sshd 66464 277537 1 0 3 0x80 select sshd 29288 392026 49580 74 3 0x100092 bpf pflogd 49580 196319 1 0 3 0x80 netio pflogd 98484 90175 53274 73 7 0x100010 syslogd 53274 160475 1 0 3 0x100082 netio syslogd 35198 506490 1 77 3 0x100090 poll dhclient 3698 454904 1 0 3 0x80 poll dhclient 45170 311296 0 0 3 0x14200 pgzero zerothread 52174 481402 0 0 3 0x14200 aiodoned aiodoned 80480 503083 0 0 3 0x14200 syncer update 54390 413587 0 0 3 0x14200 cleaner cleaner *91450 53779 0 0 7 0x14200 reaper 98205 299393 0 0 3 0x14200 pgdaemon pagedaemon 39460 16665 0 0 3 0x14200 bored crynlk 23604 421376 0 0 3 0x14200 bored crypto 85341 32408 0 0 3 0x40014200 acpi0 acpi0 40247 371783 0 0 3 0x40014200 idle1 51210 392101 0 0 3 0x14200 bored softnet 69565 345710 0 0 3 0x14200 bored systqmp 22336 49752 0 0 3 0x14200 bored systq 63868 351708 0 0 3 0x40014200 bored softclock 11269 271020 0 0 3 0x40014200 idle0 43080 474617 0 0 3 0x14200 bored smr 1 237969 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 4836 (syz-executor.1) thread 0xffff800020b5fb60 (506710) exclusive rrwlock inode r = 0 (0xfffffd807b06f4e8) #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_ftruncate+0x140 sys/kern/vfs_syscalls.c:2776 #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 Process 98484 (syslogd) thread 0xffff800020b60500 (90175) exclusive rrwlock inode r = 0 (0xfffffd806eb8fd58) #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 9616 6474K 14790K 78643K 32488 0 0 pcb 13 8K 8K 78643K 705 0 0 rtable 115 12K 13K 78643K 2549 0 0 ifaddr 86 19K 20K 78643K 922 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1951 0 0 iov 2 32K 32K 78643K 1129 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1194 75K 77K 78643K 9139 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 128 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 0K 78643K 1058 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 4 9K 25K 78643K 9896 0 0 sigio 0 0K 0K 78643K 123 0 0 proc 48 38K 83K 78643K 2307 0 0 subproc 32 2K 2K 78643K 408 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 758 0 0 in_multi 33 2K 2K 78643K 534 0 0 ether_multi 1 0K 0K 78643K 30 0 0 mrt 0 0K 0K 78643K 20 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 144 636K 636K 78643K 144 0 0 exec 0 0K 1K 78643K 1241 0 0 pfkey data 0 0K 4K 78643K 4 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 121 22K 32K 78643K 33583 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 509 0 0 NDP 21 0K 0K 78643K 280 0 0 temp 235 2753K 3392K 78643K 114664 0 0 kqueue 0 0K 0K 78643K 66 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 52 0 46 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 452 0 450 1 0 1 1 0 8 0 rtentry 112 298 0 254 2 0 2 2 0 8 0 unpcb 120 3178 0 3168 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 8761 0 8761 3 3 0 1 0 8 0 tcpcb 544 1470 0 1466 1 0 1 1 0 8 0 inpcb 280 4592 0 4585 8 7 1 2 0 8 0 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 72 0 66 1 0 1 1 0 8 0 pkpcb 40 38 0 38 11 11 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 153 0 153 32 32 0 1 0 8 0 pffrag 232 6 0 6 5 5 0 1 0 482 0 pffrnode 88 6 0 6 5 5 0 1 0 8 0 pffrent 40 13 0 13 5 5 0 1 0 8 0 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 218 0 216 1 0 1 1 0 8 0 pfstkey 112 219 0 217 1 0 1 1 0 8 0 pfstate 328 219 0 217 3 1 2 3 0 8 1 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 1203 0 1009 14 1 13 13 0 8 0 art_table 32 1204 0 1009 2 0 2 2 0 8 0 art_node 16 289 0 249 1 0 1 1 0 8 0 sysvmsgpl 40 9 0 7 2 1 1 1 0 8 0 semapl 112 1056 0 1046 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 16527 0 15075 48 0 48 48 0 8 0 ffsino 272 16527 0 15075 99 1 98 98 0 8 0 nchpl 144 30838 0 29204 62 0 62 62 0 8 0 uvmvnodes 72 6059 0 0 111 0 111 111 0 8 0 vnodes 200 6059 0 0 319 0 319 319 0 8 0 namei 1024 99128 0 99126 4 3 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 scsiplug 64 12 0 12 9 9 0 1 0 8 0 scxspl 192 97423 0 97423 46 45 1 6 0 8 1 plimitpl 152 894 0 886 1 0 1 1 0 8 0 sigapl 432 10043 0 10029 3 1 2 3 0 8 0 futexpl 56 110893 0 110893 3 3 0 1 0 8 0 knotepl 112 2063 0 2044 1 0 1 1 0 8 0 kqueuepl 104 2046 0 2044 1 0 1 1 0 8 0 pipepl 112 5616 0 5599 12 11 1 2 0 8 0 fdescpl 488 10044 0 10029 3 0 3 3 0 8 0 filepl 152 57842 0 57742 19 15 4 7 0 8 0 lockfpl 104 3846 0 3845 5 4 1 1 0 8 0 lockfspl 48 1257 0 1256 5 4 1 1 0 8 0 sessionpl 112 52 0 41 1 0 1 1 0 8 0 pgrppl 48 184 0 173 1 0 1 1 0 8 0 ucredpl 96 11029 0 11020 1 0 1 1 0 8 0 zombiepl 144 10031 0 10028 5 4 1 1 0 8 0 processpl 896 10062 0 10028 4 0 4 4 0 8 0 procpl 632 31506 0 31457 8 3 5 5 0 8 0 srpgc 64 45 0 45 22 22 0 1 0 8 0 sosppl 128 148 0 148 31 31 0 1 0 8 0 sockpl 384 8345 0 8326 16 14 2 4 0 8 0 mcl64k 65536 265 0 0 34 29 5 34 0 8 0 mcl16k 16384 21 0 0 3 1 2 3 0 8 0 mcl12k 12288 55 0 0 2 0 2 2 0 8 0 mcl9k 9216 25 0 0 2 0 2 2 0 8 0 mcl8k 8192 25 0 0 4 1 3 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 13 0 0 1 0 1 1 0 8 0 mcl2k 2048 221 0 0 19 11 8 19 0 8 0 mtagpl 80 50 0 0 1 0 1 1 0 8 0 mbufpl 256 968 0 0 30 2 28 30 0 8 0 bufpl 256 34826 0 27797 440 0 440 440 0 8 0 anonpl 16 916616 0 905465 247 188 59 79 0 125 0 amapchunkpl 152 59831 0 59712 64 59 5 12 0 158 0 amappl16 192 52350 0 51650 284 248 36 59 0 8 0 amappl15 184 432 0 432 3 3 0 1 0 8 0 amappl14 176 887 0 881 1 0 1 1 0 8 0 amappl13 168 3272 0 3271 4 3 1 1 0 8 0 amappl12 160 808 0 806 1 0 1 1 0 8 0 amappl11 152 467 0 452 1 0 1 1 0 8 0 amappl10 144 1656 0 1649 1 0 1 1 0 8 0 amappl9 136 2853 0 2849 1 0 1 1 0 8 0 amappl8 128 2347 0 2309 3 1 2 2 0 8 0 amappl7 120 1616 0 1608 1 0 1 1 0 8 0 amappl6 112 435 0 425 1 0 1 1 0 8 0 amappl5 104 1153 0 1138 1 0 1 1 0 8 0 amappl4 96 10791 0 10756 2 1 1 2 0 8 0 amappl3 88 2013 0 2003 1 0 1 1 0 8 0 amappl2 80 79735 0 79663 3 0 3 3 0 8 0 amappl1 72 225461 0 225036 25 15 10 20 0 8 0 amappl 80 32162 0 32119 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 10044 0 10028 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 10044 0 10028 1 0 1 1 0 8 0 vmmpekpl 168 85739 0 85710 2 0 2 2 0 8 0 vmmpepl 168 1223879 0 1222066 412 321 91 110 0 357 0 vmsppl 368 10043 0 10028 2 0 2 2 0 8 0 pdppl 4096 20096 0 20056 6 0 6 6 0 8 0 pvpl 32 2470427 0 2455539 560 421 139 194 0 265 0 pmappl 232 10043 0 10028 3 2 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 667 0 52 19 0 19 19 0 8 0