kern.securelevel: 0 -> 1 creating runtime link editor directory cache. preserving editor files. starting network daemons: sshd. starting local daemons:. Tue Mar 22 08:44:06 PDT 2022 OpenBSD/amd64 (ci-openbsd-multicore-4.c.syzkaller.internal) (tty00) Warning: Permanently added '10.128.1.113' (ED25519) to the list of known hosts. executing program 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 *400855 31023 0 0 0 1 syz-executor2752397663 330651 84986 0 0 0 0 syz-executor2752397663 db_enter() at db_enter+0x18 panic(ffffffff825a2db5) at panic+0x177 witness_checkorder(ffffffff829f3ad8,9,0) at witness_checkorder+0x116d __mp_lock(ffffffff829f38d0) at __mp_lock+0xa1 selwakeup(fffffd806e376318) at selwakeup+0x16 sorwakeup(fffffd806e376200) at sorwakeup+0xc9 rip_input(ffff800021210558,ffff800021210564,0,2) at rip_input+0x3b0 ip_deliver(ffff800021210558,ffff800021210564,0,2) at ip_deliver+0x322 ip_ours(ffff800021210558,ffff800021210564,fffffd806e5350bc,0) at ip_ours+0x3ba ip_input_if(ffff800021210558,ffff800021210564,4,0,ffff800000689000) at ip_input_if+0x2a1 ipv4_input(ffff800000689000,fffffd806e535000) at ipv4_input+0x48 if_input_local(ffff800000689000,fffffd806e535000,2) at if_input_local+0x10e ip_output(fffffd806f28ed00,0,fffffd806f679a38,20,0,fffffd806f6799c0,3a9fec0149a3af7b) at ip_output+0xb05 rip_output(fffffd806f28ed00,fffffd806e376020,ffff8000212107b0,1) at rip_output+0x2cb end trace frame: 0xffff800021210830, 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(ffffffff825a2db5) at panic+0x177 witness_checkorder(ffffffff829f3ad8,9,0) at witness_checkorder+0x116d __mp_lock(ffffffff829f38d0) at __mp_lock+0xa1 selwakeup(fffffd806e376318) at selwakeup+0x16 sorwakeup(fffffd806e376200) at sorwakeup+0xc9 rip_input(ffff800021210558,ffff800021210564,0,2) at rip_input+0x3b0 ip_deliver(ffff800021210558,ffff800021210564,0,2) at ip_deliver+0x322 ip_ours(ffff800021210558,ffff800021210564,fffffd806e5350bc,0) at ip_ours+0x3ba ip_input_if(ffff800021210558,ffff800021210564,4,0,ffff800000689000) at ip_input_if+0x2a1 ipv4_input(ffff800000689000,fffffd806e535000) at ipv4_input+0x48 if_input_local(ffff800000689000,fffffd806e535000,2) at if_input_local+0x10e ip_output(fffffd806f28ed00,0,fffffd806f679a38,20,0,fffffd806f6799c0,3a9fec0149a3af7b) at ip_output+0xb05 rip_output(fffffd806f28ed00,fffffd806e376020,ffff8000212107b0,1) at rip_output+0x2cb rip_usrreq(fffffd806e376020,9,fffffd806f28ed00,0,0,ffff80002119e000) at rip_usrreq+0x49c sosend(fffffd806e376020,0,ffff800021210a40,0,0,0) at sosend+0x632 dofilewritev(ffff80002119e000,4,ffff800021210a40,0,ffff800021210b40) at dofilewritev+0x19c sys_writev(ffff80002119e000,ffff800021210ae8,ffff800021210b40) at sys_writev+0xa7 syscall(ffff800021210bb0) at syscall+0x489 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffca070, count: -20 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff8000212100e0 rbx 0xffff800020ce9bff rdx 0x3fd rcx 0 rax 0x68 r8 0x101010101010101 r9 0x8080808080808080 r10 0x13bf6c08ca36a72b r11 0x58cf6c424f0092bc r12 0xffff800020ce9a00 r13 0 r14 0 r15 0x1 rip 0xffffffff811e4c58 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000212100d0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor2752397663) pid=400855 stat=onproc flags process=0 proc=0 pri=53, usrpri=54, nice=20 forw=0xffffffffffffffff, list=0xffff80002119f260,0xffffffff82afb7b8 process=0xffff8000ffff8858 user=0xffff80002120b000, vmspace=0xfffffd806cc082f0 estcpu=4, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND *31023 400855 90750 0 7 0 syz-executor2752397663 84986 330651 3592 0 7 0 syz-executor2752397663 46593 1051 94462 0 3 0x80 nanoslp syz-executor2752397663 10088 236329 94462 0 3 0x80 nanoslp syz-executor2752397663 79192 295470 94462 0 3 0x80 nanoslp syz-executor2752397663 3592 328891 94462 0 3 0x80 nanoslp syz-executor2752397663 14619 151087 94462 0 3 0x80 nanoslp syz-executor2752397663 64892 309918 94462 0 3 0 biowait syz-executor2752397663 90750 40061 94462 0 3 0x80 nanoslp syz-executor2752397663 19624 293519 94462 0 3 0 biowait syz-executor2752397663 94462 408688 82181 0 3 0x82 nanoslp syz-executor2752397663 82181 119781 68120 0 3 0x10008a sigsusp ksh 68120 112674 84035 0 3 0x9a kqread sshd 16086 509028 1 0 3 0x100083 ttyin getty 84035 178049 1 0 3 0x88 kqread sshd 86501 367972 21805 74 3 0x1100092 bpf pflogd 21805 86872 1 0 3 0x80 netio pflogd 43916 367180 22548 73 3 0x1100090 kqread syslogd 22548 347363 1 0 3 0x100082 netio syslogd 82821 347750 1 0 3 0x100080 kqread resolvd 3118 339659 56057 77 3 0x100092 kqread dhcpleased 72037 276577 56057 77 3 0x100092 kqread dhcpleased 56057 369284 1 0 3 0x80 kqread dhcpleased 43121 360340 0 0 3 0x14200 bored smr 1686 126757 0 0 2 0x14200 zerothread 13935 297023 0 0 3 0x14200 aiodoned aiodoned 89234 465362 0 0 3 0x14200 syncer update 39726 24587 0 0 3 0x14200 cleaner cleaner 59044 262216 0 0 2 0x14200 reaper 34717 136543 0 0 3 0x14200 pgdaemon pagedaemon 67001 354751 0 0 3 0x14200 bored viomb 74545 3453 0 0 3 0x40014200 acpi0 acpi0 6662 315714 0 0 3 0x40014200 idle1 69606 510112 0 0 3 0x14200 bored softnet 22177 524122 0 0 3 0x14200 bored systqmp 75671 125430 0 0 3 0x14200 bored systq 52617 66701 0 0 3 0x40014200 bored softclock 89144 199833 0 0 3 0x40014200 idle0 1 426409 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 (0xffffffff82b03010) #0 witness_lock+0x44d #1 mtx_enter_try+0x100 #2 mtx_enter+0x4b #3 rip_input+0x135 #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 rip_output+0x2cb #11 rip_usrreq+0x49c #12 sosend+0x632 #13 dofilewritev+0x19c #14 sys_writev+0xa7 #15 syscall+0x489 #16 Xsyscall+0x128 Process 31023 (syz-executor2752397663) thread 0xffff80002119e000 (400855) exclusive rwlock netlock r = 0 (0xffffffff82904160) #0 witness_lock+0x44d #1 solock+0x86 #2 sosend+0x517 #3 dofilewritev+0x19c #4 sys_writev+0xa7 #5 syscall+0x489 #6 Xsyscall+0x128 exclusive mutex &table->inpt_mtx r = 0 (0xffffffff82b03010) #0 witness_lock+0x44d #1 mtx_enter_try+0x100 #2 mtx_enter+0x4b #3 rip_input+0x135 #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 rip_output+0x2cb #11 rip_usrreq+0x49c #12 sosend+0x632 #13 dofilewritev+0x19c #14 sys_writev+0xa7 #15 syscall+0x489 #16 Xsyscall+0x128 Process 64892 (syz-executor2752397663) thread 0xffff800021142008 (309918) exclusive rrwlock inode r = 0 (0xfffffd806cc331a8) #0 witness_lock+0x44d #1 rw_enter+0x3e1 #2 rrw_enter+0x8b #3 VOP_LOCK+0x87 #4 ufs_ihashins+0x42 #5 ffs_vget+0x141 #6 ffs_inode_alloc+0x1be #7 ufs_mkdir+0xf4 #8 VOP_MKDIR+0xbf #9 domkdirat+0x121 #10 syscall+0x489 #11 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806d40f4e8) #0 witness_lock+0x44d #1 rw_enter+0x3e1 #2 rrw_enter+0x8b #3 VOP_LOCK+0x87 #4 vn_lock+0x84 #5 vfs_lookup+0xd1 #6 namei+0x36a #7 domkdirat+0x75 #8 syscall+0x489 #9 Xsyscall+0x128 Process 19624 (syz-executor2752397663) thread 0xffff8000ffff7270 (293519) exclusive rrwlock inode r = 0 (0xfffffd806d40ff88) #0 witness_lock+0x44d #1 rw_enter+0x3e1 #2 rrw_enter+0x8b #3 VOP_LOCK+0x87 #4 vn_lock+0x84 #5 vget+0x1d3 #6 ufs_ihashget+0x121 #7 ffs_vget+0x7c #8 ufs_lookup+0x13ba #9 VOP_LOOKUP+0x58 #10 vfs_lookup+0x6e5 #11 namei+0x36a #12 dounlinkat+0x99 #13 syscall+0x489 #14 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806d40f708) #0 witness_lock+0x44d #1 rw_enter+0x3e1 #2 rrw_enter+0x8b #3 VOP_LOCK+0x87 #4 vn_lock+0x84 #5 vfs_lookup+0xd1 #6 namei+0x36a #7 dounlinkat+0x99 #8 syscall+0x489 #9 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 17 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 118 69K 69K 78643K 2205 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 4758K 78643K 3277 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 46 0 38 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 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 1441 0 40 88 0 88 88 0 8 0 ffsino 272 1441 0 40 94 0 94 94 0 8 0 nchpl 144 1623 0 53 59 0 59 59 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 4473 0 4472 3 1 2 2 0 8 1 percpumem 16 32 0 0 1 0 1 1 0 8 0 scxspl 216 4119 0 4117 10 2 8 8 0 8 7 plimitpl 152 24 0 9 1 0 1 1 0 8 0 sigapl 424 336 0 293 5 0 5 5 0 8 0 knotepl 120 45 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 297 4 0 4 4 0 8 0 filepl 152 1168 0 1108 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 26 0 9 1 0 1 1 0 8 0 pgrppl 48 26 0 9 1 0 1 1 0 8 0 ucredpl 96 69 0 57 1 0 1 1 0 8 0 zombiepl 144 297 0 293 2 1 1 1 0 8 0 processpl 1064 336 0 293 3 0 3 3 0 8 0 procpl 672 336 0 293 4 0 4 4 0 8 0 sockpl 480 98 0 72 5 1 4 4 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 76 0 0 9 0 9 9 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 128 0 0 7 0 7 7 0 8 0 bufpl 288 2031 0 93 139 0 139 139 0 8 0 anonpl 24 41747 0 39166 20 3 17 17 0 186 1 amapchunkpl 152 4027 0 3854 7 0 7 7 0 158 0 amappl16 200 31 0 29 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 14 0 14 2 1 1 1 0 8 1 amappl11 160 53 0 39 1 0 1 1 0 8 0 amappl10 152 10 0 8 1 0 1 1 0 8 0 amappl9 144 448 0 446 1 0 1 1 0 8 0 amappl8 136 370 0 367 1 0 1 1 0 8 0 amappl7 128 67 0 64 1 0 1 1 0 8 0 amappl6 120 115 0 102 1 0 1 1 0 8 0 amappl5 112 198 0 174 1 0 1 1 0 8 0 amappl4 104 647 0 625 1 0 1 1 0 8 0 amappl3 96 122 0 113 1 0 1 1 0 8 0 amappl2 88 369 0 331 1 0 1 1 0 8 0 amappl1 80 8825 0 8403 9 0 9 9 0 8 0 amappl 88 1915 0 1824 3 0 3 3 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 296 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 322 0 296 1 0 1 1 0 8 0 vmmpekpl 168 6184 0 6168 1 0 1 1 0 8 0 vmmpepl 168 26829 0 25783 49 3 46 46 0 357 0 vmsppl 368 321 0 296 3 0 3 3 0 8 0 rwobjpl 56 9598 0 7572 29 0 29 29 0 8 0 pdppl 4096 651 0 592 77 18 59 59 0 8 0 pvpl 32 136042 0 131317 43 4 39 39 0 265 0 pmappl 248 321 0 296 2 0 2 2 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 442 0 22 12 0 12 12 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff8298cff0) at x86_ipi_db+0x1a x86_ipi_handler() at x86_ipi_handler+0xb7 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff829f38d0) at __mp_lock+0x122 intr_handler(ffff80002120a4b0,ffff80000004ad00) at intr_handler+0x5e Xintr_ioapic_edge21_untramp() at Xintr_ioapic_edge21_untramp+0x18f __mp_lock(ffffffff829f38d0) at __mp_lock+0x133 syscall(ffff80002120a680) at syscall+0x3ef Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffca070, count: 6 ddb{0}> trace x86_ipi_db(ffffffff8298cff0) at x86_ipi_db+0x1a x86_ipi_handler() at x86_ipi_handler+0xb7 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff829f38d0) at __mp_lock+0x122 intr_handler(ffff80002120a4b0,ffff80000004ad00) at intr_handler+0x5e Xintr_ioapic_edge21_untramp() at Xintr_ioapic_edge21_untramp+0x18f __mp_lock(ffffffff829f38d0) at __mp_lock+0x133 syscall(ffff80002120a680) at syscall+0x3ef Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffca070, count: -9 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x18: addq $0x8,%rsp db_enter() at db_enter+0x18 panic(ffffffff825a2db5) at panic+0x177 witness_checkorder(ffffffff829f3ad8,9,0) at witness_checkorder+0x116d __mp_lock(ffffffff829f38d0) at __mp_lock+0xa1 selwakeup(fffffd806e376318) at selwakeup+0x16 sorwakeup(fffffd806e376200) at sorwakeup+0xc9 rip_input(ffff800021210558,ffff800021210564,0,2) at rip_input+0x3b0 ip_deliver(ffff800021210558,ffff800021210564,0,2) at ip_deliver+0x322 ip_ours(ffff800021210558,ffff800021210564,fffffd806e5350bc,0) at ip_ours+0x3ba ip_input_if(ffff800021210558,ffff800021210564,4,0,ffff800000689000) at ip_input_if+0x2a1 ipv4_input(ffff800000689000,fffffd806e535000) at ipv4_input+0x48 if_input_local(ffff800000689000,fffffd806e535000,2) at if_input_local+0x10e ip_output(fffffd806f28ed00,0,fffffd806f679a38,20,0,fffffd806f6799c0,3a9fec0149a3af7b) at ip_output+0xb05 rip_output(fffffd806f28ed00,fffffd806e376020,ffff8000212107b0,1) at rip_output+0x2cb end trace frame: 0xffff800021210830, count: 0 ddb{1}> trace db_enter() at db_enter+0x18 panic(ffffffff825a2db5) at panic+0x177 witness_checkorder(ffffffff829f3ad8,9,0) at witness_checkorder+0x116d __mp_lock(ffffffff829f38d0) at __mp_lock+0xa1 selwakeup(fffffd806e376318) at selwakeup+0x16 sorwakeup(fffffd806e376200) at sorwakeup+0xc9 rip_input(ffff800021210558,ffff800021210564,0,2) at rip_input+0x3b0 ip_deliver(ffff800021210558,ffff800021210564,0,2) at ip_deliver+0x322 ip_ours(ffff800021210558,ffff800021210564,fffffd806e5350bc,0) at ip_ours+0x3ba ip_input_if(ffff800021210558,ffff800021210564,4,0,ffff800000689000) at ip_input_if+0x2a1 ipv4_input(ffff800000689000,fffffd806e535000) at ipv4_input+0x48 if_input_local(ffff800000689000,fffffd806e535000,2) at if_input_local+0x10e ip_output(fffffd806f28ed00,0,fffffd806f679a38,20,0,fffffd806f6799c0,3a9fec0149a3af7b) at ip_output+0xb05 rip_output(fffffd806f28ed00,fffffd806e376020,ffff8000212107b0,1) at rip_output+0x2cb rip_usrreq(fffffd806e376020,9,fffffd806f28ed00,0,0,ffff80002119e000) at rip_usrreq+0x49c sosend(fffffd806e376020,0,ffff800021210a40,0,0,0) at sosend+0x632 dofilewritev(ffff80002119e000,4,ffff800021210a40,0,ffff800021210b40) at dofilewritev+0x19c sys_writev(ffff80002119e000,ffff800021210ae8,ffff800021210b40) at sys_writev+0xa7 syscall(ffff800021210bb0) at syscall+0x489 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffca070, count: -20 ddb{1}>