kern.securelevel: 0 -> 1 creating runtime link editor directory cache. preserving editor files. starting network daemons: sshd. starting local daemons:. Mon Mar 21 06:19:34 PDT 2022 OpenBSD/amd64 (ci-openbsd-multicore-4.c.syzkaller.internal) (tty00) Warning: Permanently added '10.128.1.84' (ED25519) to the list of known hosts. executing program executing program executing program executing program executing program executing program login: panic: acquiring blockable sleep lock with spinlock or critical section held (kernel_lock) &kernel_lock Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 28816 59769 0 0 0 1 syz-executor1563962708 77645 60039 0 0 0 0 syz-executor1563962708 db_enter() at db_enter+0x18 panic(ffffffff825a56b6) at panic+0x177 witness_checkorder(ffffffff82b47030,9,0) at witness_checkorder+0x116d __mp_lock(ffffffff82b46e28) at __mp_lock+0xa1 selwakeup(fffffd80756b54f8) at selwakeup+0x16 sorwakeup(fffffd80756b53e0) at sorwakeup+0xc9 udp_sbappend(fffffd806f67c888,fffffd806d4fe700,fffffd8075a482b0,0,14,fffffd8075a482c4,612ce3548f336ae5,0) at udp_sbappend+0x3b1 udp_input(ffff80002121c0c8,ffff80002121c0d4,11,2) at udp_input+0xbcb ip_deliver(ffff80002121c0c8,ffff80002121c0d4,11,2) at ip_deliver+0x322 ip_ours(ffff80002121c0c8,ffff80002121c0d4,fffffd8075a482bc,0) at ip_ours+0x3ba ip_input_if(ffff80002121c0c8,ffff80002121c0d4,4,0,ffff800000689000) at ip_input_if+0x2a1 ipv4_input(ffff800000689000,fffffd8075a48200) at ipv4_input+0x48 if_input_local(ffff800000689000,fffffd8075a48200,2) at if_input_local+0x10e ip_output(fffffd80757c1400,0,fffffd806f67c420,0,0,fffffd806f67c3a8,68a6ab5268f6a4e4) at ip_output+0xb05 end trace frame: 0xffff80002121c340, count: 0 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic *cpu1: acquiring blockable sleep lock with spinlock or critical section held (kernel_lock) &kernel_lock ddb{1}> trace db_enter() at db_enter+0x18 panic(ffffffff825a56b6) at panic+0x177 witness_checkorder(ffffffff82b47030,9,0) at witness_checkorder+0x116d __mp_lock(ffffffff82b46e28) at __mp_lock+0xa1 selwakeup(fffffd80756b54f8) at selwakeup+0x16 sorwakeup(fffffd80756b53e0) at sorwakeup+0xc9 udp_sbappend(fffffd806f67c888,fffffd806d4fe700,fffffd8075a482b0,0,14,fffffd8075a482c4,612ce3548f336ae5,0) at udp_sbappend+0x3b1 udp_input(ffff80002121c0c8,ffff80002121c0d4,11,2) at udp_input+0xbcb ip_deliver(ffff80002121c0c8,ffff80002121c0d4,11,2) at ip_deliver+0x322 ip_ours(ffff80002121c0c8,ffff80002121c0d4,fffffd8075a482bc,0) at ip_ours+0x3ba ip_input_if(ffff80002121c0c8,ffff80002121c0d4,4,0,ffff800000689000) at ip_input_if+0x2a1 ipv4_input(ffff800000689000,fffffd8075a48200) at ipv4_input+0x48 if_input_local(ffff800000689000,fffffd8075a48200,2) at if_input_local+0x10e ip_output(fffffd80757c1400,0,fffffd806f67c420,0,0,fffffd806f67c3a8,68a6ab5268f6a4e4) at ip_output+0xb05 udp_output(fffffd806f67c3a8,fffffd80757c1400,0,0) at udp_output+0x58d sosend(fffffd80756b57a0,0,ffff80002121c4d8,0,0,0) at sosend+0x632 dofilewritev(ffff8000211662a0,3,ffff80002121c4d8,0,ffff80002121c5d0) at dofilewritev+0x19c sys_write(ffff8000211662a0,ffff80002121c578,ffff80002121c5d0) at sys_write+0x83 syscall(ffff80002121c640) at syscall+0x489 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc0690, count: -20 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff80002121bb00 rbx 0xffff800020ce9bff rdx 0x3fd rcx 0 rax 0x68 r8 0x101010101010101 r9 0x8080808080808080 r10 0xad6d365ced3b0112 r11 0xb90da846c58de2a2 r12 0xffff800020ce9a00 r13 0 r14 0 r15 0x1 rip 0xffffffff81f18858 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002121baf0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor1563962708) pid=28816 stat=onproc flags process=0 proc=0 pri=32, usrpri=54, nice=20 forw=0xffffffffffffffff, list=0xffff8000211667e0,0xffff800021166550 process=0xffff8000ffff8c80 user=0xffff800021217000, vmspace=0xfffffd806e260460 estcpu=4, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 68428 135778 55733 0 2 0 syz-executor1563962708 27971 247391 3507 0 2 0 syz-executor1563962708 *59769 28816 35058 0 7 0 syz-executor1563962708 59970 384731 4561 0 2 0 syz-executor1563962708 55733 501659 40456 0 3 0x80 nanoslp syz-executor1563962708 3507 497373 40456 0 3 0x80 nanoslp syz-executor1563962708 20774 334220 35303 0 2 0 syz-executor1563962708 56066 401579 40456 0 3 0x80 nanoslp syz-executor1563962708 4561 86910 40456 0 3 0x80 nanoslp syz-executor1563962708 14319 469171 19862 0 2 0 syz-executor1563962708 35303 430371 40456 0 3 0x80 nanoslp syz-executor1563962708 19862 233225 40456 0 3 0x80 nanoslp syz-executor1563962708 60039 77645 21415 0 7 0 syz-executor1563962708 35058 387382 40456 0 3 0x80 nanoslp syz-executor1563962708 21415 375217 40456 0 3 0x80 nanoslp syz-executor1563962708 40456 306977 5271 0 3 0x82 nanoslp syz-executor1563962708 5271 508182 16319 0 3 0x10008a sigsusp ksh 16319 257643 82726 0 3 0x9a kqread sshd 32215 302512 1 0 3 0x100083 ttyin getty 82726 468597 1 0 3 0x88 kqread sshd 45008 263862 75166 74 3 0x1100092 bpf pflogd 75166 47065 1 0 3 0x80 netio pflogd 43856 129487 32118 73 3 0x1100090 kqread syslogd 32118 367368 1 0 3 0x100082 netio syslogd 44514 105753 1 0 3 0x100080 kqread resolvd 11267 234726 87087 77 3 0x100092 kqread dhcpleased 1046 237955 87087 77 3 0x100092 kqread dhcpleased 87087 511725 1 0 3 0x80 kqread dhcpleased 13474 191844 0 0 3 0x14200 bored smr 48712 173331 0 0 2 0x14200 zerothread 60084 412513 0 0 3 0x14200 aiodoned aiodoned 17188 498127 0 0 3 0x14200 syncer update 92398 54366 0 0 3 0x14200 cleaner cleaner 34914 418213 0 0 2 0x14200 reaper 50736 440153 0 0 3 0x14200 pgdaemon pagedaemon 36327 86581 0 0 3 0x14200 bored viomb 18417 233787 0 0 3 0x40014200 acpi0 acpi0 44915 289674 0 0 3 0x40014200 idle1 52766 19937 0 0 3 0x14200 bored softnet 61737 493806 0 0 3 0x14200 bored systqmp 93086 369237 0 0 3 0x14200 bored systq 58404 175246 0 0 3 0x40014200 bored softclock 5414 109421 0 0 3 0x40014200 idle0 1 404855 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks CPU 1: exclusive mutex &table->inpt_mtx r = 0 (0xffffffff82a88990) #0 witness_lock+0x44d #1 mtx_enter_try+0x100 #2 mtx_enter+0x4b #3 udp_input+0x7b0 #4 ip_deliver+0x322 #5 ip_ours+0x3ba #6 ip_input_if+0x2a1 #7 ipv4_input+0x48 #8 if_input_local+0x10e #9 ip_output+0xb05 #10 udp_output+0x58d #11 sosend+0x632 #12 dofilewritev+0x19c #13 sys_write+0x83 #14 syscall+0x489 #15 Xsyscall+0x128 Process 59769 (syz-executor1563962708) thread 0xffff8000211662a0 (28816) exclusive rwlock netlock r = 0 (0xffffffff828f7720) #0 witness_lock+0x44d #1 solock+0x86 #2 sosend+0x517 #3 dofilewritev+0x19c #4 sys_write+0x83 #5 syscall+0x489 #6 Xsyscall+0x128 exclusive mutex &table->inpt_mtx r = 0 (0xffffffff82a88990) #0 witness_lock+0x44d #1 mtx_enter_try+0x100 #2 mtx_enter+0x4b #3 udp_input+0x7b0 #4 ip_deliver+0x322 #5 ip_ours+0x3ba #6 ip_input_if+0x2a1 #7 ipv4_input+0x48 #8 if_input_local+0x10e #9 ip_output+0xb05 #10 udp_output+0x58d #11 sosend+0x632 #12 dofilewritev+0x19c #13 sys_write+0x83 #14 syscall+0x489 #15 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10149 6454K 6455K 78643K 11239 0 pcb 13 8K 8K 78643K 13 0 rtable 62 2K 2K 78643K 112 0 ifaddr 29 8K 8K 78643K 32 0 counters 40 33K 33K 78643K 40 0 ioctlops 0 0K 4K 78643K 1479 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 5 0 vnodes 1167 73K 73K 78643K 1180 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 1 0K 0K 78643K 1 0 proc 67 87K 87K 78643K 282 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 25 122K 122K 78643K 25 0 exec 0 0K 2K 78643K 432 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 105 6K 6K 78643K 2216 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 24 4694K 4757K 78643K 3313 0 kqueue 11 16K 18K 78643K 24 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 17 0 14 1 0 1 1 0 8 0 rtentry 112 23 0 1 1 0 1 1 0 8 0 unpcb 136 35 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 2 0 0 1 0 1 1 0 8 0 inpcb 312 36 0 28 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 8 0 0 1 0 1 1 0 8 0 pfstkey 112 8 0 0 1 0 1 1 0 8 0 pfstate 320 8 0 0 1 0 1 1 0 8 0 pfrule 1360 21 0 15 2 0 2 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 dino2pl 256 1424 0 39 87 0 87 87 0 8 0 ffsino 272 1424 0 39 93 0 93 93 0 8 0 nchpl 144 1599 0 49 58 0 58 58 0 8 0 uvmvnodes 80 1434 0 0 30 0 30 30 0 8 0 vnodes 224 1434 0 0 85 0 85 85 0 8 0 namei 1024 4422 0 4422 2 1 1 1 0 8 1 percpumem 16 32 0 0 1 0 1 1 0 8 0 scxspl 216 4040 0 4040 10 2 8 8 0 8 8 plimitpl 152 16 0 9 1 0 1 1 0 8 0 sigapl 424 336 0 291 5 0 5 5 0 8 0 knotepl 120 49 0 0 2 0 2 2 0 8 0 kqueuepl 216 20 0 13 1 0 1 1 0 8 0 pipepl 336 86 0 83 2 1 1 1 0 8 0 fdescpl 496 322 0 292 4 0 4 4 0 8 0 filepl 152 1149 0 1089 3 0 3 3 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 18 0 9 1 0 1 1 0 8 0 pgrppl 48 18 0 9 1 0 1 1 0 8 0 ucredpl 96 69 0 57 1 0 1 1 0 8 0 zombiepl 144 292 0 291 2 1 1 1 0 8 0 processpl 1064 336 0 291 3 0 3 3 0 8 0 procpl 672 336 0 291 4 0 4 4 0 8 0 sockpl 480 88 0 62 5 1 4 4 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 66 0 0 8 0 8 8 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 120 0 0 8 0 8 8 0 8 0 bufpl 288 2017 0 93 138 0 138 138 0 8 0 anonpl 24 41822 0 39238 19 3 16 17 0 186 0 amapchunkpl 152 4009 0 3834 8 1 7 7 0 158 0 amappl16 200 33 0 31 2 1 1 1 0 8 0 amappl15 192 67 0 64 1 0 1 1 0 8 0 amappl13 176 34 0 33 2 1 1 1 0 8 0 amappl12 168 17 0 17 2 1 1 1 0 8 1 amappl11 160 49 0 35 1 0 1 1 0 8 0 amappl10 152 8 0 6 1 0 1 1 0 8 0 amappl9 144 451 0 449 1 0 1 1 0 8 0 amappl8 136 370 0 367 1 0 1 1 0 8 0 amappl7 128 65 0 62 1 0 1 1 0 8 0 amappl6 120 131 0 101 1 0 1 1 0 8 0 amappl5 112 179 0 167 1 0 1 1 0 8 0 amappl4 104 641 0 620 1 0 1 1 0 8 0 amappl3 96 121 0 112 1 0 1 1 0 8 0 amappl2 88 371 0 333 1 0 1 1 0 8 0 amappl1 80 8799 0 8363 11 2 9 9 0 8 0 amappl 88 1933 0 1847 2 0 2 2 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 322 0 291 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 322 0 291 1 0 1 1 0 8 0 vmmpekpl 168 6211 0 6195 1 0 1 1 0 8 0 vmmpepl 168 26794 0 25676 53 4 49 49 0 357 0 vmsppl 368 321 0 291 3 0 3 3 0 8 0 rwobjpl 56 9529 0 7520 29 0 29 29 0 8 0 pdppl 4096 651 0 582 89 20 69 69 0 8 0 pvpl 32 135886 0 131201 44 5 39 39 0 265 1 pmappl 248 321 0 291 2 0 2 2 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 450 0 24 13 0 13 13 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff8294dff0) at x86_ipi_db+0x1a x86_ipi_handler() at x86_ipi_handler+0xb7 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff82b46e28) at __mp_lock+0x122 softintr_dispatch(0) at softintr_dispatch+0x4e Xsoftclock() at Xsoftclock+0x1f __mp_lock(ffffffff82b46e28) at __mp_lock+0x122 syscall(ffff8000211e0a20) at syscall+0x3ef Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc0560, count: 6 ddb{0}> trace x86_ipi_db(ffffffff8294dff0) at x86_ipi_db+0x1a x86_ipi_handler() at x86_ipi_handler+0xb7 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff82b46e28) at __mp_lock+0x122 softintr_dispatch(0) at softintr_dispatch+0x4e Xsoftclock() at Xsoftclock+0x1f __mp_lock(ffffffff82b46e28) at __mp_lock+0x122 syscall(ffff8000211e0a20) at syscall+0x3ef Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc0560, count: -9 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x18: addq $0x8,%rsp db_enter() at db_enter+0x18 panic(ffffffff825a56b6) at panic+0x177 witness_checkorder(ffffffff82b47030,9,0) at witness_checkorder+0x116d __mp_lock(ffffffff82b46e28) at __mp_lock+0xa1 selwakeup(fffffd80756b54f8) at selwakeup+0x16 sorwakeup(fffffd80756b53e0) at sorwakeup+0xc9 udp_sbappend(fffffd806f67c888,fffffd806d4fe700,fffffd8075a482b0,0,14,fffffd8075a482c4,612ce3548f336ae5,0) at udp_sbappend+0x3b1 udp_input(ffff80002121c0c8,ffff80002121c0d4,11,2) at udp_input+0xbcb ip_deliver(ffff80002121c0c8,ffff80002121c0d4,11,2) at ip_deliver+0x322 ip_ours(ffff80002121c0c8,ffff80002121c0d4,fffffd8075a482bc,0) at ip_ours+0x3ba ip_input_if(ffff80002121c0c8,ffff80002121c0d4,4,0,ffff800000689000) at ip_input_if+0x2a1 ipv4_input(ffff800000689000,fffffd8075a48200) at ipv4_input+0x48 if_input_local(ffff800000689000,fffffd8075a48200,2) at if_input_local+0x10e ip_output(fffffd80757c1400,0,fffffd806f67c420,0,0,fffffd806f67c3a8,68a6ab5268f6a4e4) at ip_output+0xb05 end trace frame: 0xffff80002121c340, count: 0 ddb{1}> trace db_enter() at db_enter+0x18 panic(ffffffff825a56b6) at panic+0x177 witness_checkorder(ffffffff82b47030,9,0) at witness_checkorder+0x116d __mp_lock(ffffffff82b46e28) at __mp_lock+0xa1 selwakeup(fffffd80756b54f8) at selwakeup+0x16 sorwakeup(fffffd80756b53e0) at sorwakeup+0xc9 udp_sbappend(fffffd806f67c888,fffffd806d4fe700,fffffd8075a482b0,0,14,fffffd8075a482c4,612ce3548f336ae5,0) at udp_sbappend+0x3b1 udp_input(ffff80002121c0c8,ffff80002121c0d4,11,2) at udp_input+0xbcb ip_deliver(ffff80002121c0c8,ffff80002121c0d4,11,2) at ip_deliver+0x322 ip_ours(ffff80002121c0c8,ffff80002121c0d4,fffffd8075a482bc,0) at ip_ours+0x3ba ip_input_if(ffff80002121c0c8,ffff80002121c0d4,4,0,ffff800000689000) at ip_input_if+0x2a1 ipv4_input(ffff800000689000,fffffd8075a48200) at ipv4_input+0x48 if_input_local(ffff800000689000,fffffd8075a48200,2) at if_input_local+0x10e ip_output(fffffd80757c1400,0,fffffd806f67c420,0,0,fffffd806f67c3a8,68a6ab5268f6a4e4) at ip_output+0xb05 udp_output(fffffd806f67c3a8,fffffd80757c1400,0,0) at udp_output+0x58d sosend(fffffd80756b57a0,0,ffff80002121c4d8,0,0,0) at sosend+0x632 dofilewritev(ffff8000211662a0,3,ffff80002121c4d8,0,ffff80002121c5d0) at dofilewritev+0x19c sys_write(ffff8000211662a0,ffff80002121c578,ffff80002121c5d0) at sys_write+0x83 syscall(ffff80002121c640) at syscall+0x489 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc0690, count: -20 ddb{1}>