kern.securelevel: 0 -> 1 creating runtime link editor directory cache. preserving editor files. starting network daemons: sshd. starting local daemons:. Thu Oct 31 06:42:04 PDT 2019 OpenBSD/amd64 (ci-openbsd-multicore-0.c.syzkaller.internal) (tty00) Warning: Permanently added '10.128.1.8' (ECDSA) to the list of known hosts. executing program login: witness: lock order reversal: 1st 0xfffffd806e7b5470 vmmaplk (&map->lock) 2nd 0xfffffd806d8913d8 inode (&ip->i_lock) lock order "&ip->i_lock"(rrwlock) -> "&map->lock"(rwlock) first seen at: #0 witness_checkorder+0x69c #1 rw_enter_read+0x66 #2 uvmfault_lookup+0xd9 #3 uvm_fault+0x7f #4 pageflttrap+0x20b #5 kerntrap+0xec #6 alltraps_kern_meltdown+0x7b #7 copyout+0x53 #8 ffs_read+0x362 #9 VOP_READ+0xbf #10 vn_read+0x124 #11 dofilereadv+0x1a2 #12 sys_read+0x83 #13 syscall+0x4a4 #14 Xsyscall+0x128 lock order "&map->lock"(rwlock) -> "&ip->i_lock"(rrwlock) first seen at: #0 witness_checkorder+0x69c #1 rw_enter+0xd4 #2 rrw_enter+0x4f #3 VOP_LOCK+0xf0 #4 vn_lock+0x81 #5 uvn_io+0x2c8 #6 uvn_get+0x226 #7 uvm_fault+0x11cc #8 uvm_fault_wire+0x70 #9 uvm_map_pageable_wire+0x2dd #10 sys_mlock+0x185 #11 syscall+0x4a4 #12 Xsyscall+0x128 Stopped at db_enter+0x18: addq $0x8,%rsp ddb{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic the kernel did not panic ddb{0}> trace db_enter() at db_enter+0x18 witness_checkorder(fffffd806d8913d8,9,0) at witness_checkorder+0x1009 rw_enter(fffffd806d8913c8,81) at rw_enter+0xd4 rrw_enter(fffffd806d8913c8,81) at rrw_enter+0x4f VOP_LOCK(fffffd806d892d20,81) at VOP_LOCK+0xf0 vn_lock(fffffd806d892d20,81) at vn_lock+0x81 uvn_io(fffffd806dc40560,ffff800020b030f8,1,2,0) at uvn_io+0x2c8 uvn_get(fffffd806dc40560,0,ffff800020b03350,ffff800020b032e4,0,0) at uvn_get+0x226 uvm_fault(fffffd806e7b5458,20000000,2,2) at uvm_fault+0x11cc uvm_fault_wire(fffffd806e7b5458,20000000,20004000,2) at uvm_fault_wire+0x70 uvm_map_pageable_wire(fffffd806e7b5458,fffffd806fa718c0,fffffd806fa71b60,0,0,0) at uvm_map_pageable_wire+0x2dd sys_mlock(ffff800020ac1648,ffff800020b03548,ffff800020b03590) at sys_mlock+0x185 syscall(ffff800020b03610) at syscall+0x4a4 Xsyscall(6,0,1c187a04000,0,7f7fffff7cb8,7f7fffff7ca8) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff7c40, count: -14 ddb{0}> show registers rdi 0x3 rsi 0xffffffff824b59a0 __sancov_gen_cov_switch_values.122 rbp 0xffff800020b02d70 rbx 0x3 rdx 0x8b rcx 0x3 rax 0x3 r8 0xffffffff81733b52 witness_checkorder+0xfe2 r9 0x5 r10 0xb6e11d6a2bb18e28 r11 0x139ace3f21b7d678 r12 0xfffffd80029c21c0 r13 0 r14 0xffffffff8260d340 w_lodata+0x4f730 r15 0xffffffff82611c20 w_lodata+0x54010 rip 0xffffffff818c8e88 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b02d60 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor9400) pid=52459 stat=onproc flags process=2 proc=0 pri=52, usrpri=52, nice=20 forw=0xffffffffffffffff, list=0xffff800020ac09f0,0xffffffff8265a258 process=0xffff800020a8ae10 user=0xffff800020afe000, vmspace=0xfffffd806e7b5458 estcpu=2, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND *22091 52459 45985 0 7 0x2 syz-executor9400 45985 4193 23230 0 3 0x10008a pause ksh 23230 61868 3131 0 3 0x92 select sshd 17561 88260 1 0 3 0x100083 ttyin getty 3131 94454 1 0 3 0x80 select sshd 55475 282403 26875 74 3 0x100092 bpf pflogd 26875 308418 1 0 3 0x80 netio pflogd 42531 17691 63543 73 3 0x100090 kqread syslogd 63543 317138 1 0 3 0x100082 netio syslogd 54537 225727 1 77 3 0x100090 poll dhclient 51514 381856 1 0 3 0x80 poll dhclient 10706 81603 0 0 3 0x14200 pgzero zerothread 12330 280748 0 0 3 0x14200 aiodoned aiodoned 6971 248512 0 0 3 0x14200 syncer update 63012 65994 0 0 3 0x14200 cleaner cleaner 64303 338168 0 0 3 0x14200 reaper reaper 40800 36719 0 0 3 0x14200 pgdaemon pagedaemon 32172 442377 0 0 3 0x14200 bored crynlk 72162 501819 0 0 3 0x14200 bored crypto 92219 455141 0 0 3 0x40014200 acpi0 acpi0 31440 250109 0 0 7 0x40014200 idle1 27098 243435 0 0 3 0x14200 bored softnet 46642 440428 0 0 3 0x14200 bored systqmp 33477 316609 0 0 3 0x14200 bored systq 64637 287537 0 0 3 0x40014200 bored softclock 41713 369023 0 0 3 0x40014200 idle0 45996 386252 0 0 3 0x14200 bored smr 1 20858 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 22091 (syz-executor9400) thread 0xffff800020ac1648 (52459) shared rwlock vmmaplk r = 0 (0xfffffd806e7b5470) #0 witness_lock+0x52e #1 rw_enter+0x447 #2 vm_map_lock_ln+0x10d #3 uvm_map_pageable+0x11d #4 sys_mlock+0x185 #5 syscall+0x4a4 #6 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8265b1d8) #0 witness_lock+0x52e #1 syscall+0x400 #2 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9452 6383K 6384K 78643K 10539 0 0 pcb 13 8K 8K 78643K 13 0 0 rtable 61 2K 2K 78643K 125 0 0 ifaddr 25 7K 7K 78643K 26 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1467 0 0 iov 0 0K 12K 78643K 1 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1181 74K 74K 78643K 1186 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 1 0K 0K 78643K 1 0 0 proc 59 63K 71K 78643K 358 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 in_multi 11 0K 0K 78643K 11 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 18 79K 79K 78643K 18 0 0 exec 0 0K 1K 78643K 177 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 58 3K 3K 78643K 793 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 4 0 0 temp 39 3540K 3604K 78643K 1966 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 2 0 0 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 23 0 1 1 0 1 1 0 8 0 unpcb 120 29 0 19 1 0 1 1 0 8 0 syncache 264 5 0 5 1 0 1 1 0 8 1 tcpcb 544 8 0 5 1 0 1 1 0 8 0 inpcb 280 29 0 23 1 0 1 1 0 8 0 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 8 0 0 1 0 1 1 0 8 0 pfstkey 112 8 0 0 1 0 1 1 0 8 0 pfstate 328 8 0 0 1 0 1 1 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 97 0 0 7 0 7 7 0 8 0 art_table 32 98 0 0 1 0 1 1 0 8 0 art_node 16 22 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1399 0 16 45 0 45 45 0 8 0 ffsino 272 1399 0 16 93 0 93 93 0 8 0 nchpl 144 1586 0 47 58 0 58 58 0 8 1 uvmvnodes 72 1409 0 0 26 0 26 26 0 8 0 vnodes 208 1409 0 0 75 0 75 75 0 8 0 namei 1024 3747 0 3747 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 2482 0 2482 2 0 2 2 0 8 2 plimitpl 152 14 0 8 1 0 1 1 0 8 0 sigapl 432 203 0 191 2 0 2 2 0 8 0 knotepl 112 5 0 0 1 0 1 1 0 8 0 kqueuepl 104 1 0 0 1 0 1 1 0 8 0 pipepl 112 128 0 121 1 0 1 1 0 8 0 fdescpl 488 204 0 191 3 0 3 3 0 8 0 filepl 152 973 0 924 2 0 2 2 0 8 0 lockfpl 104 6 0 4 1 0 1 1 0 8 0 lockfspl 48 4 0 2 1 0 1 1 0 8 0 sessionpl 112 18 0 9 1 0 1 1 0 8 0 pgrppl 48 18 0 9 1 0 1 1 0 8 0 ucredpl 96 52 0 43 1 0 1 1 0 8 0 zombiepl 144 191 0 191 1 0 1 1 0 8 1 processpl 896 219 0 191 4 0 4 4 0 8 0 procpl 632 219 0 191 3 0 3 3 0 8 0 sockpl 384 73 0 55 2 0 2 2 0 8 0 mcl4k 4096 2 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 99 0 0 7 0 7 7 0 8 0 bufpl 256 2147 0 256 119 0 119 119 0 8 0 anonpl 16 18653 0 17430 7 1 6 7 0 124 0 amapchunkpl 152 521 0 484 2 0 2 2 0 158 0 amappl16 192 83 0 78 1 0 1 1 0 8 0 amappl14 176 37 0 33 1 0 1 1 0 8 0 amappl12 160 4 0 4 1 0 1 1 0 8 1 amappl11 152 46 0 31 1 0 1 1 0 8 0 amappl10 144 2 0 0 1 0 1 1 0 8 0 amappl9 136 419 0 418 1 0 1 1 0 8 0 amappl8 128 99 0 95 1 0 1 1 0 8 0 amappl7 120 18 0 17 1 0 1 1 0 8 0 amappl6 112 44 0 40 1 0 1 1 0 8 0 amappl5 104 127 0 112 1 0 1 1 0 8 0 amappl4 96 462 0 434 1 0 1 1 0 8 0 amappl3 88 102 0 96 1 0 1 1 0 8 0 amappl2 80 791 0 738 2 0 2 2 0 8 0 amappl1 72 13689 0 13280 15 4 11 15 0 8 1 amappl 80 407 0 386 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 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 6 0 6 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 204 0 191 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 204 0 191 1 0 1 1 0 8 0 vmmpekpl 168 5523 0 5502 2 1 1 2 0 8 0 vmmpepl 168 28905 0 28092 47 2 45 47 0 357 7 vmsppl 368 203 0 191 2 0 2 2 0 8 0 pdppl 4096 415 0 382 5 0 5 5 0 8 0 pvpl 32 79095 0 76094 28 0 28 28 0 265 3 pmappl 232 203 0 191 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 254 0 3 8 0 8 8 0 8 0