opensubscriber
   Find in this group all groups
 
Unknown more information…

j : jfs-discussion@lists.sourceforge.net 29 November 2011 • 7:58PM -0500

Re: [Jfs-discussion] [PATCH 1/1] fix d_revalidate oopsen on NFS exports
by Myklebust, Trond

REPLY TO AUTHOR
 
REPLY TO GROUP




> -----Original Message-----
> From: Chris Dunlop [mailto:chris@onth...]
> Sent: Tuesday, November 29, 2011 3:25 AM
> To: linux-fsdevel@vger...; linux-kernel@vger...; Eric
Van
> Hensbergen; Ron Minnich; Latchesar Ionkov; David Howells; Jan Harkes;
> maintainer:CODA FILE SYSTEM; Dave Kleikamp; Petr Vandrovec; Myklebust,
> Trond; Greg Kroah-Hartman; Al Viro;
v9fs-developer@list...;
> linux-afs@list...; codalist@TELE...; jfs-
> discussion@list...; linux-nfs@vger...
> Subject: Re: [PATCH 1/1] fix d_revalidate oopsen on NFS exports
>
> Hi,
>
> I haven't seen any response to this patch which fixes an Oops in
> d_revalidate. I hit this using NFS, but various other file systems
look to be
> likewise vulnerable, hence the broadness of the patch. The sequence
leading
> to the Oops is:
>
> lookup_one_len() [fs/namei.c]
>    calls __lookup_hash() [fs/namei.c] with nd == NULL,
>       which can then call the file system specific d_revalidate(),
passing in nd ==
> NULL
>          which will then Oops if nd is used without checking

That's because you are "fixing" the wrong bug and if you'd checked the
list archives, you'd know that this has already been discussed several
times...

By allowing stacked filesystems to pass nd==NULL (the VFS doesn't do
this), you're circumventing  the lookup intent mechanisms and will hit
all sorts of problems further down the road. If you want to fix the
problem, then please fix the broken stacking filesystems to stop using
lookup_one_len...

Trond

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Jfs-discussion mailing list
Jfs-discussion@list...
https://lists.sourceforge.net/lists/listinfo/jfs-discussion

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.