kern.securelevel: 0 -> 1 creating runtime link editor directory cache. preserving editor files. starting network daemons: sshd. starting local daemons:. Sat Feb 5 10:19:06 PST 2022 OpenBSD/amd64 (ci-openbsd-multicore-4.c.syzkaller.internal) (tty00) Warning: Permanently added '10.128.1.7' (ED25519) to the list of known hosts. 2022/02/05 10:19:50 parsed 1 programs 2022/02/05 10:19:53 executed programs: 0 login: panic: kernel diagnostic assertion "len >= 0 && !M_READONLY(m)" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/uipc_mbuf.c", line 1384 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 40453 15464 0 0 0 1K syz-executor.0 db_enter() at db_enter+0x18 panic(ffffffff82574ae4) at panic+0x177 __assert(ffffffff825eb323,ffffffff825605fb,568,ffffffff8258ec0b) at __assert+0x25 m_align(fffffd807f00df00,ffffffbe) at m_align+0x1a0 bpf_movein(ffff80002121be08,ffff800000ba4000,ffff80002121bae8,ffff80002121b9e8) at bpf_movein+0x25e bpfwrite(31700,ffff80002121be08,5) at bpfwrite+0x169 spec_write(ffff80002121bbe0) at spec_write+0xd4 VOP_WRITE(fffffd807b727da8,ffff80002121be08,5,fffffd807f7d8960) at VOP_WRITE+0xbf vn_write(fffffd806e52fee8,ffff80002121be08,1) at vn_write+0x1a1 dofilewritev(ffff8000ffff47e0,3,ffff80002121be08,1,ffff80002121bf10) at dofilewritev+0x19c sys_pad_pwritev(ffff8000ffff47e0,ffff80002121beb8,ffff80002121bf10) at sys_pad_pwritev+0xb9 syscall(ffff80002121bf80) at syscall+0x489 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc8b90, count: 2 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: kernel diagnostic assertion "len >= 0 && !M_READONLY(m)" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/uipc_mbuf.c", line 1384 ddb{1}> trace db_enter() at db_enter+0x18 panic(ffffffff82574ae4) at panic+0x177 __assert(ffffffff825eb323,ffffffff825605fb,568,ffffffff8258ec0b) at __assert+0x25 m_align(fffffd807f00df00,ffffffbe) at m_align+0x1a0 bpf_movein(ffff80002121be08,ffff800000ba4000,ffff80002121bae8,ffff80002121b9e8) at bpf_movein+0x25e bpfwrite(31700,ffff80002121be08,5) at bpfwrite+0x169 spec_write(ffff80002121bbe0) at spec_write+0xd4 VOP_WRITE(fffffd807b727da8,ffff80002121be08,5,fffffd807f7d8960) at VOP_WRITE+0xbf vn_write(fffffd806e52fee8,ffff80002121be08,1) at vn_write+0x1a1 dofilewritev(ffff8000ffff47e0,3,ffff80002121be08,1,ffff80002121bf10) at dofilewritev+0x19c sys_pad_pwritev(ffff8000ffff47e0,ffff80002121beb8,ffff80002121bf10) at sys_pad_pwritev+0xb9 syscall(ffff80002121bf80) at syscall+0x489 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc8b90, count: -13 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff80002121b800 rbx 0xffff800020ce9bff rdx 0x3fd rcx 0 rax 0x94 r8 0x101010101010101 r9 0x8080808080808080 r10 0xa609fa88162af5be r11 0xfb69cbc9eb099965 r12 0xffff800020ce9a00 r13 0 r14 0 r15 0x1 rip 0xffffffff812d1e98 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002121b7f0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=40453 stat=onproc flags process=0 proc=0 pri=17, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff4fc0,0xffffffff82b00788 process=0xffff8000ffffadc0 user=0xffff800021217000, vmspace=0xfffffd800871a000 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND *15464 40453 92785 0 7 0 syz-executor.0 92785 229775 38817 0 3 0x82 nanoslp syz-executor.0 38817 195206 60047 0 3 0x82 thrsleep syz-execprog 38817 139233 60047 0 3 0x4000082 nanoslp syz-execprog 38817 288115 60047 0 3 0x4000082 thrsleep syz-execprog 38817 374584 60047 0 3 0x4000082 thrsleep syz-execprog 38817 337915 60047 0 3 0x4000082 nanoslp syz-execprog 38817 490426 60047 0 3 0x4000082 kqread syz-execprog 38817 188826 60047 0 3 0x4000082 thrsleep syz-execprog 38817 228054 60047 0 3 0x4000082 thrsleep syz-execprog 60047 515504 58262 0 3 0x10008a sigsusp ksh 58262 366744 30715 0 3 0x9a poll sshd 48034 353535 1 0 3 0x100083 ttyin getty 30715 507338 1 0 3 0x88 poll sshd 62701 184290 68290 74 3 0x100092 bpf pflogd 68290 183400 1 0 3 0x80 netio pflogd 794 297084 7551 73 3 0x100090 kqread syslogd 7551 308094 1 0 3 0x100082 netio syslogd 33509 490993 1 0 3 0x100080 kqread resolvd 16936 386442 91969 77 3 0x100092 kqread dhcpleased 48320 219227 91969 77 3 0x100092 kqread dhcpleased 91969 239524 1 0 3 0x80 kqread dhcpleased 62644 64720 0 0 3 0x14200 bored smr 66426 351293 0 0 3 0x14200 pgzero zerothread 39288 8975 0 0 3 0x14200 aiodoned aiodoned 26835 2144 0 0 3 0x14200 syncer update 1645 370053 0 0 3 0x14200 cleaner cleaner 79935 307679 0 0 3 0x14200 reaper reaper 73712 173834 0 0 3 0x14200 pgdaemon pagedaemon 2959 287961 0 0 3 0x14200 bored viomb 61173 463186 0 0 3 0x40014200 acpi0 acpi0 1241 148480 0 0 3 0x40014200 idle1 68823 401516 0 0 3 0x14200 bored softnet 37175 347781 0 0 3 0x14200 bored systqmp 69093 273891 0 0 3 0x14200 bored systq 29406 315864 0 0 3 0x40014200 bored softclock 86509 325212 0 0 7 0x40014200 idle0 1 168911 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 15464 (syz-executor.0) thread 0xffff8000ffff47e0 (40453) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82ac6568) #0 witness_lock+0x44d #1 vn_write+0x42 #2 dofilewritev+0x19c #3 sys_pad_pwritev+0xb9 #4 syscall+0x489 #5 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10157 6522K 6522K 78643K 11247 0 pcb 13 8K 8K 78643K 13 0 rtable 84 2K 3K 78643K 150 0 ifaddr 37 9K 9K 78643K 40 0 counters 42 33K 33K 78643K 42 0 ioctlops 0 0K 4K 78643K 1480 0 iov 1 12K 12K 78643K 1 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1168 73K 73K 78643K 1181 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 3 8K 12K 78643K 18 0 proc 67 87K 99K 78643K 310 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 501 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 133 14K 15K 78643K 2547 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 7 0K 0K 78643K 7 0 temp 29 4682K 4745K 78643K 3696 0 kqueue 10 14K 14K 78643K 10 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 23 0 20 1 0 1 1 0 8 0 rtentry 112 34 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 4 0 0 1 0 1 1 0 8 0 inpcb 304 36 0 30 1 0 1 1 0 8 0 nd6 48 3 0 0 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 11 0 2 1 0 1 1 0 8 0 pfstkey 112 11 0 2 1 0 1 1 0 8 0 pfstate 320 11 0 2 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 145 0 0 10 0 10 10 0 8 0 art_table 32 146 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 1452 0 49 88 0 88 88 0 8 0 ffsino 272 1452 0 49 94 0 94 94 0 8 0 nchpl 144 1680 0 59 61 0 61 61 0 8 0 uvmvnodes 80 1463 0 0 30 0 30 30 0 8 0 vnodes 224 1463 0 0 87 0 87 87 0 8 0 namei 1024 5212 0 5212 3 1 2 2 0 8 2 percpumem 16 33 0 0 1 0 1 1 0 8 0 scxspl 216 5410 0 5410 10 9 1 8 0 8 1 plimitpl 152 17 0 9 1 0 1 1 0 8 0 sigapl 424 359 0 328 5 0 5 5 0 8 1 knotepl 112 50 0 0 2 0 2 2 0 8 0 kqueuepl 216 6 0 0 1 0 1 1 0 8 0 pipepl 336 110 0 103 2 1 1 1 0 8 0 fdescpl 496 345 0 328 4 0 4 4 0 8 1 filepl 152 1375 0 1304 4 0 4 4 0 8 1 lockfpl 104 9 0 6 1 0 1 1 0 8 0 lockfspl 48 6 0 3 1 0 1 1 0 8 0 sessionpl 144 19 0 9 1 0 1 1 0 8 0 pgrppl 48 19 0 9 1 0 1 1 0 8 0 ucredpl 96 69 0 57 1 0 1 1 0 8 0 zombiepl 144 328 0 328 2 1 1 1 0 8 1 processpl 1064 359 0 328 3 0 3 3 0 8 0 procpl 672 366 0 328 4 0 4 4 0 8 0 sockpl 480 94 0 70 5 1 4 4 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 3 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 128 0 0 7 0 7 7 0 8 0 bufpl 288 3567 0 150 245 0 245 245 0 8 0 anonpl 24 50328 0 46565 47 3 44 44 0 186 17 amapchunkpl 152 5235 0 4920 19 0 19 19 0 158 6 amappl16 200 127 0 70 5 1 4 4 0 8 0 amappl15 192 86 0 82 1 0 1 1 0 8 0 amappl14 184 2 0 2 1 0 1 1 0 8 1 amappl13 176 49 0 47 2 1 1 1 0 8 0 amappl12 168 7 0 5 2 1 1 1 0 8 0 amappl11 160 55 0 40 1 0 1 1 0 8 0 amappl10 152 20 0 18 1 0 1 1 0 8 0 amappl9 144 419 0 416 1 0 1 1 0 8 0 amappl8 136 455 0 432 2 0 2 2 0 8 0 amappl7 128 85 0 78 1 0 1 1 0 8 0 amappl6 120 184 0 166 2 0 2 2 0 8 1 amappl5 112 211 0 198 1 0 1 1 0 8 0 amappl4 104 721 0 695 2 0 2 2 0 8 1 amappl3 96 158 0 146 1 0 1 1 0 8 0 amappl2 88 493 0 451 3 0 3 3 0 8 1 amappl1 80 10019 0 9592 21 2 19 19 0 8 10 amappl 88 2201 0 2099 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 345 0 328 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 345 0 328 1 0 1 1 0 8 0 vmmpekpl 168 8146 0 8129 2 0 2 2 0 8 1 vmmpepl 168 32711 0 31579 94 4 90 90 0 357 40 vmsppl 368 344 0 328 3 0 3 3 0 8 1 rwobjpl 56 11109 0 8923 40 0 40 40 0 8 4 pdppl 4096 697 0 656 85 36 49 57 0 8 8 pvpl 32 219974 0 213274 249 6 243 243 0 265 184 pmappl 248 344 0 328 2 0 2 2 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 557 0 41 15 0 15 15 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff82952ff0) at x86_ipi_db+0x1a x86_ipi_handler() at x86_ipi_handler+0xb7 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff82ac6360) at __mp_lock+0x122 softintr_dispatch(0) at softintr_dispatch+0x4e Xsoftclock() at Xsoftclock+0x1f acpicpu_idle() at acpicpu_idle+0x312 sched_idle(ffffffff82952ff0) at sched_idle+0x417 end trace frame: 0x0, count: 7 ddb{0}> trace x86_ipi_db(ffffffff82952ff0) at x86_ipi_db+0x1a x86_ipi_handler() at x86_ipi_handler+0xb7 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff82ac6360) at __mp_lock+0x122 softintr_dispatch(0) at softintr_dispatch+0x4e Xsoftclock() at Xsoftclock+0x1f acpicpu_idle() at acpicpu_idle+0x312 sched_idle(ffffffff82952ff0) at sched_idle+0x417 end trace frame: 0x0, count: -8 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x18: addq $0x8,%rsp db_enter() at db_enter+0x18 panic(ffffffff82574ae4) at panic+0x177 __assert(ffffffff825eb323,ffffffff825605fb,568,ffffffff8258ec0b) at __assert+0x25 m_align(fffffd807f00df00,ffffffbe) at m_align+0x1a0 bpf_movein(ffff80002121be08,ffff800000ba4000,ffff80002121bae8,ffff80002121b9e8) at bpf_movein+0x25e bpfwrite(31700,ffff80002121be08,5) at bpfwrite+0x169 spec_write(ffff80002121bbe0) at spec_write+0xd4 VOP_WRITE(fffffd807b727da8,ffff80002121be08,5,fffffd807f7d8960) at VOP_WRITE+0xbf vn_write(fffffd806e52fee8,ffff80002121be08,1) at vn_write+0x1a1 dofilewritev(ffff8000ffff47e0,3,ffff80002121be08,1,ffff80002121bf10) at dofilewritev+0x19c sys_pad_pwritev(ffff8000ffff47e0,ffff80002121beb8,ffff80002121bf10) at sys_pad_pwritev+0xb9 syscall(ffff80002121bf80) at syscall+0x489 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc8b90, count: 2 ddb{1}> trace db_enter() at db_enter+0x18 panic(ffffffff82574ae4) at panic+0x177 __assert(ffffffff825eb323,ffffffff825605fb,568,ffffffff8258ec0b) at __assert+0x25 m_align(fffffd807f00df00,ffffffbe) at m_align+0x1a0 bpf_movein(ffff80002121be08,ffff800000ba4000,ffff80002121bae8,ffff80002121b9e8) at bpf_movein+0x25e bpfwrite(31700,ffff80002121be08,5) at bpfwrite+0x169 spec_write(ffff80002121bbe0) at spec_write+0xd4 VOP_WRITE(fffffd807b727da8,ffff80002121be08,5,fffffd807f7d8960) at VOP_WRITE+0xbf vn_write(fffffd806e52fee8,ffff80002121be08,1) at vn_write+0x1a1 dofilewritev(ffff8000ffff47e0,3,ffff80002121be08,1,ffff80002121bf10) at dofilewritev+0x19c sys_pad_pwritev(ffff8000ffff47e0,ffff80002121beb8,ffff80002121bf10) at sys_pad_pwritev+0xb9 syscall(ffff80002121bf80) at syscall+0x489 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc8b90, count: -13 ddb{1}>