Date: Thu, 19 Mar 2015 17:31:18 +0100 From: Alexandre Martins <alexandre.martins@stormshield.eu> To: freebsd-current@freebsd.org Subject: Mbuf leak in if_lagg.c Message-ID: <1708955.mQ2X6OUmTD@pc-alex>
next in thread | raw e-mail | index | archive | help
--nextPart2478880.Cgndx6u02g Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="us-ascii" Hi ! I found a leak of mbuf in the lagg driver : https://svnweb.freebsd.org/base/head/sys/net/if_lagg.c?view=3Dannotate#= l1672 =2D=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- m =3D (lp->lp_detaching =3D=3D 0) ? lagg_proto_input(sc, lp, m) : NULL;= =2D=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- If lp_detaching is non 0, the mbuf pointer is set to NULL without m_fre= em it. Can you look at this ? Regards =2D-=20 Alexandre Martins STORMSHIELD --nextPart2478880.Cgndx6u02g Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Disposition: attachment; filename="smime.p7s" Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIIhDCCBIYw ggJuoAMCAQICBQDbzPDtMA0GCSqGSIb3DQEBCwUAMEgxCzAJBgNVBAYTAkZSMRQwEgYDVQQKDAtT VE9STVNISUVMRDEjMCEGA1UEAwwaU3Rvcm1zaGllbGQgUm9vdCBBdXRob3JpdHkwHhcNMTQwOTA0 MTUwNzEwWhcNMjQwOTAxMTUwNzEwWjBJMQswCQYDVQQGEwJGUjEUMBIGA1UECgwLU1RPUk1TSElF TEQxJDAiBgNVBAMMG1N0b3Jtc2hpZWxkIFVzZXJzIEF1dGhvcml0eTCCASIwDQYJKoZIhvcNAQEB BQADggEPADCCAQoCggEBAMKHBaAL/pVYovuOBYjd4DaxW9F07C4dxexEABdVZ2UwLTKCDu7jkTvw aECel2XxBsi7vH9DbM6roq22ynAMQiOSgwtNmeAsu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ndx6u02g--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1708955.mQ2X6OUmTD>