Re: [patch-2.4.0-test5-pre1] nullfs and forced umount

From: Jan Harkes (jaharkes@cs.cmu.edu)
Date: Tue Jul 18 2000 - 15:59:01 EST


On Tue, Jul 18, 2000 at 07:51:24PM +0200, Manfred Spraul wrote:
> Tigran Aivazian wrote:
> > +
> > + /* flush and release fs-specific resources */
> > + if (fop->flush)
> > + fop->flush(file);
> > + if (fop->release)
> > + fop->release(inode, file);
>
> This one could cause crashes if another thread is within kernel space.
> E.g. coda frees allocated memory in coda_release.

Our userspace code only looks at the fsuid in the cred structure. We can
therefore avoid freeing the credentials in coda_release by using
f->f_uid/f_gid to partially reconstruct the credentials of the original
opener.

However, this might also affect other filesystems at some point.

Jan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Jul 23 2000 - 21:00:11 EST