From: Linus Torvalds Subject: Re: [PATCH] vfs: Fix O_NOFOLLOW behavior for paths with trailing slashes Date: Thu, 13 May 2010 08:24:59 -0700 (PDT) Message-ID: References: <1273747977-4579-1-git-send-email-jack@suse.cz> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: LKML , linux-fsdevel@vger.kernel.org, stable@kernel.org, Andrew Morton , Al Viro To: Jan Kara Return-path: In-Reply-To: <1273747977-4579-1-git-send-email-jack@suse.cz> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Thu, 13 May 2010, Jan Kara wrote: > > According to specification > mkdir d; ln -s d a; open("a/", O_NOFOLLOW | O_RDONLY) > should return success but currently it did return ELOOP. Fix the code to ignore > O_NOFOLLOW in case the provided path has trailing slashes. This is a regression > caused by path lookup cleanup patch series. > > CC: stable@kernel.org Hmm? Is this correct? Isn't the bug introduced in this merge window, and thus not relevant for stable? Linus