Re: [patch 5/9] unprivileged mounts: allow unprivileged bind mounts

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Miklos Szeredi <miklos@...>
Cc: <akpm@...>, <hch@...>, <serue@...>, <viro@...>, <ebiederm@...>, <kzak@...>, <linux-fsdevel@...>, <containers@...>, <util-linux-ng@...>, <linux-kernel@...>
Date: Tuesday, January 8, 2008 - 2:26 pm

On Tue, 2008-01-08 at 12:35 +0100, Miklos Szeredi wrote:

I think there's a little race here.  We could have several users racing
to get to this point when nr_user_mounts==max_user_mounts-1.  One user
wins the race and gets their mount reserved.  The others get the error
out of reserve_user_mount(), and return.

But, the winner goes on to error out on some condition further down in
clone_mnt() and never actually instantiates the mount.

Do you think this is a problem?

I think just about the one solution is to block new mounters on a
sleepable lock until the race winner actually finishes their mount
operation.  

-- Dave

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [patch 5/9] unprivileged mounts: allow unprivileged bind..., Dave Hansen, (Tue Jan 8, 2:26 pm)
Re: [patch 5/9] unprivileged mounts: allow unprivileged bind..., Szabolcs Szakacsits, (Tue Jan 8, 4:44 pm)