kern.securelevel: 0 -> 1 creating runtime link editor directory cache. preserving editor files. starting network daemons: sshd. starting local daemons:. Mon Jan 28 17:51:42 PST 2019 OpenBSD/amd64 (ci-openbsd-setuid-1.c.syzkaller.internal) (tty00) Warning: Permanently added '10.128.0.123' (ECDSA) to the list of known hosts. 2019/01/28 17:53:22 parsed 1 programs 2019/01/28 17:53:27 executed programs: 0 2019/01/28 17:53:32 executed programs: 62 2019/01/28 17:53:37 executed programs: 127 2019/01/28 17:53:42 executed programs: 191 2019/01/28 17:53:47 executed programs: 251 2019/01/28 17:53:52 executed programs: 317 2019/01/28 17:53:57 executed programs: 376 2019/01/28 17:54:03 executed programs: 439 login: witness: thread 0xffff800020b92978 exiting with the following locks held: exclusive rrwlock inode r = 0 (0xfffffd806d3db3d8) locked @ /syzkaller/managers/setuid/kernel/sys/ufs/ufs/ufs_vnops.c:1547 panic: thread 0xffff800020b92978 cannot exit while holding sleeplocks Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 19171 46905 0 0x2 0 1 syz-executor0 * 98124 64797 0 0x14000 0x200 0 reaper db_enter() at db_enter+0x18 panic() at panic+0x16c witness_thread_exit(e7e6a34337db22b2) at witness_thread_exit+0x244 reaper(0) at reaper+0x14f 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{0}> ddb{0}> set $lines = 0 ddb{0}> show panic thread 0xffff800020b92978 cannot exit while holding sleeplocks ddb{0}> trace db_enter() at db_enter+0x18 panic() at panic+0x16c witness_thread_exit(e7e6a34337db22b2) at witness_thread_exit+0x244 reaper(0) at reaper+0x14f end trace frame: 0x0, count: -4 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020b67040 rbx 0xffff800020b670e0 rdx 0xffffffff81ec9049 cmd0646_9_tim_udma+0x1780c rcx 0x201 rax 0x1 r8 0xffffffff816aa1c4 kprintf+0x174 r9 0x1 r10 0x14367e1bed5329ce r11 0x96b8f844a077be1b r12 0x3000000008 r13 0xffff800020b67050 r14 0x100 r15 0x1 rip 0xffffffff8156b348 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b67030 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (reaper) pid=98124 stat=onproc flags process=14000 proc=200 pri=4, usrpri=52, nice=20 forw=0xffffffffffffffff, list=0xffff800020b212c0,0xffff800020b21780 process=0xffff800020b5a350 user=0xffff800020b62000, vmspace=0xffffffff822fcba8 estcpu=2, cpticks=2, pctcpu=0.22 user=0, sys=2, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 37160 47820 46905 0 2 0 syz-executor0 37160 295117 46905 0 3 0x4000000 inode syz-executor0 37160 342506 46905 0 3 0x4000080 fsleep syz-executor0 3209 383330 66618 0 2 0x3000 syz-executor1 66618 317084 97787 0 2 0x2 syz-executor1 46905 19171 97787 0 7 0x2 syz-executor0 97787 31969 85573 0 3 0x82 thrsleep syz-execprog 97787 394403 85573 0 3 0x4000082 thrsleep syz-execprog 97787 50934 85573 0 3 0x4000082 thrsleep syz-execprog 97787 477029 85573 0 3 0x4000082 thrsleep syz-execprog 97787 499787 85573 0 3 0x4000082 thrsleep syz-execprog 97787 369500 85573 0 3 0x4000082 kqread syz-execprog 97787 305805 85573 0 3 0x4000082 thrsleep syz-execprog 97787 375204 85573 0 3 0x4000082 thrsleep syz-execprog 97787 214397 85573 0 3 0x4000082 thrsleep syz-execprog 85573 63980 47819 0 3 0x10008a pause ksh 47819 137683 99098 0 3 0x92 select sshd 86601 143265 1 0 3 0x100083 ttyin getty 99098 473728 1 0 3 0x80 select sshd 44245 155091 96790 73 3 0x100010 ffs_fsync syslogd 96790 406538 1 0 3 0x100082 netio syslogd 13999 220039 1 77 3 0x100090 poll dhclient 41471 65134 1 0 3 0x80 poll dhclient 57330 385028 0 0 3 0x14200 pgzero zerothread 88394 161226 0 0 3 0x14200 aiodoned aiodoned 25503 284007 0 0 3 0x14200 syncer update 10729 440332 0 0 3 0x14200 cleaner cleaner *64797 98124 0 0 7 0x14200 reaper 8086 128649 0 0 3 0x14200 pgdaemon pagedaemon 32094 158058 0 0 3 0x14200 bored crynlk 59152 246827 0 0 3 0x14200 bored crypto 30767 152448 0 0 3 0x40014200 acpi0 acpi0 16111 18840 0 0 3 0x40014200 idle1 76950 113199 0 0 3 0x14200 bored softnet 48956 450738 0 0 3 0x14200 bored systqmp 36709 311984 0 0 3 0x14200 bored systq 69841 221418 0 0 3 0x40014200 bored softclock 89737 154906 0 0 3 0x40014200 idle0 1 194595 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks CPU 1: exclusive sched_lock &sched_lock r = 0 (0xffffffff823055e8) locked @ /syzkaller/managers/setuid/kernel/sys/kern/sched_bsd.c:330 Process 44245 (syslogd) thread 0xffff800020be59d8 (155091) exclusive rrwlock inode r = 0 (0xfffffd806ebc0808) locked @ /syzkaller/managers/setuid/kernel/sys/ufs/ufs/ufs_vnops.c:1547 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9456 6320K 6320K 78643K 10543 0 0 pcb 23 9K 9K 78643K 55 0 0 rtable 97 3K 3K 78643K 167 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 1166 73K 73K 78643K 2204 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 1792 194K 288K 78643K 12592 0 0 file desc 6 17K 25K 78643K 508 0 0 proc 40 38K 70K 78643K 241 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 165 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 74 19K 20K 78643K 2598 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 2350K 2414K 78643K 3665 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 0 1 0 1 1 0 8 0 inpcbpl 280 26 0 20 1 0 1 1 0 8 0 plimitpl 152 15 0 8 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 41 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 4 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 185 0 0 12 0 12 12 0 8 0 art_table 32 186 0 0 2 0 2 2 0 8 0 art_node 16 40 0 6 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2925 0 1539 45 0 45 45 0 8 0 ffsino 272 2925 0 1539 93 0 93 93 0 8 0 nchpl 144 3629 0 2045 59 0 59 59 0 8 0 uvmvnodes 72 2934 0 0 54 0 54 54 0 8 0 vnodes 200 2934 0 0 155 0 155 155 0 8 0 namei 1024 13168 0 13168 3 2 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 7325 0 7324 11 10 1 6 0 8 0 sigapl 432 679 0 665 2 0 2 2 0 8 0 futexpl 56 6006 0 6005 1 0 1 1 0 8 0 knotepl 112 63 0 38 2 0 2 2 0 8 0 kqueuepl 104 2 0 0 1 0 1 1 0 8 0 pipepl 112 138 0 119 3 2 1 1 0 8 0 fdescpl 488 680 0 665 3 1 2 3 0 8 0 filepl 152 7154 0 7084 3 0 3 3 0 8 0 lockfpl 96 6 0 6 1 1 0 1 0 8 0 lockfspl 24 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 5780 0 5773 1 0 1 1 0 8 0 zombiepl 144 666 0 665 3 2 1 1 0 8 0 processpl 840 694 0 665 4 0 4 4 0 8 0 procpl 600 2015 0 1975 4 0 4 4 0 8 0 sockpl 384 68 0 52 2 0 2 2 0 8 0 mcl4k 4096 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 61 0 0 8 0 8 8 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 123 0 0 8 0 8 8 0 8 0 bufpl 256 5285 0 965 270 0 270 270 0 8 0 anonpl 16 48477 0 46471 16 7 9 12 0 125 0 amapchunkpl 152 3909 0 3816 5 1 4 5 0 158 0 amappl16 192 2256 0 2183 4 0 4 4 0 8 0 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 247 0 245 2 1 1 1 0 8 0 amappl13 168 268 0 262 1 0 1 1 0 8 0 amappl12 160 21 0 20 2 1 1 1 0 8 0 amappl11 152 187 0 178 1 0 1 1 0 8 0 amappl10 144 62 0 61 3 2 1 1 0 8 0 amappl9 136 204 0 203 1 0 1 1 0 8 0 amappl8 128 137 0 124 1 0 1 1 0 8 0 amappl7 120 281 0 274 1 0 1 1 0 8 0 amappl6 112 58 0 48 1 0 1 1 0 8 0 amappl5 104 119 0 108 1 0 1 1 0 8 0 amappl4 96 298 0 277 2 1 1 2 0 8 0 amappl3 88 131 0 125 1 0 1 1 0 8 0 amappl2 80 5518 0 5457 2 0 2 2 0 8 0 amappl1 72 22905 0 22460 24 14 10 19 0 8 0 amappl 72 2239 0 2202 1 0 1 1 0 75 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 680 0 665 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 680 0 665 1 0 1 1 0 8 0 vmmpekpl 168 9717 0 9695 2 0 2 2 0 8 0 vmmpepl 168 67153 0 66123 91 45 46 71 0 357 1 vmsppl 360 679 0 665 2 0 2 2 0 8 0 pdppl 4096 1367 0 1330 6 1 5 6 0 8 0 pvpl 32 173410 0 168982 101 46 55 92 0 265 19 pmappl 224 679 0 665 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 408 0 5 12 0 12 12 0 8 0