Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Mar 2008 13:15:42 +0200
From:      Kostik Belousov <kostikbel@gmail.com>
To:        Roman Divacky <rdivacky@freebsd.org>
Cc:        current@freebsd.org
Subject:   Re: shared lock instead of exclusive in set_rootvnode
Message-ID:  <20080304111542.GA57756@deviant.kiev.zoral.com.ua>
In-Reply-To: <20080303200946.GA79061@freebsd.org>
References:  <20080303200946.GA79061@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--ai98h/boSX0xCcXh
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Mar 03, 2008 at 09:09:46PM +0100, Roman Divacky wrote:
> hi
>=20
> in set_rootvnode() there is=20
>=20
> p->p_fd->fd_cdir =3D rootvnode;
> p->p_fd->fd_rdir =3D rootvnode;
>=20
> protected just by FILEDESC_SLOCK(), I dont think this is correct
> although it might be benign as this is used only during boot.
>=20
> still, if it's not correct it should be fixed
>=20
> comments?

Seems right. Did you boot with patched kernel ?

--ai98h/boSX0xCcXh
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (FreeBSD)

iEYEARECAAYFAkfNL10ACgkQC3+MBN1Mb4iP6ACgu5DsrsOnvFOTxFh+6PS6ywlG
YuUAn0qBUwzlf13ur9sfs9k99ONVJgQg
=AK9V
-----END PGP SIGNATURE-----

--ai98h/boSX0xCcXh--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080304111542.GA57756>