kern.securelevel: 0 -> 1 creating runtime link editor directory cache. preserving editor files. starting network daemons: sshd. starting local daemons:. Tue Aug 20 03:10:38 PDT 2019 OpenBSD/amd64 (ci-openbsd-multicore-test-job-test-job-2.c.syzkaller.internal) (tty00) Warning: Permanently added '10.128.0.115' (ECDSA) to the list of known hosts. login: witness: userret: returning with the following locks held: exclusive rrwlock inode r = 0 (0xfffffd8068e442c8) #0 witness_lock+0x52e #1 rw_enter+0x46d #2 rrw_enter+0x4f #3 VOP_LOCK+0x4b #4 vn_write+0x179 #5 dofilewritev+0x1ac #6 sys_write+0x83 #7 syscall+0x552 #8 Xsyscall+0x128 panic: witness_warn Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *361881 95730 0 0 0x4000000 0 syz-executor1630 64617 99884 73 0x100010 0 1 syslogd db_enter() at db_enter+0x18 panic() at panic+0x15c witness_warn(2,0,ffffffff82208f75) at witness_warn+0x69e userret(ffff800020ac0ee0) at userret+0x36a syscall(ffff800020b0fea0) at syscall+0x44a Xsyscall(6,5,7385d7400c8,0,7385d7400a8,7385d7400a0) at Xsyscall+0x128 end of kernel end trace frame: 0x73b1916d7e0, 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 panic() at panic+0x15c witness_warn(2,0,ffffffff82208f75) at witness_warn+0x69e userret(ffff800020ac0ee0) at userret+0x36a syscall(ffff800020b0fea0) at syscall+0x44a Xsyscall(6,5,7385d7400c8,0,7385d7400a8,7385d7400a0) at Xsyscall+0x128 end of kernel end trace frame: 0x73b1916d7e0, count: -6 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020b0fbe0 rbx 0xffff800020b0fc90 rdx 0xffff800020ac0ee0 rcx 0 rax 0 r8 0xffffffff81caa3a3 kprintf+0x173 r9 0x1 r10 0x25 r11 0xaa9b922bbb3c0a35 r12 0x3000000008 r13 0xffff800020b0fbf0 r14 0x100 r15 0x1 rip 0xffffffff81107d08 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b0fbd0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor1630) pid=361881 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ac0500,0xffff800020ac18d0 process=0xffff800020addc00 user=0xffff800020b0a000, vmspace=0xfffffd807f00c730 estcpu=36, cpticks=4, pctcpu=0.0 user=0, sys=4, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 95730 104777 52204 0 3 0x80 nanosleep syz-executor1630 *95730 361881 52204 0 7 0x4000000 syz-executor1630 95730 23037 52204 0 3 0x4000080 fsleep syz-executor1630 95730 328866 52204 0 3 0x4000080 fsleep syz-executor1630 95730 412724 52204 0 3 0x4000080 fsleep syz-executor1630 52204 244989 98263 0 3 0x82 nanosleep syz-executor1630 98263 510871 68997 0 3 0x10008a pause ksh 68997 189461 46979 0 3 0x92 select sshd 34810 402014 1 0 3 0x100083 ttyin getty 46979 410814 1 0 3 0x80 select sshd 14972 446330 65582 74 3 0x100092 bpf pflogd 65582 330995 1 0 3 0x80 netio pflogd 99884 64617 13860 73 7 0x100010 syslogd 13860 143168 1 0 3 0x100082 netio syslogd 85490 294853 1 77 3 0x100090 poll dhclient 5446 514954 1 0 3 0x80 poll dhclient 24924 162349 0 0 3 0x14200 pgzero zerothread 23824 429691 0 0 3 0x14200 aiodoned aiodoned 10399 171745 0 0 3 0x14200 syncer update 68893 53229 0 0 3 0x14200 cleaner cleaner 12233 396633 0 0 3 0x14200 reaper reaper 78238 384022 0 0 3 0x14200 pgdaemon pagedaemon 93060 258741 0 0 3 0x14200 bored crynlk 10011 225937 0 0 3 0x14200 bored crypto 61322 163074 0 0 3 0x40014200 acpi0 acpi0 5974 9420 0 0 3 0x40014200 idle1 71287 93890 0 0 3 0x14200 bored softnet 4402 73184 0 0 3 0x14200 bored systqmp 52161 1598 0 0 3 0x14200 bored systq 87420 346474 0 0 3 0x40014200 bored softclock 89918 397350 0 0 3 0x40014200 idle0 46598 38743 0 0 3 0x14200 bored smr 1 481108 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 95730 (syz-executor1630) thread 0xffff800020ac0ee0 (361881) exclusive rrwlock inode r = 0 (0xfffffd8068e442c8) #0 witness_lock+0x52e #1 rw_enter+0x46d #2 rrw_enter+0x4f #3 VOP_LOCK+0x4b #4 vn_write+0x179 #5 dofilewritev+0x1ac #6 sys_write+0x83 #7 syscall+0x552 #8 Xsyscall+0x128 Process 99884 (syslogd) thread 0xffff800020ac09f0 (64617) exclusive rrwlock inode r = 0 (0xfffffd806eca5c48) #0 witness_lock+0x52e #1 rw_enter+0x46d #2 rrw_enter+0x4f #3 VOP_LOCK+0x4b #4 vn_lock+0x6c #5 sys_fsync+0x114 #6 syscall+0x552 #7 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9458 6383K 6388K 78643K 10555 0 0 pcb 13 8K 8K 78643K 13 0 0 rtable 61 2K 3K 78643K 189 0 0 ifaddr 26 8K 10K 78643K 40 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1469 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1198 75K 75K 78643K 75256 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 1K 78643K 2 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 2 0K 0K 78643K 2 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 2 2K 25K 78643K 34030 0 0 proc 52 50K 83K 78643K 374 0 0 subproc 0 0K 1K 78643K 17 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 in_multi 11 0K 2K 78643K 33 0 0 ether_multi 1 0K 0K 78643K 1 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 218 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 65 3K 21K 78643K 103250 0 0 UVM aobj 2 2K 2K 78643K 2 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 NDP 4 0K 0K 78643K 10 0 0 temp 39 3536K 3602K 78643K 71305 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 4 0 2 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 15 0 13 1 0 1 1 0 8 0 rtentry 112 41 0 19 2 0 2 2 0 8 1 unpcb 120 49 0 39 1 0 1 1 0 8 0 syncache 264 10 0 10 2 1 1 1 0 8 1 tcpqe 32 1 0 1 1 1 0 1 0 8 0 tcpcb 544 16 0 13 1 0 1 1 0 8 0 inpcb 280 41 0 35 1 0 1 1 0 8 0 nd6 48 4 0 4 1 0 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 18 0 15 1 0 1 1 0 8 0 pfstkey 112 18 0 15 1 0 1 1 0 8 0 pfstate 328 18 0 15 2 1 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 185 0 89 12 0 12 12 0 8 6 art_table 32 186 0 89 2 0 2 2 0 8 1 art_node 16 40 0 20 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 109478 0 108046 47 0 47 47 0 8 0 ffsino 272 109478 0 108046 96 0 96 96 0 8 0 nchpl 144 143711 0 142070 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 854540 0 854540 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 275749 0 275749 7 6 1 6 0 8 1 plimitpl 152 22 0 16 1 0 1 1 0 8 0 sigapl 432 34215 0 34202 4 1 3 3 0 8 1 futexpl 56 257046 0 257043 2 1 1 1 0 8 0 knotepl 112 95 0 90 1 0 1 1 0 8 0 kqueuepl 104 3 0 2 1 0 1 1 0 8 0 pipepl 112 242 0 235 1 0 1 1 0 8 0 fdescpl 488 34216 0 34202 3 0 3 3 0 8 0 filepl 152 572735 0 572679 5 1 4 4 0 8 1 lockfpl 104 6 0 6 1 1 0 1 0 8 0 lockfspl 48 3 0 3 1 1 0 1 0 8 0 sessionpl 112 31 0 22 1 0 1 1 0 8 0 pgrppl 48 31 0 22 1 0 1 1 0 8 0 ucredpl 96 528108 0 528099 1 0 1 1 0 8 0 zombiepl 144 34202 0 34202 1 0 1 1 0 8 1 processpl 896 34231 0 34202 4 0 4 4 0 8 0 procpl 632 102432 0 102399 5 1 4 4 0 8 1 srpgc 64 6 0 6 1 0 1 1 0 8 1 sockpl 384 105 0 87 3 1 2 3 0 8 0 mcl4k 4096 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 100 0 0 11 0 11 11 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 172 0 0 9 0 9 9 0 8 0 bufpl 256 40023 0 33003 439 0 439 439 0 8 0 anonpl 16 1881926 0 1880619 18 6 12 13 0 124 6 amapchunkpl 152 171143 0 171097 8 4 4 5 0 158 2 amappl16 192 142545 0 142535 7 1 6 6 0 8 5 amappl15 184 1 0 1 1 1 0 1 0 8 0 amappl14 176 34030 0 34026 1 0 1 1 0 8 0 amappl13 168 15 0 15 2 2 0 1 0 8 0 amappl12 160 17 0 17 2 1 1 1 0 8 1 amappl11 152 65 0 50 1 0 1 1 0 8 0 amappl10 144 95 0 93 1 0 1 1 0 8 0 amappl9 136 815 0 814 1 0 1 1 0 8 0 amappl8 128 162 0 156 1 0 1 1 0 8 0 amappl7 120 41 0 40 1 0 1 1 0 8 0 amappl6 112 93 0 89 1 0 1 1 0 8 0 amappl5 104 198 0 185 1 0 1 1 0 8 0 amappl4 96 17659 0 17633 2 1 1 2 0 8 0 amappl3 88 34184 0 34172 1 0 1 1 0 8 0 amappl2 80 272868 0 272804 4 2 2 3 0 8 0 amappl1 72 793144 0 792708 30 20 10 20 0 8 0 amappl 80 102656 0 102630 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 1 0 0 1 0 1 1 0 8 0 uaddrrnd 24 34216 0 34202 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 34216 0 34202 1 0 1 1 0 8 0 vmmpekpl 168 217114 0 217092 3 1 2 2 0 8 0 vmmpepl 168 2883786 0 2882869 91 33 58 79 0 357 18 vmsppl 368 34215 0 34202 2 0 2 2 0 8 0 pdppl 4096 68439 0 68404 7 1 6 6 0 8 1 pvpl 32 5102767 0 5099656 114 66 48 107 0 265 18 pmappl 232 34215 0 34202 3 1 2 2 0 8 1 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 587 0 4 17 0 17 17 0 8 0