CFT: vr(4)

Bjoern A. Zeeb bzeeb-lists at lists.zabbadoz.net
Mon Oct 8 00:05:12 PDT 2007


On Mon, 8 Oct 2007, Pyun YongHyeon wrote:

> It seems that there had been several stability issues in vr(4).
> Here is mimimal patch that make vr(4) work reliably under heavy
> network loads. The patch does the following:
> - Always check writability of mbuf before padding and make a
>   writable copy of the mbuf if mbuf is marked as read-only.
> - Before padding is done check remaining bytes such that it can
>   safely extend buffer size of the mbuf.
> - Before padding always check the return value of m_defrag(9).
> - Zero out pad space to avoid leaking data.
>
> If you have vr(4) hardware please give it spin and let me know
> the result.

Had you seen wpaul's posting to net@ a few weeks ago. That had a patch
attached as well. What about that?

-- 
Bjoern A. Zeeb                                 bzeeb at Zabbadoz dot NeT
Software is harder than hardware  so better get it right the first time.


More information about the freebsd-current mailing list