Mbuf leak in if_lagg.c

Alexandre Martins alexandre.martins at stormshield.eu
Fri Mar 27 12:10:17 UTC 2015


Le jeudi 26 mars 2015, 23:10:49 Andrey V. Elsukov a écrit :
> On 26.03.2015 22:42, Andrey V. Elsukov wrote:
> >> If lp_detaching is non 0, the mbuf pointer is set to NULL without m_freem
> >> it.
> >> 
> >> Can you look at this ?
> > 
> > Hi,
> > 
> > what you thing about this patch?
> > lp_detaching can be non zero in case of parent interface departure.
> > So I don't see the reason to call ETHER_BPF_MTAP() in this case.
> 
> Now I see the reason - to capture all received packets before interface
> departure. New is attached.

Sounds good for me :)

-- 
Alexandre Martins
STORMSHIELD

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2757 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20150327/8b4c578c/attachment.bin>


More information about the freebsd-current mailing list