Re: possible unionfs bug

From: Pawel Jakub Dawidek <nick_at_garage.freebsd.pl>
Date: Sun, 20 Jul 2003 17:10:03 +0200
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

Received on Sun Jul 20 2003 - 06:09:55 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:15 UTC