kern.securelevel: 0 -> 1 creating runtime link editor directory cache. preserving editor files. starting network daemons: sshd. starting local daemons:. Sat Jun 22 07:30:08 PDT 2019 OpenBSD/amd64 (ci-openbsd-setuid-5.c.syzkaller.internal) (tty00) Warning: Permanently added '10.128.10.42' (ECDSA) to the list of known hosts. 2019/06/22 07:30:33 parsed 1 programs 2019/06/22 07:30:39 executed programs: 0 login: witness: userret: returning with the following locks held: exclusive rrwlock inode r = 0 (0xfffffd806e802e78) #0 witness_lock+0x52e #1 rw_enter+0x46d #2 rrw_enter+0x4f #3 VOP_LOCK+0x4b #4 vn_write+0x169 #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 331780 99147 0 0 0 1 syz-executor.0 *399445 19910 0 0x1000 0x4080000 0 syz-executor.1 db_enter() at db_enter+0x18 panic() at panic+0x15c witness_warn(2,0,ffffffff81fac6a5) at witness_warn+0x69e userret(ffff800020b38c70) at userret+0x36a syscall(ffff800020c25920) at syscall+0x44a Xsyscall(6,5,c,0,3,54060fe41b0) at Xsyscall+0x128 end of kernel end trace frame: 0x5430b993730, 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}> 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,ffffffff81fac6a5) at witness_warn+0x69e userret(ffff800020b38c70) at userret+0x36a syscall(ffff800020c25920) at syscall+0x44a Xsyscall(6,5,c,0,3,54060fe41b0) at Xsyscall+0x128 end of kernel end trace frame: 0x5430b993730, count: -6 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020c25660 rbx 0xffff800020c25710 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff81957ee3 kprintf+0x173 r9 0x1 r10 0xf5b10e779fb01528 r11 0x60c56b29bc5aa840 r12 0x3000000008 r13 0xffff800020c25670 r14 0x100 r15 0x1 rip 0xffffffff8129bf48 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020c25650 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=399445 stat=onproc flags process=1000 proc=4080000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020b38780,0xffff800020b393e8 process=0xffff800020b3b510 user=0xffff800020c20000, vmspace=0xfffffd807effe8a0 estcpu=36, cpticks=6, pctcpu=0.0 user=0, sys=6, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 99147 331780 53982 0 7 0 syz-executor.0 99147 52760 53982 0 2 0x4000000 syz-executor.0 19910 374700 42742 0 3 0x3000 suspend syz-executor.1 *19910 399445 42742 0 7 0x4081000 syz-executor.1 53982 10045 60881 0 3 0x82 nanosleep syz-executor.0 42742 393685 60881 0 2 0x482 syz-executor.1 60881 216573 50242 0 3 0x82 thrsleep syz-execprog 60881 281518 50242 0 3 0x4000082 thrsleep syz-execprog 60881 339976 50242 0 3 0x4000082 thrsleep syz-execprog 60881 389712 50242 0 3 0x4000082 thrsleep syz-execprog 60881 144994 50242 0 3 0x4000082 thrsleep syz-execprog 60881 163012 50242 0 3 0x4000082 thrsleep syz-execprog 60881 316136 50242 0 3 0x4000082 thrsleep syz-execprog 60881 242964 50242 0 3 0x4000082 thrsleep syz-execprog 60881 297733 50242 0 2 0x4000082 syz-execprog 50242 375092 94819 0 3 0x10008a pause ksh 94819 11046 6238 0 3 0x92 select sshd 95972 130090 1 0 2 0x100083 getty 6238 278697 1 0 3 0x80 select sshd 47455 335039 90404 73 2 0x100010 syslogd 90404 12033 1 0 3 0x100082 netio syslogd 52485 461692 1 77 3 0x100090 poll dhclient 9527 24953 1 0 3 0x80 poll dhclient 84468 281076 0 0 2 0x14200 zerothread 92362 461363 0 0 3 0x14200 aiodoned aiodoned 23731 332311 0 0 3 0x14200 syncer update 92657 389552 0 0 3 0x14200 cleaner cleaner 70133 163340 0 0 3 0x14200 reaper reaper 33898 325213 0 0 3 0x14200 pgdaemon pagedaemon 19457 289006 0 0 3 0x14200 bored crynlk 7926 230018 0 0 3 0x14200 bored crypto 27627 356512 0 0 3 0x40014200 acpi0 acpi0 54747 323811 0 0 3 0x40014200 idle1 51149 316597 0 0 3 0x14200 bored softnet 43157 9675 0 0 3 0x14200 bored systqmp 75982 299090 0 0 3 0x14200 bored systq 97037 206633 0 0 3 0x40014200 bored softclock 22169 126165 0 0 3 0x40014200 idle0 59766 65334 0 0 3 0x14200 bored smr 1 350521 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 19910 (syz-executor.1) thread 0xffff800020b38c70 (399445) exclusive rrwlock inode r = 0 (0xfffffd806e802e78) #0 witness_lock+0x52e #1 rw_enter+0x46d #2 rrw_enter+0x4f #3 VOP_LOCK+0x4b #4 vn_write+0x169 #5 dofilewritev+0x1ac #6 sys_write+0x83 #7 syscall+0x552 #8 Xsyscall+0x128 Process 47455 (syslogd) thread 0xffff800020b713d0 (335039) exclusive rrwlock inode r = 0 (0xfffffd806ed55098) #0 witness_lock+0x52e #1 rw_enter+0x46d #2 rrw_enter+0x4f #3 VOP_LOCK+0x4b #4 vn_lock+0x6e #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 9456 6321K 6321K 78643K 10543 0 0 pcb 23 9K 9K 78643K 59 0 0 rtable 105 3K 3K 78643K 191 0 0 ifaddr 34 9K 9K 78643K 34 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 15 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1180 74K 74K 78643K 1381 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 6 17K 25K 78643K 179 0 0 proc 40 38K 70K 78643K 337 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 in_multi 33 2K 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 42 185K 185K 78643K 42 0 0 exec 0 0K 1K 78643K 185 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 78 20K 20K 78643K 1353 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 5 0K 0K 78643K 9 0 0 temp 46 2722K 2786K 78643K 3273 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 6 0 0 1 0 1 1 0 8 0 inpcbpl 280 30 0 24 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 45 0 1 2 0 2 2 0 8 0 syncache 264 5 0 5 2 2 0 1 0 8 0 tcpcb 544 8 0 5 1 0 1 1 0 8 0 nd6 48 6 0 0 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 189 0 0 12 0 12 12 0 8 0 art_table 32 190 0 0 2 0 2 2 0 8 0 art_node 16 44 0 4 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1782 0 359 46 0 46 46 0 8 0 ffsino 272 1782 0 359 95 0 95 95 0 8 0 nchpl 144 2156 0 518 61 0 61 61 0 8 0 uvmvnodes 72 1791 0 0 33 0 33 33 0 8 0 vnodes 200 1791 0 0 95 0 95 95 0 8 0 namei 1024 6959 0 6959 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 4927 0 4927 8 1 7 7 0 8 7 plimitpl 152 15 0 8 1 0 1 1 0 8 0 sigapl 432 354 0 340 2 0 2 2 0 8 0 futexpl 56 807 0 807 1 0 1 1 0 8 1 knotepl 112 51 0 34 1 0 1 1 0 8 0 kqueuepl 104 2 0 0 1 0 1 1 0 8 0 pipepl 112 146 0 127 2 1 1 1 0 8 0 fdescpl 488 355 0 340 3 0 3 3 0 8 1 filepl 152 2924 0 2857 3 0 3 3 0 8 0 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 19 0 9 1 0 1 1 0 8 0 pgrppl 48 19 0 9 1 0 1 1 0 8 0 ucredpl 96 1481 0 1474 1 0 1 1 0 8 0 zombiepl 144 341 0 340 2 1 1 1 0 8 0 processpl 896 370 0 340 4 0 4 4 0 8 0 procpl 632 670 0 630 4 0 4 4 0 8 0 sockpl 384 76 0 60 2 0 2 2 0 8 0 mcl4k 4096 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 80 0 0 10 0 10 10 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 167 0 0 9 0 9 9 0 8 0 bufpl 256 5448 0 1154 269 0 269 269 0 8 0 anonpl 16 29003 0 27326 13 1 12 12 0 125 5 amapchunkpl 152 1712 0 1638 5 0 5 5 0 158 1 amappl16 192 691 0 640 3 0 3 3 0 8 0 amappl15 184 1 0 1 1 0 1 1 0 8 1 amappl14 176 59 0 53 1 0 1 1 0 8 0 amappl13 168 7 0 6 1 0 1 1 0 8 0 amappl12 160 84 0 81 2 1 1 1 0 8 0 amappl11 152 58 0 45 1 0 1 1 0 8 0 amappl10 144 72 0 71 2 1 1 1 0 8 0 amappl9 136 411 0 408 1 0 1 1 0 8 0 amappl8 128 119 0 109 1 0 1 1 0 8 0 amappl7 120 30 0 26 1 0 1 1 0 8 0 amappl6 112 61 0 52 1 0 1 1 0 8 0 amappl5 104 196 0 186 1 0 1 1 0 8 0 amappl4 96 590 0 565 1 0 1 1 0 8 0 amappl3 88 174 0 164 1 0 1 1 0 8 0 amappl2 80 2034 0 1961 4 1 3 3 0 8 1 amappl1 72 16482 0 16056 23 5 18 19 0 8 8 amappl 80 899 0 865 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 355 0 340 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 355 0 340 1 0 1 1 0 8 0 vmmpekpl 168 7075 0 7054 2 0 2 2 0 8 0 vmmpepl 168 41613 0 40562 84 9 75 75 0 357 29 vmsppl 368 354 0 340 2 0 2 2 0 8 0 pdppl 4096 718 0 680 6 0 6 6 0 8 1 pvpl 32 124511 0 120402 102 2 100 100 0 265 66 pmappl 232 354 0 340 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 413 0 3 12 0 12 12 0 8 0 ddb{0}>