kern.securelevel: 0 -> 1 creating runtime link editor directory cache. preserving editor files. starting network daemons: sshd. starting local daemons:. Sat Mar 12 08:01:47 PST 2022 OpenBSD/amd64 (ci-openbsd-setuid-9.c.syzkaller.internal) (tty00) Warning: Permanently added '10.128.1.122' (ED25519) to the list of known hosts. 2022/03/12 08:05:01 parsed 1 programs 2022/03/12 08:05:06 executed programs: 0 login: witness: lock order reversal: 1st 0xfffffd806ccab030 vmmaplk (&map->lock) 2nd 0xfffffd8077e68628 fdlock (&newfdp->fd_fd.fd_lock) lock order "&newfdp->fd_fd.fd_lock"(rwlock) -> "&map->lock"(rwlock) first seen at: #0 rw_enter_read+0x66 #1 uvmfault_lookup+0xd9 #2 uvm_fault_check+0x3a #3 uvm_fault+0x102 #4 kpageflttrap+0x209 #5 kerntrap+0xef #6 alltraps_kern_meltdown+0x7b #7 copyout+0x53 #8 syscall+0x489 #9 Xsyscall+0x128 lock order "&map->lock"(rwlock) -> "&newfdp->fd_fd.fd_lock"(rwlock) first seen at: #0 rw_enter_write+0x5b #1 fill_file+0xad2 #2 sysctl_file+0x62d #3 kern_sysctl+0xfd #4 sys_sysctl+0x209 #5 syscall+0x489 #6 Xsyscall+0x128 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(fffffd8077e68628,9,0) at witness_checkorder+0x10b7 rw_enter_write(fffffd8077e68618) at rw_enter_write+0x5b fill_file(ffff800000bda400,fffffd8078f004d8,fffffd8077e685d0,0,0,ffff8000212c6160,72bf897ea801f4d5,4a00,0) at fill_file+0xad2 sysctl_file(ffff80002137ae38,4,20000080,ffff80002137ae68,ffff800021208a90) at sysctl_file+0x62d kern_sysctl(ffff80002137ae34,5,20000080,ffff80002137ae68,0,0,54240bcc3adcd329) at kern_sysctl+0xfd sys_sysctl(ffff800021208a90,ffff80002137aed8,ffff80002137af30) at sys_sysctl+0x209 syscall(ffff80002137afa0) at syscall+0x489 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xdbad94c58c0, count: -9 ddb{1}> show registers rdi 0x3 rsi 0xffffffff8294abb0 __sancov_gen_cov_switch_values.134 rbp 0xffff80002137a7a0 rbx 0x3 rdx 0x3fd rcx 0 rax 0x1 r8 0xffff80002137a710 r9 0x8080808080808080 r10 0x1d4c5aac63c46563 r11 0x2787a3f8cd95e21 r12 0xffffffff82aad620 w_lodata+0x4fcb0 r13 0 r14 0xffffffff82aac0d0 w_lodata+0x4e760 r15 0xfffffd8002f62c80 rip 0xffffffff8138d658 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002137a790 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=492416 stat=onproc flags process=10 proc=4000000 pri=32, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800021208fd0,0xffffffff82b3d400 process=0xffff8000212c50c0 user=0xffff800021376000, vmspace=0xfffffd806ccab018 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 15164 169852 8183 0 7 0x100002 arp 55949 142530 53058 0 2 0x100002 sh 5757 120567 59220 32767 2 0x10 syz-executor.6 8183 18161 21598 0 3 0x10008a sigsusp sh 81418 356979 94791 32767 2 0x10 syz-executor.1 *81418 492416 94791 32767 7 0x4000010 syz-executor.1 65638 200677 23176 0 2 0x2 ndp 23176 249415 53572 0 3 0x10008a sigsusp sh 58243 313424 52995 0 2 0x100002 sh 17316 337822 12393 0 2 0x100002 sh 32957 331004 4515 0 2 0x2 sh 4515 358062 86502 0 3 0x80 wait syz-executor.5 53058 274233 67857 0 3 0x80 wait syz-executor.4 52995 230739 70362 0 3 0x80 wait syz-executor.3 21598 230486 9988 0 3 0x80 wait syz-executor.2 86502 152546 27611 0 3 0x82 wait syz-executor.5 67857 130731 27611 0 3 0x82 wait syz-executor.4 70362 89647 27611 0 3 0x82 wait syz-executor.3 9988 15148 27611 0 3 0x82 wait syz-executor.2 12393 417097 7677 0 3 0x80 wait syz-executor.7 94791 330475 29595 32767 3 0x90 nanoslp syz-executor.1 59220 428786 11363 32767 2 0x10 syz-executor.6 7677 145612 27611 0 3 0x82 wait syz-executor.7 11363 314227 27611 0 3 0x82 wait syz-executor.6 29595 493743 27611 0 3 0x82 wait syz-executor.1 53572 254859 36554 0 3 0x80 wait syz-executor.0 36554 495904 27611 0 3 0x82 wait syz-executor.0 27611 416159 9052 0 3 0x82 thrsleep syz-execprog 27611 214202 9052 0 3 0x4000082 nanoslp syz-execprog 27611 443057 9052 0 3 0x4000082 thrsleep syz-execprog 27611 208664 9052 0 3 0x4000082 kqread syz-execprog 27611 452495 9052 0 2 0x4000002 syz-execprog 27611 391868 9052 0 3 0x4000082 thrsleep syz-execprog 27611 513539 9052 0 3 0x4000082 thrsleep syz-execprog 27611 144231 9052 0 3 0x4000082 thrsleep syz-execprog 27611 311926 9052 0 3 0x4000082 thrsleep syz-execprog 9052 422629 63959 0 3 0x10008a sigsusp ksh 63959 273936 80880 0 3 0x9a kqread sshd 5420 102017 1 0 3 0x100083 ttyin getty 80880 97094 1 0 3 0x88 kqread sshd 25349 349057 22989 73 3 0x1100090 kqread syslogd 22989 435372 1 0 3 0x100082 netio syslogd 90577 383675 1 0 3 0x100080 kqread resolvd 31682 489960 90636 77 3 0x100092 kqread dhcpleased 14731 369316 90636 77 3 0x100092 kqread dhcpleased 90636 226259 1 0 3 0x80 kqread dhcpleased 29260 488479 0 0 3 0x14200 bored smr 79677 399685 0 0 2 0x14200 zerothread 43595 74964 0 0 3 0x14200 aiodoned aiodoned 18010 460988 0 0 3 0x14200 syncer update 89136 232569 0 0 3 0x14200 cleaner cleaner 35522 71269 0 0 3 0x14200 reaper reaper 89189 131633 0 0 3 0x14200 pgdaemon pagedaemon 49397 123811 0 0 3 0x14200 bored viomb 70254 213333 0 0 3 0x40014200 acpi0 acpi0 33389 171305 0 0 3 0x40014200 idle1 71521 480023 0 0 3 0x14200 bored softnet 68904 373925 0 0 3 0x14200 bored systqmp 42175 461405 0 0 3 0x14200 bored systq 75374 395281 0 0 3 0x40014200 bored softclock 6938 260040 0 0 3 0x40014200 idle0 1 146460 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 15164 (arp) thread 0xffff800021208fd0 (169852) exclusive rwlock solock r = 0 (0xfffffd806e8e2d48) #0 witness_lock+0x44d #1 solock+0x86 #2 route_input+0xf1 #3 route_output+0x8d8 #4 route_usrreq+0x398 #5 sosend+0x632 #6 dofilewritev+0x19c #7 sys_write+0x83 #8 syscall+0x489 #9 Xsyscall+0x128 Process 81418 (syz-executor.1) thread 0xffff800021208a90 (492416) shared rwlock vmmaplk r = 0 (0xfffffd806ccab030) #0 witness_lock+0x44d #1 uvm_vslock+0xc8 #2 sys_sysctl+0x2d8 #3 syscall+0x489 #4 Xsyscall+0x128 exclusive rwlock sysctllk r = 0 (0xffffffff82941f10) #0 witness_lock+0x44d #1 rw_enter+0x3e1 #2 sys_sysctl+0x1b3 #3 syscall+0x489 #4 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff829de988) #0 witness_lock+0x44d #1 syscall+0x3ef #2 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10164 6404K 6419K 78643K 11254 0 pcb 13 8K 8K 78643K 13 0 rtable 166 4K 5K 78643K 242 0 ifaddr 68 14K 14K 78643K 69 0 counters 54 35K 35K 78643K 54 0 ioctlops 0 0K 2K 78643K 29 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 5 0 vnodes 1166 73K 73K 78643K 1179 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 12548 0 file desc 28 105K 117K 78643K 118 0 proc 56 74K 99K 78643K 402 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 58 3K 3K 78643K 58 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 25 122K 122K 78643K 25 0 exec 0 0K 2K 78643K 567 0 tdb 3 0K 0K 78643K 3 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 243 75K 75K 78643K 2761 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 18 1K 1K 78643K 18 0 temp 49 4692K 4753K 78643K 3835 0 kqueue 12 18K 18K 78643K 25 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 plcache 128 22 0 0 1 0 1 1 0 8 0 rtpcb 120 25 0 21 1 0 1 1 0 8 0 rtentry 112 75 0 1 3 0 3 3 0 8 0 unpcb 136 33 0 20 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 arp 120 14 0 0 1 0 1 1 0 8 0 inpcb 304 50 0 44 1 0 1 1 0 8 0 nd6 48 10 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 285 0 0 18 0 18 18 0 8 0 art_table 32 286 0 0 3 0 3 3 0 8 0 art_node 16 74 0 6 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1471 0 48 89 0 89 89 0 8 0 ffsino 272 1471 0 48 95 0 95 95 0 8 0 nchpl 144 1719 0 57 62 0 62 62 0 8 0 uvmvnodes 80 1480 0 0 31 0 31 31 0 8 0 vnodes 224 1480 0 0 88 0 88 88 0 8 0 namei 1024 5459 0 5459 3 1 2 2 0 8 2 percpumem 16 39 0 0 1 0 1 1 0 8 0 scxspl 216 5500 0 5500 15 14 1 8 0 8 1 plimitpl 152 31 0 9 1 0 1 1 0 8 0 sigapl 424 395 0 342 7 0 7 7 0 8 0 futexpl 64 1 0 1 1 0 1 1 0 8 1 knotepl 120 110 0 0 4 0 4 4 0 8 0 kqueuepl 216 21 0 13 1 0 1 1 0 8 0 pipepl 336 127 0 99 4 1 3 3 0 8 0 fdescpl 496 381 0 342 7 1 6 6 0 8 0 filepl 152 1354 0 1226 6 0 6 6 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 144 25 0 9 1 0 1 1 0 8 0 pgrppl 48 25 0 9 1 0 1 1 0 8 0 ucredpl 96 70 0 58 1 0 1 1 0 8 0 zombiepl 144 342 0 342 2 1 1 1 0 8 1 processpl 1064 395 0 342 5 1 4 4 0 8 0 procpl 672 404 0 342 6 0 6 6 0 8 0 sockpl 480 108 0 85 4 0 4 4 0 8 1 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 56 0 0 7 0 7 7 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 229 0 0 14 0 14 14 0 8 0 bufpl 288 3541 0 135 244 0 244 244 0 8 0 anonpl 24 53130 0 47590 49 6 43 44 0 186 9 amapchunkpl 152 5600 0 5107 20 1 19 19 0 158 0 amappl16 200 233 0 150 6 1 5 5 0 8 0 amappl15 192 100 0 90 1 0 1 1 0 8 0 amappl14 184 2 0 1 1 0 1 1 0 8 0 amappl13 176 89 0 79 2 1 1 1 0 8 0 amappl12 168 13 0 13 2 1 1 1 0 8 1 amappl11 160 51 0 38 1 0 1 1 0 8 0 amappl10 152 29 0 26 1 0 1 1 0 8 0 amappl9 144 438 0 435 1 0 1 1 0 8 0 amappl8 136 503 0 471 2 0 2 2 0 8 0 amappl7 128 108 0 95 1 0 1 1 0 8 0 amappl6 120 230 0 206 2 0 2 2 0 8 1 amappl5 112 179 0 166 1 0 1 1 0 8 0 amappl4 104 744 0 708 2 0 2 2 0 8 0 amappl3 96 148 0 137 1 0 1 1 0 8 0 amappl2 88 494 0 447 3 0 3 3 0 8 1 amappl1 80 10098 0 9506 21 3 18 18 0 8 5 amappl 88 2393 0 2202 5 0 5 5 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 72 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 381 0 342 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 381 0 342 1 0 1 1 0 8 0 vmmpekpl 168 8060 0 8030 2 0 2 2 0 8 0 vmmpepl 168 35771 0 33791 93 4 89 89 0 357 2 vmsppl 368 380 0 342 4 0 4 4 0 8 0 rwobjpl 56 11389 0 8938 41 1 40 40 0 8 4 pdppl 4096 769 0 684 113 22 91 91 0 8 6 pvpl 32 226267 0 216330 253 7 246 246 0 265 165 pmappl 248 380 0 342 4 1 3 3 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 601 0 26 17 0 17 17 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff829baff0) at x86_ipi_db+0x1a x86_ipi_handler() at x86_ipi_handler+0xb7 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x7 intr_handler(ffff800021363050,ffff800000077500) at intr_handler+0x5e Xintr_ioapic_edge16_untramp() at Xintr_ioapic_edge16_untramp+0x18f __mp_lock(ffffffff829de780) at __mp_lock+0x122 softintr_dispatch(0) at softintr_dispatch+0x4e Xsoftclock() at Xsoftclock+0x1f __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0xb selwakeup(fffffd806e8e2e48) at selwakeup+0x16 sorwakeup(fffffd806e8e2d30) at sorwakeup+0xc9 rtm_sendup(fffffd806e8e2d30,fffffd8078a3b600) at rtm_sendup+0xfa route_input(fffffd8078a3b600,fffffd806e8e2d30,2) at route_input+0x198 route_output(fffffd8078a3b600,fffffd806e8e2d30,0,0) at route_output+0x8d8 route_usrreq(fffffd806e8e2d30,9,fffffd8078a3b600,0,0,ffff800021208fd0) at route_usrreq+0x398 sosend(fffffd806e8e2d30,0,ffff800021363758,0,0,0) at sosend+0x632 dofilewritev(ffff800021208fd0,3,ffff800021363758,0,ffff800021363850) at dofilewritev+0x19c sys_write(ffff800021208fd0,ffff8000213637f0,ffff800021363850) at sys_write+0x83 syscall(ffff8000213638c0) at syscall+0x489 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffce4c0, count: -21 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x18: addq $0x8,%rsp ddb{1}> trace db_enter() at db_enter+0x18 witness_checkorder(fffffd8077e68628,9,0) at witness_checkorder+0x10b7 rw_enter_write(fffffd8077e68618) at rw_enter_write+0x5b fill_file(ffff800000bda400,fffffd8078f004d8,fffffd8077e685d0,0,0,ffff8000212c6160,72bf897ea801f4d5,4a00,0) at fill_file+0xad2 sysctl_file(ffff80002137ae38,4,20000080,ffff80002137ae68,ffff800021208a90) at sysctl_file+0x62d kern_sysctl(ffff80002137ae34,5,20000080,ffff80002137ae68,0,0,54240bcc3adcd329) at kern_sysctl+0xfd sys_sysctl(ffff800021208a90,ffff80002137aed8,ffff80002137af30) at sys_sysctl+0x209 syscall(ffff80002137afa0) at syscall+0x489 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xdbad94c58c0, count: -9