From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleg Nesterov Subject: Re: [REVIEW][PATCH 3/3] vfs: Fix a regression in mounting proc Date: Wed, 27 Nov 2013 19:10:24 +0100 Message-ID: <20131127181024.GB29379@redhat.com> References: <20131118031932.GA17621@mail.hallyn.com> <52899D09.5080202@cn.fujitsu.com> <20131118140830.GA22075@mail.hallyn.com> <20131118180134.GA24156@mail.hallyn.com> <87k3g5gnuv.fsf@xmission.com> <20131126181043.GA25492@mail.hallyn.com> <87siui1z1g.fsf_-_@xmission.com> <87pppmzoin.fsf_-_@xmission.com> <20131127161300.GA24773@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Andy Lutomirski Cc: Aditya Kali , Containers , Linux FS Devel , "Eric W. Biederman" List-Id: containers.vger.kernel.org On 11/27, Andy Lutomirski wrote: > > On Wed, Nov 27, 2013 at 8:13 AM, Oleg Nesterov wrote: > > To all: sorry for noise, I can't comment this patch. > > > > > > But Eric, could you please help me to understand? I am totally confused. > > > > So, afaics, initially (even after MS_KERNMOUNT) fs_fully_visible("proc") > > should return false. > > > > After the normal "mout -t proc none /proc/" it becomes true. > > > > And it is still true after, say, "mount -t ramfs none /proc/sys" because > > "ls -ld /proc/sys" shows ->i_nlink == 1. > > Grr. mount -t ramfs none /proc/sys should make proc be not "fully visible". This was one of the reasons for my question ;) Oleg.