Subject: Re: spec_poll vs. revoke
To: Jed Davis <jdev@panix.com>
From: Bill Studenmund <wrstuden@netbsd.org>
List: tech-kern
Date: 08/22/2006 20:29:03
--6WlEvdN9Dv0WHSBl
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Tue, Aug 22, 2006 at 07:29:43PM -0400, Jed Davis wrote:
> spec_poll() appears to have a race condition against revocation of the
> device in question; I haven't been able to reproduce this in a useful
> manner, but I've twice had a host panic because it dereferenced a null
> v_specinfo due to someone's typing an EOF on the console (and even
> managed to get a core one of those times).
>=20
> I notice that spec_ioctl() was corrected for a similar problem in
> r1.83 of spec_vnops.c. So, is there any reason I shouldn't attempt to
> apply a similar fix to spec_poll()?
Please do so.
Take care,
Bill
--6WlEvdN9Dv0WHSBl
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (NetBSD)
iD8DBQFE68t/Wz+3JHUci9cRAmcuAJ43jxM2PytHp6p+DxvbE8xeLScWLgCeOiNx
T6wcEGV15wKI+gxGJOiahVc=
=aOEg
-----END PGP SIGNATURE-----
--6WlEvdN9Dv0WHSBl--