by+&~w-`u= Nڗ>F჏teDbYZ/S川},3n:@by+&~w-`u= Nڗ>F჏teDbYZ/S川},3n:@panic: pool_cache_item_magic_check: mbufpl cpu free list modified: item addr 0xfffffd806750bb00+16 0xcb1fd1b068095c00!=0xcb1fd1b068095c99 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *365272 33301 0 0 0x4000000 1K syz-executor.0 158092 41922 0 0 0 0 syz-executor.1 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 pool_cache_get(ffffffff82627690) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline] pool_cache_get(ffffffff82627690) at pool_cache_get+0x323 sys/kern/subr_pool.c:1892 pool_get() at pool_get+0x91 sys/kern/subr_pool.c:572 m_makespace(fffffd806a0b1000,0,c,ffff800022d68b04) at m_makespace+0x645 m_get sys/kern/uipc_mbuf.c:250 [inline] m_makespace(fffffd806a0b1000,0,c,ffff800022d68b04) at m_makespace+0x645 sys/kern/uipc_mbuf.c:1199 swofp_send_error(ffff800000ae2000,fffffd806a0b1000,0,0) at swofp_send_error+0xa7 sys/net/switchofp.c:4793 swofp_recv_hello(ffff800000ae2000,fffffd806a0b1000) at swofp_recv_hello+0x62 sys/net/switchofp.c:4745 swofp_input(ffff800000ae2000,fffffd806a0b1000) at swofp_input+0x1d6 sys/net/switchofp.c:4699 switchwrite(86138,ffff800022d68f60,1) at switchwrite+0x3b0 sys/net/switchctl.c:274 spec_write(ffff800022d68d30) at spec_write+0xd4 sys/kern/spec_vnops.c:310 VOP_WRITE(fffffd8068269020,ffff800022d68f60,1,fffffd807f7c69c0) at VOP_WRITE+0xc6 sys/kern/vfs_vops.c:269 vn_write(fffffd8065bef578,ffff800022d68f60,1) at vn_write+0x199 sys/kern/vfs_vnops.c:405 dofilewritev(ffff800020ab18c8,3,ffff800022d68f60,1,ffff800022d69050) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_pwritev(ffff800020ab18c8,ffff800022d69008,ffff800022d69050) at sys_pwritev+0xb8 sys/kern/vfs_syscalls.c:3269 end trace frame: 0xffff800022d690c0, 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 pool_cache_item_magic_check: mbufpl cpu free list modified: item addr 0xfffffd806750bb00+16 0xcb1fd1b068095c00!=0xcb1fd1b068095c99 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 pool_cache_get(ffffffff82627690) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline] pool_cache_get(ffffffff82627690) at pool_cache_get+0x323 sys/kern/subr_pool.c:1892 pool_get() at pool_get+0x91 sys/kern/subr_pool.c:572 m_makespace(fffffd806a0b1000,0,c,ffff800022d68b04) at m_makespace+0x645 m_get sys/kern/uipc_mbuf.c:250 [inline] m_makespace(fffffd806a0b1000,0,c,ffff800022d68b04) at m_makespace+0x645 sys/kern/uipc_mbuf.c:1199 swofp_send_error(ffff800000ae2000,fffffd806a0b1000,0,0) at swofp_send_error+0xa7 sys/net/switchofp.c:4793 swofp_recv_hello(ffff800000ae2000,fffffd806a0b1000) at swofp_recv_hello+0x62 sys/net/switchofp.c:4745 swofp_input(ffff800000ae2000,fffffd806a0b1000) at swofp_input+0x1d6 sys/net/switchofp.c:4699 switchwrite(86138,ffff800022d68f60,1) at switchwrite+0x3b0 sys/net/switchctl.c:274 spec_write(ffff800022d68d30) at spec_write+0xd4 sys/kern/spec_vnops.c:310 VOP_WRITE(fffffd8068269020,ffff800022d68f60,1,fffffd807f7c69c0) at VOP_WRITE+0xc6 sys/kern/vfs_vops.c:269 vn_write(fffffd8065bef578,ffff800022d68f60,1) at vn_write+0x199 sys/kern/vfs_vnops.c:405 dofilewritev(ffff800020ab18c8,3,ffff800022d68f60,1,ffff800022d69050) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_pwritev(ffff800020ab18c8,ffff800022d69008,ffff800022d69050) at sys_pwritev+0xb8 sys/kern/vfs_syscalls.c:3269 syscall(ffff800022d690d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022d690d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffffb7,0,5,f9ee1ee5010) at Xsyscall+0x128 end of kernel end trace frame: 0xfa19ca3fe50, count: -16 ddb{1}> show registers rdi 0xffffffff81d8b447 db_enter+0x17 rsi 0x51bd __ALIGN_SIZE+0x41bd rbp 0xffff800022d68870 rbx 0xffff800022d68920 rdx 0x51be __ALIGN_SIZE+0x41be rcx 0xffff800020b5e000 rax 0xffff800020b5e000 r8 0xffffffff813497df kprintf+0x16f r9 0x1 r10 0x25 r11 0x38e54350b91c995b r12 0x3000000008 r13 0xffff800022d68880 r14 0x100 r15 0x1 rip 0xffffffff81d8b448 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022d68860 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=365272 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab0018,0xffff800020ab02a0 process=0xffff800020adce00 user=0xffff800022d64000, vmspace=0xfffffd807f00bb80 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 33301 38849 96099 0 2 0 syz-executor.0 *33301 365272 96099 0 7 0x4000000 syz-executor.0 33301 352209 96099 0 3 0x4000080 fsleep syz-executor.0 41922 158092 97545 0 7 0 syz-executor.1 41922 166257 97545 0 3 0x4000080 fsleep syz-executor.1 41922 67691 97545 0 3 0x4000080 fsleep syz-executor.1 97545 416420 24359 0 3 0x82 nanosleep syz-executor.1 28380 458849 0 0 3 0x14200 bored sosplice 49806 118920 0 0 3 0x14200 acct acct 96099 354698 24359 0 3 0x82 nanosleep syz-executor.0 24359 281126 77435 0 3 0x82 thrsleep syz-fuzzer 24359 290911 77435 0 3 0x4000082 thrsleep syz-fuzzer 24359 97785 77435 0 3 0x4000082 kqread syz-fuzzer 24359 377360 77435 0 3 0x4000082 thrsleep syz-fuzzer 24359 508008 77435 0 3 0x4000082 thrsleep syz-fuzzer 24359 492390 77435 0 3 0x4000082 thrsleep syz-fuzzer 24359 424755 77435 0 3 0x4000082 thrsleep syz-fuzzer 24359 227460 77435 0 3 0x4000082 thrsleep syz-fuzzer 24359 59485 77435 0 3 0x4000082 thrsleep syz-fuzzer 24359 290158 77435 0 3 0x4000082 thrsleep syz-fuzzer 77435 453012 24429 0 3 0x10008a pause ksh 24429 374402 20671 0 3 0x92 select sshd 88952 116051 1 0 3 0x100083 ttyin getty 20671 113885 1 0 3 0x80 select sshd 39990 194950 20368 74 3 0x100092 bpf pflogd 20368 373971 1 0 3 0x80 netio pflogd 11258 391082 81678 73 3 0x100090 kqread syslogd 81678 143042 1 0 3 0x100082 netio syslogd 14100 477675 1 77 3 0x100090 poll dhclient 77402 80112 1 0 3 0x80 poll dhclient 59447 171993 0 0 2 0x14200 zerothread 69429 480492 0 0 3 0x14200 aiodoned aiodoned 1192 191179 0 0 3 0x14200 syncer update 25915 467455 0 0 3 0x14200 cleaner cleaner 62942 15537 0 0 3 0x14200 reaper reaper 33242 443618 0 0 3 0x14200 pgdaemon pagedaemon 91965 369635 0 0 3 0x14200 bored crynlk 24280 182003 0 0 3 0x14200 bored crypto 18999 162306 0 0 3 0x40014200 acpi0 acpi0 95648 475807 0 0 3 0x40014200 idle1 59268 318380 0 0 3 0x14200 bored softnet 47206 346362 0 0 3 0x14200 bored systqmp 18823 374472 0 0 3 0x14200 bored systq 35855 21760 0 0 3 0x40014200 bored softclock 1917 81941 0 0 3 0x40014200 idle0 23019 53105 0 0 3 0x14200 bored smr 1 117653 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 33301 (syz-executor.0) thread 0xffff800020ab18c8 (365272) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8262b2d8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 vn_write+0x42 sys/kern/vfs_vnops.c:390 #2 dofilewritev+0x1b7 sys/kern/sys_generic.c:364 #3 sys_pwritev+0xb8 sys/kern/vfs_syscalls.c:3269 #4 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #4 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #5 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9537 6413K 7048K 78643K 11475 0 0 pcb 13 8K 8K 78643K 122 0 0 rtable 102 3K 4K 78643K 419 0 0 ifaddr 66 14K 14K 78643K 123 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1487 0 0 iov 0 0K 16K 78643K 86 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1224 77K 77K 78643K 1528 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 5K 78643K 4 0 0 VM map 10 5K 5K 78643K 11 0 0 sem 12 0K 0K 78643K 80 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 402 0 0 sigio 0 0K 0K 78643K 2 0 0 proc 60 63K 95K 78643K 512 0 0 subproc 32 2K 2K 78643K 51 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 0K 78643K 4 0 0 in_multi 33 2K 2K 78643K 53 0 0 ether_multi 1 0K 0K 78643K 3 0 0 mrt 0 0K 0K 78643K 6 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 66 291K 291K 78643K 66 0 0 exec 0 0K 1K 78643K 264 0 0 pfkey data 0 0K 4K 78643K 2 0 0 pagedep 1 8K 8K 78643K 1 0 0 inodedep 1 32K 32K 78643K 1 0 0 newblk 1 0K 0K 78643K 1 0 0 VM swap 7 26K 26K 78643K 7 0 0 UVM amap 111 86K 103K 78643K 2369 0 0 UVM aobj 18 3K 3K 78643K 20 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 108 0 0 NDP 14 0K 0K 78643K 34 0 0 temp 185 3560K 3625K 78643K 5912 0 0 kqueue 0 0K 0K 78643K 2 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 17 0 12 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 47 0 45 1 0 1 1 0 8 0 rtentry 112 79 0 38 2 0 2 2 0 8 0 unpcb 120 190 0 180 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 6635 0 6635 1 1 0 1 0 8 0 tcpcb 544 138 0 134 1 0 1 1 0 8 0 inpcb 280 475 0 468 5 3 2 2 0 8 1 rttmr 72 2 0 2 1 0 1 1 0 8 1 nd6 48 8 0 4 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 ppxss 1128 12 0 12 2 1 1 1 0 8 1 pffrag 232 9 0 9 2 1 1 1 0 482 1 pffrnode 88 9 0 9 2 1 1 1 0 8 1 pffrent 40 235 0 235 3 2 1 1 0 8 1 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 44 0 10 1 0 1 1 0 8 0 pfstkey 112 44 0 10 2 0 2 2 0 8 0 pfstate 328 44 0 10 3 0 3 3 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 310 0 97 15 0 15 15 0 8 1 art_table 32 311 0 97 2 0 2 2 0 8 0 art_node 16 78 0 41 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 0 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 75 0 65 1 0 1 1 0 8 0 shmpl 112 18 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2007 0 600 46 0 46 46 0 8 0 ffsino 272 2007 0 600 95 0 95 95 0 8 0 nchpl 144 2810 0 1199 61 0 61 61 0 8 0 uvmvnodes 72 2268 0 0 42 0 42 42 0 8 0 vnodes 208 2268 0 0 120 0 120 120 0 8 0 namei 1024 8114 0 8114 3 2 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 9 0 1 2 0 2 2 0 8 0 vmpool 552 9 0 1 1 0 1 1 0 8 0 scxspl 192 8068 0 8068 13 12 1 7 0 8 1 plimitpl 152 55 0 47 1 0 1 1 0 8 0 sigapl 432 599 0 583 3 1 2 3 0 8 0 futexpl 56 7493 0 7490 1 0 1 1 0 8 0 knotepl 112 107 0 88 1 0 1 1 0 8 0 kqueuepl 104 102 0 99 1 0 1 1 0 8 0 pipepl 112 1594 0 1571 4 2 2 3 0 8 1 fdescpl 488 600 0 583 3 0 3 3 0 8 0 filepl 152 4953 0 4846 9 3 6 7 0 8 1 lockfpl 104 132 0 130 1 0 1 1 0 8 0 lockfspl 48 47 0 45 1 0 1 1 0 8 0 sessionpl 112 19 0 8 1 0 1 1 0 8 0 pgrppl 48 21 0 10 1 0 1 1 0 8 0 ucredpl 96 457 0 448 1 0 1 1 0 8 0 zombiepl 144 583 0 583 3 2 1 1 0 8 1 processpl 896 617 0 583 4 0 4 4 0 8 0 procpl 632 1540 0 1493 6 1 5 5 0 8 1 sosppl 128 3 0 3 1 1 0 1 0 8 0 sockpl 384 721 0 702 7 3 4 4 0 8 2 mcl64k 65536 14 0 0 2 0 2 2 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 6 0 0 1 0 1 1 0 8 0 mcl4k 4096 10 0 0 2 0 2 2 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 188 0 0 23 0 23 23 0 8 0 mtagpl 80 20 0 0 1 0 1 1 0 8 0 mbufpl 256 313 0 0 17 0 17 17 0 8 0 bufpl 256 7253 0 1315 372 0 372 372 0 8 0 anonpl 16 88877 0 74869 89 3 86 87 0 124 15 amapchunkpl 152 4000 0 3883 14 7 7 12 0 158 1 amappl16 192 3493 0 2501 65 9 56 61 0 8 6 amappl14 176 217 0 215 2 1 1 1 0 8 0 amappl13 168 3 0 2 1 0 1 1 0 8 0 amappl12 160 17 0 14 2 1 1 1 0 8 0 amappl11 152 232 0 214 1 0 1 1 0 8 0 amappl10 144 19 0 13 1 0 1 1 0 8 0 amappl9 136 629 0 623 1 0 1 1 0 8 0 amappl8 128 175 0 149 1 0 1 1 0 8 0 amappl7 120 48 0 41 1 0 1 1 0 8 0 amappl6 112 244 0 232 1 0 1 1 0 8 0 amappl5 104 153 0 139 1 0 1 1 0 8 0 amappl4 96 860 0 828 1 0 1 1 0 8 0 amappl3 88 125 0 119 1 0 1 1 0 8 0 amappl2 80 3826 0 3745 4 2 2 3 0 8 0 amappl1 72 23166 0 22694 26 16 10 20 0 8 0 amappl 80 1812 0 1766 2 0 2 2 0 84 0 dma4096 4096 1 0 1 1 1 0 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 17 0 17 1 1 0 1 0 8 0 aobjpl 64 19 0 2 1 0 1 1 0 8 0 uaddrrnd 24 609 0 583 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 609 0 583 1 0 1 1 0 8 0 vmmpekpl 168 11468 0 11433 2 0 2 2 0 8 0 vmmpepl 168 81394 0 79133 179 49 130 130 0 357 31 vmsppl 368 599 0 583 2 0 2 2 0 8 0 pdppl 4096 1225 0 1176 8 1 7 7 0 8 0 pvpl 32 248061 0 230617 224 19 205 206 0 265 38 pmappl 232 608 0 584 2 0 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 550 0 6 16 0 16 16 0 8 0