login: witness: userret: returning with the following locks held: exclusive rrwlock inode r = 0 (0xfffffd8066172928) #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: witness_warn Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 466237 38778 0 0x1000 0x2000 1K syz-executor.0 * 64743 38778 0 0x1000 0x4080000 0 syz-executor.0 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_warn(2,0,ffffffff81fbbdb6) at witness_warn+0x69e witness_debugger sys/kern/subr_witness.c:2509 [inline] witness_warn(2,0,ffffffff81fbbdb6) at witness_warn+0x69e sys/kern/subr_witness.c:1454 userret(ffff800020b5e298) at userret+0x36a sys/kern/kern_sig.c:1916 syscall(ffff800023c4f460) at syscall+0x44a mi_syscall_return sys/sys/syscall_mi.h:115 [inline] syscall(ffff800023c4f460) at syscall+0x44a sys/arch/amd64/amd64/trap.c:577 Xsyscall(6,0,ffffffffffffffbb,0,3,d362ea10280) at Xsyscall+0x128 end of kernel end trace frame: 0xd3833b477e0, count: 9 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic witness_warn ddb{0}> 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_warn(2,0,ffffffff81fbbdb6) at witness_warn+0x69e witness_debugger sys/kern/subr_witness.c:2509 [inline] witness_warn(2,0,ffffffff81fbbdb6) at witness_warn+0x69e sys/kern/subr_witness.c:1454 userret(ffff800020b5e298) at userret+0x36a sys/kern/kern_sig.c:1916 syscall(ffff800023c4f460) at syscall+0x44a mi_syscall_return sys/sys/syscall_mi.h:115 [inline] syscall(ffff800023c4f460) at syscall+0x44a sys/arch/amd64/amd64/trap.c:577 Xsyscall(6,0,ffffffffffffffbb,0,3,d362ea10280) at Xsyscall+0x128 end of kernel end trace frame: 0xd3833b477e0, count: -6 ddb{0}> show registers rdi 0 rsi 0x3ffff acpi_pdirpa+0x2be67 rbp 0xffff800023c4f1a0 rbx 0xffff800023c4f250 rdx 0x40000 acpi_pdirpa+0x2be68 rcx 0xffff800021214000 rax 0xffff80000097dc00 r8 0xffffffff81f21ae3 kprintf+0x173 r9 0x1 r10 0x25 r11 0xc60db02db579b61c r12 0x3000000008 r13 0xffff800023c4f1b0 r14 0x100 r15 0x1 rip 0xffffffff81010db8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023c4f190 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=64743 stat=onproc flags process=1000 proc=4080000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020b5f658,0xffffffff82382a10 process=0xffff800020b7ce00 user=0xffff800023c4a000, vmspace=0xfffffd807f00b450 estcpu=36, cpticks=4, pctcpu=0.0 user=0, sys=4, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 38778 466237 94874 0 7 0x3000 syz-executor.0 38778 102852 94874 0 2 0x4081000 syz-executor.0 38778 515956 94874 0 2 0x4081000 syz-executor.0 38778 256209 94874 0 2 0x4081000 syz-executor.0 *38778 64743 94874 0 7 0x4081000 syz-executor.0 56483 345356 92128 0 2 0x2 syz-executor.1 94007 16089 1 0 3 0x100083 ttyin getty 86707 7186 0 0 3 0x14200 bored sosplice 3414 339598 0 0 3 0x14200 acct acct 94874 130832 92128 0 3 0x82 nanosleep syz-executor.0 92128 2312 92269 0 3 0x82 thrsleep syz-fuzzer 92128 42562 92269 0 3 0x4000082 nanosleep syz-fuzzer 92128 53778 92269 0 3 0x4000082 thrsleep syz-fuzzer 92128 337905 92269 0 3 0x4000082 thrsleep syz-fuzzer 92128 392766 92269 0 3 0x4000082 thrsleep syz-fuzzer 92128 494669 92269 0 3 0x4000082 kqread syz-fuzzer 92128 60101 92269 0 3 0x4000082 thrsleep syz-fuzzer 92128 498689 92269 0 2 0x4000082 syz-fuzzer 92128 25866 92269 0 3 0x4000082 thrsleep syz-fuzzer 92128 231713 92269 0 3 0x4000082 thrsleep syz-fuzzer 92269 88617 60047 0 3 0x10008a pause ksh 60047 421353 60056 0 2 0x92 sshd 60056 491238 1 0 3 0x80 select sshd 17443 204437 3185 74 3 0x100092 bpf pflogd 3185 202128 1 0 3 0x80 netio pflogd 69616 32725 7282 73 2 0x100090 syslogd 7282 284209 1 0 3 0x100082 netio syslogd 93227 256934 1 77 3 0x100090 poll dhclient 5888 278223 1 0 3 0x80 poll dhclient 68429 132772 0 0 2 0x14200 zerothread 38886 475772 0 0 3 0x14200 aiodoned aiodoned 71353 21475 0 0 3 0x14200 syncer update 22758 211126 0 0 3 0x14200 cleaner cleaner 8525 428668 0 0 3 0x14200 reaper reaper 2477 27802 0 0 3 0x14200 pgdaemon pagedaemon 8316 419820 0 0 3 0x14200 bored crynlk 72558 112963 0 0 3 0x14200 bored crypto 73857 193676 0 0 3 0x40014200 acpi0 acpi0 8436 437157 0 0 3 0x40014200 idle1 9090 171053 0 0 3 0x14200 bored softnet 21100 443486 0 0 3 0x14200 bored systqmp 20718 493167 0 0 3 0x14200 bored systq 37189 179283 0 0 2 0x40014200 softclock 71849 307864 0 0 3 0x40014200 idle0 23928 206414 0 0 3 0x14200 bored smr 1 350215 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 38778 (syz-executor.0) thread 0xffff800020b5e298 (64743) exclusive rrwlock inode r = 0 (0xfffffd8066172928) #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 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9554 7069K 7523K 78643K 12457 0 0 pcb 13 8K 8K 78643K 91 0 0 rtable 113 4K 5K 78643K 410 0 0 ifaddr 71 15K 15K 78643K 144 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1496 0 0 iov 0 0K 32K 78643K 117 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1220 77K 77K 78643K 1895 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 22 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 0K 78643K 104 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 838 0 0 sigio 0 0K 0K 78643K 8 0 0 proc 53 50K 83K 78643K 529 0 0 subproc 32 2K 2K 78643K 51 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 58 0 0 in_multi 33 2K 2K 78643K 73 0 0 ether_multi 1 0K 0K 78643K 5 0 0 mrt 0 0K 0K 78643K 3 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 72 318K 318K 78643K 72 0 0 exec 0 0K 1K 78643K 282 0 0 pfkey data 0 0K 0K 78643K 1 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 101 21K 22K 78643K 3675 0 0 UVM aobj 28 2K 2K 78643K 32 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 52 0 0 NDP 16 0K 0K 78643K 40 0 0 temp 199 2748K 3388K 78643K 5941 0 0 kqueue 0 0K 0K 78643K 10 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 9 0 2 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 59 0 57 1 0 1 1 0 8 0 rtentry 112 57 0 12 2 0 2 2 0 8 0 unpcb 120 351 0 341 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 7924 0 7924 1 1 0 1 0 8 0 tcpcb 544 149 0 145 1 0 1 1 0 8 0 inpcb 280 423 0 414 2 1 1 2 0 8 0 nd6 48 9 0 3 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 14 0 14 4 3 1 1 0 8 1 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 33 0 14 1 0 1 1 0 8 0 pfstkey 112 33 0 14 1 0 1 1 0 8 0 pfstate 328 33 0 14 2 0 2 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 237 0 44 13 0 13 13 0 8 0 art_table 32 238 0 44 2 0 2 2 0 8 0 art_node 16 56 0 15 1 0 1 1 0 8 0 sysvmsgpl 40 3 0 1 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 102 0 92 1 0 1 1 0 8 0 shmpl 112 30 0 4 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2721 0 1293 47 0 47 47 0 8 0 ffsino 272 2721 0 1293 96 0 96 96 0 8 0 nchpl 144 4119 0 2487 62 0 62 62 0 8 0 uvmvnodes 72 3206 0 0 59 0 59 59 0 8 0 vnodes 200 3206 0 0 169 0 169 169 0 8 0 namei 1024 12543 0 12543 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 12279 0 12279 11 10 1 6 0 8 1 plimitpl 152 82 0 73 1 0 1 1 0 8 0 sigapl 432 1037 0 1022 3 1 2 3 0 8 0 futexpl 56 10015 0 10015 1 0 1 1 0 8 1 knotepl 112 167 0 148 1 0 1 1 0 8 0 kqueuepl 104 150 0 148 1 0 1 1 0 8 0 pipepl 112 666 0 647 2 1 1 2 0 8 0 fdescpl 488 1038 0 1022 3 0 3 3 0 8 0 filepl 152 6266 0 6161 8 3 5 7 0 8 0 lockfpl 104 364 0 364 2 1 1 1 0 8 1 lockfspl 48 121 0 121 2 1 1 1 0 8 1 sessionpl 112 21 0 10 1 0 1 1 0 8 0 pgrppl 48 25 0 14 1 0 1 1 0 8 0 ucredpl 96 1218 0 1209 1 0 1 1 0 8 0 zombiepl 144 1022 0 1022 2 1 1 1 0 8 1 processpl 896 1055 0 1022 4 0 4 4 0 8 0 procpl 632 2827 0 2781 5 0 5 5 0 8 0 srpgc 64 2 0 2 1 0 1 1 0 8 1 sosppl 128 15 0 15 4 3 1 1 0 8 1 sockpl 384 848 0 829 5 2 3 4 0 8 1 mcl64k 65536 10 0 0 2 0 2 2 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 9 0 0 1 0 1 1 0 8 0 mcl9k 9216 5 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 9 0 0 2 0 2 2 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 186 0 0 22 1 21 22 0 8 0 mtagpl 80 18 0 0 1 0 1 1 0 8 0 mbufpl 256 217 0 0 13 0 13 13 0 8 0 bufpl 256 8101 0 1170 434 0 434 434 0 8 0 anonpl 16 105430 0 94095 79 23 56 64 0 125 8 amapchunkpl 152 5739 0 5624 11 5 6 10 0 158 1 amappl16 192 5119 0 4473 60 26 34 45 0 8 1 amappl15 184 327 0 327 1 0 1 1 0 8 1 amappl14 176 391 0 385 1 0 1 1 0 8 0 amappl13 168 9 0 8 1 0 1 1 0 8 0 amappl12 160 20 0 18 2 1 1 1 0 8 0 amappl11 152 65 0 49 1 0 1 1 0 8 0 amappl10 144 135 0 130 1 0 1 1 0 8 0 amappl9 136 614 0 611 1 0 1 1 0 8 0 amappl8 128 166 0 146 1 0 1 1 0 8 0 amappl7 120 96 0 91 1 0 1 1 0 8 0 amappl6 112 68 0 59 1 0 1 1 0 8 0 amappl5 104 142 0 127 1 0 1 1 0 8 0 amappl4 96 986 0 955 2 1 1 2 0 8 0 amappl3 88 868 0 858 1 0 1 1 0 8 0 amappl2 80 7287 0 7215 3 1 2 3 0 8 0 amappl1 72 32320 0 31882 26 16 10 20 0 8 0 amappl 80 3098 0 3057 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 31 0 4 1 0 1 1 0 8 0 uaddrrnd 24 1038 0 1022 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1038 0 1022 1 0 1 1 0 8 0 vmmpekpl 168 12290 0 12262 2 0 2 2 0 8 0 vmmpepl 168 131725 0 129950 152 52 100 100 0 357 18 vmsppl 368 1037 0 1022 2 0 2 2 0 8 0 pdppl 4096 2084 0 2044 6 0 6 6 0 8 0 pvpl 32 318684 0 304134 194 43 151 159 0 265 28 pmappl 232 1037 0 1022 2 1 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 603 0 5 18 0 18 18 0 8 0