kern.securelevel: 0 -> 1 creating runtime link editor directory cache. preserving editor files. starting network daemons: sshd. starting local daemons:. Thu Mar 4 09:30:29 PST 2021 OpenBSD/amd64 (ci-openbsd-multicore-6.c.syzkaller.internal) (tty00) Warning: Permanently added '10.128.0.39' (ED25519) to the list of known hosts. executing program login: witness: lock order reversal: 1st 0xfffffd807a63b250 fdlock (&newfdp->fd_fd.fd_lock) 2nd 0xfffffd806d8dd928 inode (&ip->i_lock) lock order data w2 -> w1 missing lock order data w1 -> w2 missing Stopped at db_enter+0x18: addq $0x8,%rsp ddb{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic the kernel did not panic ddb{1}> trace db_enter() at db_enter+0x18 witness_checkorder(fffffd806d8dd928,9,0) at witness_checkorder+0x108b rw_enter(fffffd806d8dd918,1) at rw_enter+0xd4 rrw_enter(fffffd806d8dd918,1) at rrw_enter+0x88 VOP_LOCK(fffffd806d8cbe70,2001) at VOP_LOCK+0x4b vn_lock(fffffd806d8cbe70,2001) at vn_lock+0x6c vget(fffffd806d8cbe70,2001) at vget+0x1c6 ktrwriteraw(ffff8000ffff7270,fffffd806d8cbe70,fffffd807f7b79c0,ffff800021260d90,ffff800021260d70) at ktrwriteraw+0x138 ktrstruct(ffff8000ffff7270,ffffffff823aff87,ffff800021260e78,8) at ktrstruct+0x169 sys_socketpair(ffff8000ffff7270,ffff800021260ee8,ffff800021260f30) at sys_socketpair+0x3ed syscall(ffff800021260fb0) at syscall+0x4a1 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9087fa13370, count: -12 ddb{1}> show registers rdi 0x3 rsi 0xffffffff826ef760 __sancov_gen_cov_switch_values.134 rbp 0xffff8000212609b0 rbx 0x3 rdx 0x8b rcx 0x3 rax 0x1 r8 0xffffffff81554461 witness_checkorder+0x1061 r9 0x5 r10 0x27f926f4996b4b34 r11 0xd2fa67fda4cad083 r12 0 r13 0xfffffd806d8dd928 r14 0 r15 0xfffffd8002ce9600 rip 0xffffffff8234ff48 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000212609a0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor0357) pid=346416 stat=onproc flags process=2 proc=4000001 pri=17, usrpri=53, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff7cf0,0xffffffff82924bc0 process=0xffff800021236e78 user=0xffff80002125c000, vmspace=0xfffffd806e9655c8 estcpu=3, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 94985 165966 82165 0 7 0x2 syz-executor0357 94985 128825 82165 0 3 0x4000082 fifow syz-executor0357 *94985 346416 82165 0 7 0x4000003 syz-executor0357 82165 289068 66528 0 3 0x10008a sigsusp ksh 66528 216845 87899 0 3 0x92 select sshd 51989 80581 1 0 3 0x100083 ttyin getty 87899 320016 1 0 3 0x80 select sshd 97970 386825 29909 74 3 0x100092 bpf pflogd 29909 507868 1 0 3 0x80 netio pflogd 81880 85702 22726 73 3 0x100090 kqread syslogd 22726 470673 1 0 3 0x100082 netio syslogd 72116 38594 1 77 3 0x100090 poll dhclient 79319 194442 1 0 3 0x80 poll dhclient 33838 3418 0 0 3 0x14200 bored smr 10158 464669 0 0 3 0x14200 pgzero zerothread 16434 334691 0 0 3 0x14200 aiodoned aiodoned 45464 56240 0 0 3 0x14200 syncer update 69597 97874 0 0 3 0x14200 cleaner cleaner 49084 103315 0 0 3 0x14200 reaper reaper 33294 519497 0 0 3 0x14200 pgdaemon pagedaemon 89106 464320 0 0 3 0x14200 bored crynlk 90925 417475 0 0 3 0x14200 bored crypto 84707 232484 0 0 3 0x14200 bored viomb 54896 409868 0 0 3 0x40014200 acpi0 acpi0 68398 332641 0 0 3 0x40014200 idle1 39057 151374 0 0 3 0x14200 bored softnet 12061 521313 0 0 3 0x14200 bored systqmp 66602 270574 0 0 3 0x14200 bored systq 55580 228644 0 0 3 0x40014200 bored softclock 48274 57542 0 0 3 0x40014200 idle0 1 411781 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 94985 (syz-executor0357) thread 0xffff8000ffff7270 (346416) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8278ab98) #0 witness_lock+0x4b0 #1 ktrstruct+0xee #2 sys_socketpair+0x3ed #3 syscall+0x4a1 #4 Xsyscall+0x128 exclusive rwlock fdlock r = 0 (0xfffffd807a63b250) #0 witness_lock+0x4b0 #1 sys_socketpair+0x219 #2 syscall+0x4a1 #3 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9475 6411K 6412K 78643K 10565 0 pcb 13 8K 8K 78643K 13 0 rtable 61 2K 2K 78643K 121 0 ifaddr 29 8K 8K 78643K 30 0 counters 40 33K 33K 78643K 40 0 ioctlops 0 0K 4K 78643K 1467 0 mount 1 1K 1K 78643K 1 0 vnodes 1184 74K 75K 78643K 1189 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 1K 78643K 2 0 VM map 2 1K 1K 78643K 2 0 sem 2 0K 0K 78643K 2 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12598 0 file desc 1 0K 0K 78643K 1 0 proc 59 63K 71K 78643K 357 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 11 0K 0K 78643K 11 0 ether_multi 1 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 19 95K 95K 78643K 19 0 exec 0 0K 2K 78643K 300 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 7 26K 26K 78643K 7 0 UVM amap 39 2K 2K 78643K 591 0 UVM aobj 3 2K 2K 78643K 3 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 4 0K 0K 78643K 4 0 temp 23 3965K 4029K 78643K 1682 0 kqueue 2 2K 2K 78643K 2 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> 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 120 15 0 13 1 0 1 1 0 8 0 rtentry 112 23 0 1 1 0 1 1 0 8 0 unpcb 120 33 0 19 1 0 1 1 0 8 0 syncache 296 5 0 5 2 1 1 1 0 8 1 tcpcb 736 8 0 5 1 0 1 1 0 8 0 inpcb 304 28 0 23 1 0 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 9 0 2 1 0 1 1 0 8 0 pfstkey 112 9 0 2 1 0 1 1 0 8 0 pfstate 320 9 0 2 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 96 0 0 6 0 6 6 0 8 0 art_table 32 97 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 dino2pl 256 1402 0 17 87 0 87 87 0 8 0 ffsino 272 1402 0 17 93 0 93 93 0 8 0 nchpl 144 1577 0 33 58 0 58 58 0 8 0 uvmvnodes 72 1412 0 0 26 0 26 26 0 8 0 vnodes 224 1412 0 0 84 0 84 84 0 8 0 namei 1024 3780 0 3780 2 1 1 1 0 8 1 percpumem 16 31 0 0 1 0 1 1 0 8 0 scxspl 216 3661 0 3661 10 7 3 8 0 8 3 plimitpl 152 14 0 8 1 0 1 1 0 8 0 sigapl 424 220 0 191 4 0 4 4 0 8 0 knotepl 112 5 0 0 1 0 1 1 0 8 0 kqueuepl 168 1 0 0 1 0 1 1 0 8 0 pipepl 336 64 0 60 2 1 1 1 0 8 0 fdescpl 496 204 0 191 3 0 3 3 0 8 0 filepl 152 960 0 909 2 0 2 2 0 8 0 lockfpl 104 5 0 4 1 0 1 1 0 8 0 lockfspl 48 3 0 2 1 0 1 1 0 8 0 sessionpl 144 18 0 9 1 0 1 1 0 8 0 pgrppl 48 18 0 9 1 0 1 1 0 8 0 ucredpl 96 62 0 53 1 0 1 1 0 8 0 zombiepl 144 191 0 191 2 1 1 1 0 8 1 processpl 1080 220 0 191 3 0 3 3 0 8 0 procpl 672 222 0 191 3 0 3 3 0 8 0 sockpl 432 76 0 55 4 1 3 3 0 8 0 mcl4k 4096 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 83 0 0 10 0 10 10 0 8 0 mtagpl 96 1 0 0 1 0 1 1 0 8 0 mbufpl 256 97 0 0 6 0 6 6 0 8 0 bufpl 280 2012 0 106 137 0 137 137 0 8 0 anonpl 24 19812 0 18530 11 2 9 10 0 186 1 amapchunkpl 152 501 0 460 2 0 2 2 0 158 0 amappl16 200 80 0 75 1 0 1 1 0 8 0 amappl15 192 1 0 0 1 0 1 1 0 8 0 amappl13 176 14 0 13 2 1 1 1 0 8 0 amappl12 168 26 0 23 1 0 1 1 0 8 0 amappl11 160 44 0 31 1 0 1 1 0 8 0 amappl10 152 5 0 1 1 0 1 1 0 8 0 amappl9 144 235 0 235 2 1 1 1 0 8 1 amappl8 136 222 0 221 2 1 1 1 0 8 0 amappl7 128 46 0 43 1 0 1 1 0 8 0 amappl6 120 74 0 65 1 0 1 1 0 8 0 amappl5 112 153 0 142 1 0 1 1 0 8 0 amappl4 104 484 0 457 1 0 1 1 0 8 0 amappl3 96 102 0 93 1 0 1 1 0 8 0 amappl2 88 873 0 813 2 0 2 2 0 8 0 amappl1 80 14198 0 13758 17 5 12 17 0 8 0 amappl 88 399 0 377 1 0 1 1 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 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 18 0 17 1 0 1 1 0 8 0 aobjpl 64 2 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 5444 0 5428 1 0 1 1 0 8 0 vmmpepl 168 29839 0 28953 51 12 39 48 0 357 0 vmsppl 368 203 0 191 2 0 2 2 0 8 0 rwobjpl 56 7714 0 7135 14 5 9 13 0 8 0 pdppl 4096 415 0 382 51 18 33 39 0 8 0 pvpl 32 79898 0 76800 35 6 29 29 0 265 3 pmappl 232 203 0 191 1 0 1 1 0 8 0 extentpl 40 58 0 40 1 0 1 1 0 8 0 phpool 112 270 0 23 8 0 8 8 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff826d9ff0) at x86_ipi_db+0x1a x86_ipi_handler() at x86_ipi_handler+0xb7 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff8278a990) at __mp_lock+0x129 softintr_dispatch(0) at softintr_dispatch+0x4e Xsoftclock() at Xsoftclock+0x1f end of kernel end trace frame: 0x7f7ffffe7200, count: -6 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x18: addq $0x8,%rsp ddb{1}> trace db_enter() at db_enter+0x18 witness_checkorder(fffffd806d8dd928,9,0) at witness_checkorder+0x108b rw_enter(fffffd806d8dd918,1) at rw_enter+0xd4 rrw_enter(fffffd806d8dd918,1) at rrw_enter+0x88 VOP_LOCK(fffffd806d8cbe70,2001) at VOP_LOCK+0x4b vn_lock(fffffd806d8cbe70,2001) at vn_lock+0x6c vget(fffffd806d8cbe70,2001) at vget+0x1c6 ktrwriteraw(ffff8000ffff7270,fffffd806d8cbe70,fffffd807f7b79c0,ffff800021260d90,ffff800021260d70) at ktrwriteraw+0x138 ktrstruct(ffff8000ffff7270,ffffffff823aff87,ffff800021260e78,8) at ktrstruct+0x169 sys_socketpair(ffff8000ffff7270,ffff800021260ee8,ffff800021260f30) at sys_socketpair+0x3ed syscall(ffff800021260fb0) at syscall+0x4a1 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9087fa13370, count: -12 ddb{1}>