Subject: Re: proposed fix for stray ifnet pointers from interface deletion
To: Greg Troxel <gdt@ir.bbn.com>
From: Bill Studenmund <wrstuden@netbsd.org>
List: tech-net
Date: 07/18/2005 11:59:53
--5mCyUwZo2JvN/JJP
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Jul 12, 2005 at 02:28:05PM -0400, Greg Troxel wrote:
> I wrote earlier about crashes due to stray ifnet pointers and
> interface deletion (pppd), and filed a PR:

The real fix for this is to add reference counts. That way we really know
when no one else has a copy of the pointer. Way back when I made the
initial patch for deleting interfaces, I added code so that we added and
deleted references, and only deleted the innards of an ifnet (and ifaddr) =
=20
when the count went to zero. Thus we should be able to avoid this whole
class of errors.

Take care,

Bill

--5mCyUwZo2JvN/JJP
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)

iD8DBQFC2/wpWz+3JHUci9cRAmj+AJ9blyJ26OSU3tFL1XR8AcqyUn18jgCeLFrD
dJYSUI1u1WI8qOUoeFaOy4s=
=7yqU
-----END PGP SIGNATURE-----

--5mCyUwZo2JvN/JJP--