Date: Sun, 20 Jul 2003 17:10:03 +0200 From: Pawel Jakub Dawidek <nick@garage.freebsd.pl> To: Divacky Roman <xdivac02@stud.fit.vutbr.cz> Cc: freebsd-current@freebsd.org Subject: Re: possible unionfs bug Message-ID: <20030720151003.GH437@garage.freebsd.pl> In-Reply-To: <20030720130221.GA39671@stud.fit.vutbr.cz> References: <20030720130221.GA39671@stud.fit.vutbr.cz>
next in thread | previous in thread | raw e-mail | index | archive | help
--dCSxeJc5W8HZXZrD Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jul 20, 2003 at 03:02:21PM +0200, Divacky Roman wrote: +> I might be wrong but this: +>=20 +> free(mp->mnt_data, M_UNIONFSMNT); /* XXX */ +> mp->mnt_data =3D 0; +> =09 +> seems to me wrong.... and might cause crashes etc. +> am I correct or wrong? Could you describe scenario when this could be dangerous? Or why do you think it is? This memory is allocated while mounting unionfs file system, so it is quite natural to free this memory while unmounting file system. --=20 Pawel Jakub Dawidek pawel@dawidek.net UNIX Systems Programmer/Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am! http://cerber.sourceforge.net --dCSxeJc5W8HZXZrD Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iQCVAwUBPxqwyz/PhmMH/Mf1AQEYFwQAgB2Y6VJdgMWjN496a8c0rlDINiZyHU/B m55ZEMOCxWUR607h4YYWvFiGTKT2VOhkDO0O+00hVbUldpG2OhOtvfQBr0N6wzvC ESRVMTgZuTN4+PgP6THRxp4d4S6H/c0vOqlitxs5WNqkg2LgzYES5QuoROiqyOtv +k+4sVuAHx0= =39OX -----END PGP SIGNATURE----- --dCSxeJc5W8HZXZrD--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030720151003.GH437>