From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Morton Subject: Re: [Bugme-new] [Bug 15909] New: open("a/", O_NOFOLLOW) fails with ELOOP if "a" is a symbolic link to a directory. Date: Thu, 6 May 2010 14:30:02 -0700 Message-ID: <20100506143002.0381501b.akpm@linux-foundation.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: bugzilla-daemon@bugzilla.kernel.org, bugme-daemon@bugzilla.kernel.org, tolzmann@molgen.mpg.de, linux-fsdevel@vger.kernel.org To: Al Viro , Christoph Hellwig Return-path: Received: from smtp1.linux-foundation.org ([140.211.169.13]:52832 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752104Ab0EFVb2 (ORCPT ); Thu, 6 May 2010 17:31:28 -0400 In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-ID: (switched to email. Please respond via emailed reply-to-all, not via the bugzilla web interface). On Wed, 5 May 2010 13:01:22 GMT bugzilla-daemon@bugzilla.kernel.org wrote: > https://bugzilla.kernel.org/show_bug.cgi?id=15909 > > Summary: open("a/",O_NOFOLLOW) fails with ELOOP if "a" is a > symbolic link to a directory. > Product: File System > Version: 2.5 > Kernel Version: 2.6.34-rc6 > Platform: All > OS/Version: Linux > Tree: Mainline > Status: NEW > Severity: high > Priority: P1 > Component: Other > AssignedTo: fs_other@kernel-bugs.osdl.org > ReportedBy: tolzmann@molgen.mpg.de > Regression: No > > > mkdir c > ln -s c a > > f=open("a/",O_RDONLY+O_NOFOLLOW) > > fails with ELOOP. However, this open should behave like open("a/.") not like > open("a") according to path_resolution(7). In kernel version 2.6.32 the open > worked as documented. > > On a higher level this bug makes > > find a/ > > to fail. > It sounds like this 2.6.32->2.6.34-rc6 regression could have pretty serious ramifications for some users. Does anyone know whcih commit might have caused it?