Date: Wed, 9 Mar 2005 08:02:41 -0800 From: Brooks Davis <brooks@one-eyed-alien.net> To: Gleb Smirnoff <glebius@freebsd.org> Cc: freebsd-bugs@freebsd.org Subject: Re: kern/78227: Destroying a network interface leaks kernel memory Message-ID: <20050309160241.GB30109@odin.ac.hmc.edu> In-Reply-To: <200503091520.j29FK5EF041922@freefall.freebsd.org> References: <200503091520.j29FK5EF041922@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--K8nIJk4ghYZn606h Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > I like OpenBSD's solution. Please look at the attached patch; it > adds in_multi pointer into in_ifaddr, assigns it return value of > in_addmulti() and calls in_delmulti() when removing address. This looks fine to me. > P.S. I suspect we also have a memory leak when interface is joined a > multicast group and then destroyed. Actually, I believe it's a panic. :( I haven't had a chance to look at it much, but I put what I found in kern/77665. It's pretty easy to trigger if you have a pccard/cardbus nic. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --K8nIJk4ghYZn606h Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFCLx4gXY6L6fI4GtQRAuhFAJwIxR6eDe0bqvLTBD2fRv5Tqf48LgCgrL7U PnwjYhIFmkrTLthbiKiFOWo= =2ho7 -----END PGP SIGNATURE----- --K8nIJk4ghYZn606h--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050309160241.GB30109>