From: Pavel Machek Subject: Re: [PATCH 0/2] vfs: ensure that dentries are revalidated on open (try #2) Date: Wed, 18 Nov 2009 05:19:06 +0100 Message-ID: <20091118041906.GB1395@ucw.cz> References: <1257870456-31188-1-git-send-email-jlayton@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-nfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, ebiederm-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org, adobriyan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, viro-3bDd1+5oDREiFSDQTTA3OLVCufUGDwFn@public.gmane.org, jamie-yetKDKU6eevNLxjTenLetw@public.gmane.org To: Jeff Layton Return-path: Content-Disposition: inline In-Reply-To: <1257870456-31188-1-git-send-email-jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> Sender: linux-nfs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-fsdevel.vger.kernel.org Hi! > This is the second attempt to fix this problem. The first one attempted > to fix this in procfs, but Eric Biederman pointed out that file bind > mounts have a similar problem. This set attempts to fix the issue at a > higher level, in the generic VFS layer. > > In certain situations, when it knows that they are valid, the path > walking code will skip revalidating dentries that it finds in the cache. > This causes problems with filesystems such as NFSv4 and CIFS that depend > on the d_revalidate routine to do opens during lookup. ...and it allows bypassing directory permissions. Could we fix both here? Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html