possible unionfs bug

Pawel Jakub Dawidek nick at garage.freebsd.pl
Sun Jul 20 08:09:56 PDT 2003


On Sun, Jul 20, 2003 at 03:02:21PM +0200, Divacky Roman wrote:
+> I might be wrong but this:
+> 
+>         free(mp->mnt_data, M_UNIONFSMNT);       /* XXX */
+> 	mp->mnt_data = 0;
+> 	
+> 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.

-- 
Pawel Jakub Dawidek                       pawel at dawidek.net
UNIX Systems Programmer/Administrator     http://garage.freebsd.pl
Am I Evil? Yes, I Am!                     http://cerber.sourceforge.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 305 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20030720/9ee4620b/attachment.bin


More information about the freebsd-current mailing list