kern.securelevel: 0 -> 1 creating runtime link editor directory cache. preserving editor files. starting network daemons: sshd. starting local daemons:. Sat Mar 12 07:41:37 PST 2022 OpenBSD/amd64 (ci-openbsd-setuid-8.c.syzkaller.internal) (tty00) Warning: Permanently added '10.128.0.69' (ED25519) to the list of known hosts. 2022/03/12 07:41:48 parsed 1 programs 2022/03/12 07:41:53 executed programs: 0 login: witness: lock order reversal: 1st 0xfffffd806ee2f300 vmmaplk (&map->lock) 2nd 0xfffffd807f7d6058 fdlock (&newfdp->fd_fd.fd_lock) lock order "&newfdp->fd_fd.fd_lock"(rwlock) -> "&map->lock"(rwlock) first seen at: #0 rw_enter+0xd1 #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(fffffd807f7d6058,9,0) at witness_checkorder+0x10b7 rw_enter_write(fffffd807f7d6048) at rw_enter_write+0x5b fill_file(ffff800000b93c00,fffffd806e627ac0,fffffd807f7d6000,0,0,ffff8000ffff8430,787ce702e5f7ef2e,fb,0) at fill_file+0xad2 sysctl_file(ffff8000211f3b58,4,20000080,ffff8000211f3b88,ffff8000211e8000) at sysctl_file+0x62d kern_sysctl(ffff8000211f3b54,5,20000080,ffff8000211f3b88,0,0,78cea8f24786957d) at kern_sysctl+0xfd sys_sysctl(ffff8000211e8000,ffff8000211f3bf8,ffff8000211f3c50) at sys_sysctl+0x209 syscall(ffff8000211f3cc0) at syscall+0x489 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe38c0, count: -9 ddb{1}> show registers rdi 0x3 rsi 0xffffffff8294abb0 __sancov_gen_cov_switch_values.134 rbp 0xffff8000211f34c0 rbx 0x3 rdx 0x3fd rcx 0 rax 0x1 r8 0xffff8000211f3430 r9 0x8080808080808080 r10 0xdd99b4a9355b3761 r11 0x3be12c127c2c021f r12 0xffffffff82aad410 w_lodata+0x4faa0 r13 0 r14 0xffffffff82aad150 w_lodata+0x4f7e0 r15 0xfffffd8002f62c80 rip 0xffffffff8138d658 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000211f34b0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=393142 stat=onproc flags process=0 proc=0 pri=52, usrpri=52, nice=20 forw=0xffffffffffffffff, list=0xffff8000211e8a80,0xffffffff82b3d400 process=0xffff8000ffff8430 user=0xffff8000211ee000, vmspace=0xfffffd806ee2f2e8 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND *23494 393142 46278 0 7 0 syz-executor.0 46278 10146 74201 0 3 0x82 nanoslp syz-executor.0 74201 404966 41801 0 3 0x82 nanoslp syz-execprog 74201 38025 41801 0 3 0x4000082 nanoslp syz-execprog 74201 158034 41801 0 3 0x4000082 thrsleep syz-execprog 74201 65709 41801 0 3 0x4000082 kqread syz-execprog 74201 118876 41801 0 3 0x4000082 thrsleep syz-execprog 74201 256906 41801 0 3 0x4000082 thrsleep syz-execprog 74201 316805 41801 0 3 0x4000082 thrsleep syz-execprog 74201 50505 41801 0 3 0x4000082 thrsleep syz-execprog 41801 437427 49690 0 3 0x10008a sigsusp ksh 49690 228013 66201 0 3 0x9a kqread sshd 19364 115499 1 0 3 0x100083 ttyin getty 66201 491935 1 0 3 0x88 kqread sshd 64102 139498 89977 73 3 0x1100090 kqread syslogd 89977 228830 1 0 3 0x100082 netio syslogd 65334 83005 1 0 3 0x100080 kqread resolvd 35754 394418 35839 77 3 0x100092 kqread dhcpleased 12315 488876 35839 77 3 0x100092 kqread dhcpleased 35839 48862 1 0 3 0x80 kqread dhcpleased 93714 91078 0 0 3 0x14200 bored smr 93857 104626 0 0 3 0x14200 pgzero zerothread 68746 265124 0 0 3 0x14200 aiodoned aiodoned 83581 293391 0 0 3 0x14200 syncer update 43917 302785 0 0 3 0x14200 cleaner cleaner 46716 125104 0 0 3 0x14200 reaper reaper 14405 297756 0 0 3 0x14200 pgdaemon pagedaemon 7287 150350 0 0 3 0x14200 bored viomb 80892 374158 0 0 3 0x40014200 acpi0 acpi0 88670 210744 0 0 3 0x40014200 idle1 79584 326467 0 0 3 0x14200 bored softnet 67138 78015 0 0 3 0x14200 bored systqmp 44932 443938 0 0 3 0x14200 bored systq 81793 145220 0 0 3 0x40014200 bored softclock 57093 205098 0 0 7 0x40014200 idle0 1 391398 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 23494 (syz-executor.0) thread 0xffff8000211e8000 (393142) shared rwlock vmmaplk r = 0 (0xfffffd806ee2f300) #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 10146 6390K 6419K 78643K 11236 0 pcb 13 8K 8K 78643K 13 0 rtable 84 2K 3K 78643K 138 0 ifaddr 32 8K 8K 78643K 32 0 counters 42 33K 33K 78643K 42 0 ioctlops 0 0K 2K 78643K 26 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 4 9K 13K 78643K 22 0 proc 55 74K 87K 78643K 254 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 22 1K 1K 78643K 22 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 440 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 123 14K 15K 78643K 2276 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 6 0K 0K 78643K 6 0 temp 25 4691K 4753K 78643K 3345 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 19 0 16 1 0 1 1 0 8 0 rtentry 112 34 0 1 1 0 1 1 0 8 0 unpcb 136 33 0 20 1 0 1 1 0 8 0 syncache 296 5 0 5 1 0 1 1 0 8 1 tcpcb 736 8 0 5 1 0 1 1 0 8 0 arp 120 4 0 0 1 0 1 1 0 8 0 inpcb 304 29 0 23 1 0 1 1 0 8 0 nd6 48 3 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 144 0 0 9 0 9 9 0 8 0 art_table 32 145 0 0 2 0 2 2 0 8 0 art_node 16 33 0 3 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1442 0 48 88 0 88 88 0 8 0 ffsino 272 1442 0 48 93 0 93 93 0 8 0 nchpl 144 1670 0 57 60 0 60 60 0 8 0 uvmvnodes 80 1451 0 0 30 0 30 30 0 8 0 vnodes 224 1451 0 0 86 0 86 86 0 8 0 namei 1024 4853 0 4853 2 0 2 2 0 8 2 percpumem 16 33 0 0 1 0 1 1 0 8 0 scxspl 216 5116 0 5116 2 1 1 2 0 8 1 plimitpl 152 16 0 9 1 0 1 1 0 8 0 sigapl 424 319 0 290 5 0 5 5 0 8 1 knotepl 120 62 0 0 2 0 2 2 0 8 0 kqueuepl 216 21 0 13 1 0 1 1 0 8 0 pipepl 336 99 0 92 2 0 2 2 0 8 1 fdescpl 496 305 0 290 4 1 3 3 0 8 1 filepl 152 1214 0 1149 4 0 4 4 0 8 1 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 18 0 9 1 0 1 1 0 8 0 pgrppl 48 18 0 9 1 0 1 1 0 8 0 ucredpl 96 64 0 54 1 0 1 1 0 8 0 zombiepl 144 290 0 290 1 0 1 1 0 8 1 processpl 1064 319 0 290 4 1 3 3 0 8 1 procpl 672 326 0 290 4 0 4 4 0 8 0 sockpl 480 81 0 59 3 0 3 3 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 4 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 114 0 0 7 0 7 7 0 8 0 bufpl 288 3486 0 137 240 0 240 240 0 8 0 anonpl 24 45443 0 42002 44 1 43 43 0 186 18 amapchunkpl 152 4503 0 4205 20 1 19 19 0 158 6 amappl16 200 134 0 80 5 1 4 4 0 8 0 amappl15 192 76 0 71 1 0 1 1 0 8 0 amappl14 184 1 0 1 1 0 1 1 0 8 1 amappl13 176 51 0 47 1 0 1 1 0 8 0 amappl12 168 12 0 12 1 0 1 1 0 8 1 amappl11 160 39 0 29 1 0 1 1 0 8 0 amappl10 152 20 0 19 1 0 1 1 0 8 0 amappl9 144 444 0 438 1 0 1 1 0 8 0 amappl8 136 396 0 377 1 0 1 1 0 8 0 amappl7 128 82 0 74 1 0 1 1 0 8 0 amappl6 120 185 0 163 2 0 2 2 0 8 1 amappl5 112 144 0 135 1 0 1 1 0 8 0 amappl4 104 643 0 621 1 0 1 1 0 8 0 amappl3 96 137 0 127 1 0 1 1 0 8 0 amappl2 88 442 0 399 3 0 3 3 0 8 1 amappl1 80 8965 0 8568 18 0 18 18 0 8 9 amappl 88 1972 0 1878 4 0 4 4 0 92 1 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 305 0 290 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 305 0 290 1 0 1 1 0 8 0 vmmpekpl 168 7683 0 7665 2 0 2 2 0 8 0 vmmpepl 168 29323 0 28279 86 0 86 86 0 357 39 vmsppl 368 304 0 290 3 0 3 3 0 8 1 rwobjpl 56 10125 0 8004 40 0 40 40 0 8 6 pdppl 4096 617 0 580 65 20 45 53 0 8 8 pvpl 32 204236 0 197941 243 1 242 242 0 265 185 pmappl 248 304 0 290 3 1 2 2 0 8 1 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 526 0 22 15 0 15 15 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 __mp_lock(ffffffff829de780) at __mp_lock+0x122 intr_handler(ffff8000210ff4d0,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 acpicpu_idle() at acpicpu_idle+0x312 sched_idle(ffffffff829baff0) at sched_idle+0x417 end trace frame: 0x0, count: -11 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x18: addq $0x8,%rsp ddb{1}> trace db_enter() at db_enter+0x18 witness_checkorder(fffffd807f7d6058,9,0) at witness_checkorder+0x10b7 rw_enter_write(fffffd807f7d6048) at rw_enter_write+0x5b fill_file(ffff800000b93c00,fffffd806e627ac0,fffffd807f7d6000,0,0,ffff8000ffff8430,787ce702e5f7ef2e,fb,0) at fill_file+0xad2 sysctl_file(ffff8000211f3b58,4,20000080,ffff8000211f3b88,ffff8000211e8000) at sysctl_file+0x62d kern_sysctl(ffff8000211f3b54,5,20000080,ffff8000211f3b88,0,0,78cea8f24786957d) at kern_sysctl+0xfd sys_sysctl(ffff8000211e8000,ffff8000211f3bf8,ffff8000211f3c50) at sys_sysctl+0x209 syscall(ffff8000211f3cc0) at syscall+0x489 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe38c0, count: -9 ddb{1}>