kern.securelevel: 0 -> 1 creating runtime link editor directory cache. preserving editor files. starting network daemons: sshd. starting local daemons:. Wed Mar 23 00:15:52 PDT 2022 OpenBSD/amd64 (ci-openbsd-multicore-8.c.syzkaller.internal) (tty00) Warning: Permanently added '10.128.0.198' (ED25519) to the list of known hosts. executing program 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 43732 60685 0 0 0 0 syz-executor2903105094 *415646 60685 0 0 0x4000000 1 syz-executor2903105094 db_enter() at db_enter+0x18 panic(ffffffff825a4184) at panic+0x177 witness_checkorder(ffffffff82a6f1a0,9,0) at witness_checkorder+0x116d __mp_lock(ffffffff82a6ef98) at __mp_lock+0xa1 selwakeup(fffffd806d73b8b0) at selwakeup+0x16 sorwakeup(fffffd806d73b798) at sorwakeup+0xc9 rip6_input(ffff80002124c858,ffff80002124c864,85,18) at rip6_input+0x6bc ip_deliver(ffff80002124c858,ffff80002124c864,85,18) at ip_deliver+0x322 ip6_input_if(ffff80002124c858,ffff80002124c864,29,0,ffff80000019f2a8) at ip6_input_if+0x920 ipv6_input(ffff80000019f2a8,fffffd806f338100) at ipv6_input+0x48 if_input_local(ffff80000019f2a8,fffffd806f338100,18) at if_input_local+0x136 ip6_output(fffffd806e534900,ffff800000bc6c80,fffffd806f6752e8,0,0,fffffd806f675270) at ip6_output+0xf57 rip6_output(fffffd806e534900,fffffd806d73b1f8,ffff80002124cbc0,0) at rip6_output+0x4ad rip6_usrreq(fffffd806d73b1f8,9,fffffd806e534900,0,0,ffff800021241268) at rip6_usrreq+0x5d3 end trace frame: 0xffff80002124cd40, 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(ffffffff825a4184) at panic+0x177 witness_checkorder(ffffffff82a6f1a0,9,0) at witness_checkorder+0x116d __mp_lock(ffffffff82a6ef98) at __mp_lock+0xa1 selwakeup(fffffd806d73b8b0) at selwakeup+0x16 sorwakeup(fffffd806d73b798) at sorwakeup+0xc9 rip6_input(ffff80002124c858,ffff80002124c864,85,18) at rip6_input+0x6bc ip_deliver(ffff80002124c858,ffff80002124c864,85,18) at ip_deliver+0x322 ip6_input_if(ffff80002124c858,ffff80002124c864,29,0,ffff80000019f2a8) at ip6_input_if+0x920 ipv6_input(ffff80000019f2a8,fffffd806f338100) at ipv6_input+0x48 if_input_local(ffff80000019f2a8,fffffd806f338100,18) at if_input_local+0x136 ip6_output(fffffd806e534900,ffff800000bc6c80,fffffd806f6752e8,0,0,fffffd806f675270) at ip6_output+0xf57 rip6_output(fffffd806e534900,fffffd806d73b1f8,ffff80002124cbc0,0) at rip6_output+0x4ad rip6_usrreq(fffffd806d73b1f8,9,fffffd806e534900,0,0,ffff800021241268) at rip6_usrreq+0x5d3 sosend(fffffd806d73b1f8,0,ffff80002124cdf8,0,0,0) at sosend+0x632 dofilewritev(ffff800021241268,4,ffff80002124cdf8,0,ffff80002124cef0) at dofilewritev+0x19c sys_write(ffff800021241268,ffff80002124ce98,ffff80002124cef0) at sys_write+0x83 syscall(ffff80002124cf60) at syscall+0x489 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x64275899b70, count: -19 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff80002124c370 rbx 0xffff800020ce9bff rdx 0x3fd rcx 0 rax 0x68 r8 0x101010101010101 r9 0x8080808080808080 r10 0x67024f3f62e3534c r11 0x2bc31faa7704390b r12 0xffff800020ce9a00 r13 0 r14 0 r15 0x1 rip 0xffffffff815a2d98 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002124c360 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor2903105094) pid=415646 stat=onproc flags process=0 proc=4000000 pri=51, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff800021241a48,0xffffffff82a7b4a0 process=0xffff8000ffffba38 user=0xffff800021248000, vmspace=0xfffffd806cbeb2f0 estcpu=1, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 60685 43732 2040 0 7 0 syz-executor2903105094 *60685 415646 2040 0 7 0x4000000 syz-executor2903105094 45686 134697 73357 0 2 0 syz-executor2903105094 45686 518628 73357 0 2 0x4000000 syz-executor2903105094 33 145081 52409 0 2 0 syz-executor2903105094 33 38974 52409 0 2 0x4000000 syz-executor2903105094 29670 344737 77227 0 2 0 syz-executor2903105094 29670 377528 77227 0 3 0x4000080 fsleep syz-executor2903105094 38254 84376 13839 0 2 0 syz-executor2903105094 38254 182451 13839 0 3 0x4000080 fsleep syz-executor2903105094 87045 484484 52353 0 2 0 syz-executor2903105094 31426 116885 131 0 2 0 syz-executor2903105094 31426 203097 131 0 3 0x4000080 fsleep syz-executor2903105094 131 334766 61254 0 3 0x80 nanoslp syz-executor2903105094 61718 353324 61254 0 2 0 syz-executor2903105094 77227 477944 61254 0 2 0x480 syz-executor2903105094 52353 290484 61254 0 3 0x80 nanoslp syz-executor2903105094 73357 35417 61254 0 2 0x480 syz-executor2903105094 13839 261342 61254 0 3 0x80 nanoslp syz-executor2903105094 2040 126340 61254 0 2 0x480 syz-executor2903105094 52409 224109 61254 0 2 0x480 syz-executor2903105094 61254 57596 85408 0 3 0x82 nanoslp syz-executor2903105094 85408 415749 56943 0 3 0x10008a sigsusp ksh 56943 241745 40696 0 3 0x9a kqread sshd 9764 304186 1 0 3 0x100083 ttyin getty 40696 106145 1 0 3 0x88 kqread sshd 18929 94921 34589 74 3 0x1100092 bpf pflogd 34589 354377 1 0 3 0x80 netio pflogd 47215 168838 69368 73 3 0x1100090 kqread syslogd 69368 258561 1 0 3 0x100082 netio syslogd 70205 276324 1 0 3 0x100080 kqread resolvd 20560 381720 85616 77 3 0x100092 kqread dhcpleased 56352 131259 85616 77 3 0x100092 kqread dhcpleased 85616 401373 1 0 3 0x80 kqread dhcpleased 30149 175102 0 0 3 0x14200 bored smr 83499 477994 0 0 2 0x14200 zerothread 72955 295391 0 0 3 0x14200 aiodoned aiodoned 66550 512938 0 0 3 0x14200 syncer update 48961 363973 0 0 3 0x14200 cleaner cleaner 50030 300679 0 0 3 0x14200 reaper reaper 2197 257783 0 0 3 0x14200 pgdaemon pagedaemon 46606 322441 0 0 3 0x14200 bored viomb 54569 117414 0 0 3 0x40014200 acpi0 acpi0 78238 489876 0 0 3 0x40014200 idle1 24730 338393 0 0 3 0x14200 bored softnet 74905 64565 0 0 3 0x14200 bored systqmp 74710 442594 0 0 3 0x14200 bored systq 61963 300234 0 0 3 0x40014200 bored softclock 2342 516137 0 0 3 0x40014200 idle0 1 97904 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 (0xffffffff82a21700) #0 witness_lock+0x44d #1 mtx_enter_try+0x100 #2 mtx_enter+0x4b #3 rip6_input+0x28f #4 ip_deliver+0x322 #5 ip6_input_if+0x920 #6 ipv6_input+0x48 #7 if_input_local+0x136 #8 ip6_output+0xf57 #9 rip6_output+0x4ad #10 rip6_usrreq+0x5d3 #11 sosend+0x632 #12 dofilewritev+0x19c #13 sys_write+0x83 #14 syscall+0x489 #15 Xsyscall+0x128 Process 60685 (syz-executor2903105094) thread 0xffff800021241268 (415646) exclusive rwlock netlock r = 0 (0xffffffff829bbd70) #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 (0xffffffff82a21700) #0 witness_lock+0x44d #1 mtx_enter_try+0x100 #2 mtx_enter+0x4b #3 rip6_input+0x28f #4 ip_deliver+0x322 #5 ip6_input_if+0x920 #6 ipv6_input+0x48 #7 if_input_local+0x136 #8 ip6_output+0xf57 #9 rip6_output+0x4ad #10 rip6_usrreq+0x5d3 #11 sosend+0x632 #12 dofilewritev+0x19c #13 sys_write+0x83 #14 syscall+0x489 #15 Xsyscall+0x128 Process 61718 (syz-executor2903105094) thread 0xffff8000ffff6a90 (353324) exclusive rrwlock inode r = 0 (0xfffffd806cc0d3c8) #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 (0xfffffd806d3082c8) #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 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10149 6454K 6455K 78643K 11239 0 pcb 16 8K 8K 78643K 22 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 ip_moptions 2 0K 0K 78643K 3 0 in_multi 14 0K 0K 78643K 16 0 ether_multi 2 0K 0K 78643K 3 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 183 7K 7K 78643K 2288 0 UVM aobj 3 2K 2K 78643K 3 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 2 0K 0K 78643K 4 0 NDP 4 0K 0K 78643K 4 0 temp 24 4694K 4758K 78643K 3301 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 1 0 1 1 0 8 1 tcpcb 736 10 0 5 1 0 1 1 0 8 0 arp 120 2 0 0 1 0 1 1 0 8 0 inpcb 312 39 0 30 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 10 0 0 1 0 1 1 0 8 0 pfstkey 112 10 0 0 1 0 1 1 0 8 0 pfstate 320 10 0 0 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 1441 0 40 88 0 88 88 0 8 0 ffsino 272 1441 0 40 94 0 94 94 0 8 0 nchpl 144 1624 0 52 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 4465 0 4464 2 0 2 2 0 8 1 percpumem 16 32 0 0 1 0 1 1 0 8 0 scxspl 216 3969 0 3969 2 0 2 2 0 8 2 plimitpl 152 16 0 9 1 0 1 1 0 8 0 sigapl 424 336 0 292 5 0 5 5 0 8 0 futexpl 64 11 0 8 1 0 1 1 0 8 0 knotepl 120 50 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 1 0 1 1 0 8 0 fdescpl 496 322 0 292 4 0 4 4 0 8 0 filepl 152 1153 0 1092 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 292 1 0 1 1 0 8 1 processpl 1064 336 0 292 3 0 3 3 0 8 0 procpl 672 343 0 293 5 0 5 5 0 8 0 sockpl 480 91 0 64 4 0 4 4 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 57 0 0 8 0 8 8 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 105 0 0 7 0 7 7 0 8 0 bufpl 288 2040 0 91 140 0 140 140 0 8 0 anonpl 24 44191 0 39609 31 2 29 29 0 186 1 amapchunkpl 152 4221 0 3867 16 2 14 14 0 158 0 amappl16 200 35 0 30 2 1 1 1 0 8 0 amappl15 192 69 0 65 1 0 1 1 0 8 0 amappl14 184 3 0 2 1 0 1 1 0 8 0 amappl13 176 34 0 33 1 0 1 1 0 8 0 amappl12 168 20 0 20 1 0 1 1 0 8 1 amappl11 160 54 0 39 1 0 1 1 0 8 0 amappl10 152 10 0 8 1 0 1 1 0 8 0 amappl9 144 469 0 467 1 0 1 1 0 8 0 amappl8 136 389 0 370 1 0 1 1 0 8 0 amappl7 128 65 0 62 1 0 1 1 0 8 0 amappl6 120 114 0 101 1 0 1 1 0 8 0 amappl5 112 173 0 161 1 0 1 1 0 8 0 amappl4 104 641 0 621 1 0 1 1 0 8 0 amappl3 96 121 0 112 1 0 1 1 0 8 0 amappl2 88 371 0 332 2 1 1 2 0 8 0 amappl1 80 8931 0 8435 12 1 11 11 0 8 0 amappl 88 1999 0 1840 4 0 4 4 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 292 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 322 0 292 1 0 1 1 0 8 0 vmmpekpl 168 6286 0 6266 1 0 1 1 0 8 0 vmmpepl 168 27254 0 25844 64 2 62 62 0 357 0 vmsppl 368 321 0 292 3 0 3 3 0 8 0 rwobjpl 56 9803 0 7647 31 0 31 31 0 8 0 pdppl 4096 651 0 584 86 17 69 69 0 8 2 pvpl 32 138250 0 131245 59 2 57 57 0 265 0 pmappl 248 321 0 292 2 0 2 2 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 448 0 20 13 0 13 13 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff82986ff0) at x86_ipi_db+0x1a x86_ipi_handler() at x86_ipi_handler+0xb7 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 end of kernel end trace frame: 0x7f7ffffc8600, count: 12 ddb{0}> trace x86_ipi_db(ffffffff82986ff0) at x86_ipi_db+0x1a x86_ipi_handler() at x86_ipi_handler+0xb7 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 end of kernel end trace frame: 0x7f7ffffc8600, count: -3 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x18: addq $0x8,%rsp db_enter() at db_enter+0x18 panic(ffffffff825a4184) at panic+0x177 witness_checkorder(ffffffff82a6f1a0,9,0) at witness_checkorder+0x116d __mp_lock(ffffffff82a6ef98) at __mp_lock+0xa1 selwakeup(fffffd806d73b8b0) at selwakeup+0x16 sorwakeup(fffffd806d73b798) at sorwakeup+0xc9 rip6_input(ffff80002124c858,ffff80002124c864,85,18) at rip6_input+0x6bc ip_deliver(ffff80002124c858,ffff80002124c864,85,18) at ip_deliver+0x322 ip6_input_if(ffff80002124c858,ffff80002124c864,29,0,ffff80000019f2a8) at ip6_input_if+0x920 ipv6_input(ffff80000019f2a8,fffffd806f338100) at ipv6_input+0x48 if_input_local(ffff80000019f2a8,fffffd806f338100,18) at if_input_local+0x136 ip6_output(fffffd806e534900,ffff800000bc6c80,fffffd806f6752e8,0,0,fffffd806f675270) at ip6_output+0xf57 rip6_output(fffffd806e534900,fffffd806d73b1f8,ffff80002124cbc0,0) at rip6_output+0x4ad rip6_usrreq(fffffd806d73b1f8,9,fffffd806e534900,0,0,ffff800021241268) at rip6_usrreq+0x5d3 end trace frame: 0xffff80002124cd40, count: 0 ddb{1}> trace db_enter() at db_enter+0x18 panic(ffffffff825a4184) at panic+0x177 witness_checkorder(ffffffff82a6f1a0,9,0) at witness_checkorder+0x116d __mp_lock(ffffffff82a6ef98) at __mp_lock+0xa1 selwakeup(fffffd806d73b8b0) at selwakeup+0x16 sorwakeup(fffffd806d73b798) at sorwakeup+0xc9 rip6_input(ffff80002124c858,ffff80002124c864,85,18) at rip6_input+0x6bc ip_deliver(ffff80002124c858,ffff80002124c864,85,18) at ip_deliver+0x322 ip6_input_if(ffff80002124c858,ffff80002124c864,29,0,ffff80000019f2a8) at ip6_input_if+0x920 ipv6_input(ffff80000019f2a8,fffffd806f338100) at ipv6_input+0x48 if_input_local(ffff80000019f2a8,fffffd806f338100,18) at if_input_local+0x136 ip6_output(fffffd806e534900,ffff800000bc6c80,fffffd806f6752e8,0,0,fffffd806f675270) at ip6_output+0xf57 rip6_output(fffffd806e534900,fffffd806d73b1f8,ffff80002124cbc0,0) at rip6_output+0x4ad rip6_usrreq(fffffd806d73b1f8,9,fffffd806e534900,0,0,ffff800021241268) at rip6_usrreq+0x5d3 sosend(fffffd806d73b1f8,0,ffff80002124cdf8,0,0,0) at sosend+0x632 dofilewritev(ffff800021241268,4,ffff80002124cdf8,0,ffff80002124cef0) at dofilewritev+0x19c sys_write(ffff800021241268,ffff80002124ce98,ffff80002124cef0) at sys_write+0x83 syscall(ffff80002124cf60) at syscall+0x489 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x64275899b70, count: -19 ddb{1}>