From mboxrd@z Thu Jan 1 00:00:00 1970 From: Al Viro Subject: Re: [PATCH] vfs: fix race in rcu lookup of pruned dentry Date: Wed, 20 Jul 2011 01:04:21 +0100 Message-ID: <20110720000421.GU11013@ZenIV.linux.org.uk> References: <20110718194703.GI11013@ZenIV.linux.org.uk> <20110719234550.GR11013@ZenIV.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Hugh Dickins , Andrew Morton , Nick Piggin , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org To: Linus Torvalds Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Tue, Jul 19, 2011 at 04:56:51PM -0700, Linus Torvalds wrote: > On Tue, Jul 19, 2011 at 4:45 PM, Al Viro wrote: > > > > You know what... ?I doubt that you want to mess with ->d_seq checks here. > > I'm ok with doing just the "move *inode setting" patch. > > And if we really don't even allow renames of those mounted things, I > guess the sequence number isn't required. See vfs_rename_{dir,other}: error = -EBUSY; if (d_mountpoint(old_dentry) || d_mountpoint(new_dentry)) goto out; in both, before even trying to call the method. Traditional on all Unices I've ever seen...