Mbuf leak in if_lagg.c

Andrey V. Elsukov bu7cher at yandex.ru
Thu Mar 26 20:12:55 UTC 2015


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.

-- 
WBR, Andrey V. Elsukov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: if_lagg.diff
Type: text/x-patch
Size: 480 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20150326/948449d4/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 538 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20150326/948449d4/attachment.sig>


More information about the freebsd-current mailing list