]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mnt: fs_fully_visible test the proper mount for MNT_LOCKED
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 27 May 2016 19:50:05 +0000 (14:50 -0500)
committerDhaval Giani <dhaval.giani@oracle.com>
Fri, 20 Jan 2017 22:21:55 +0000 (17:21 -0500)
commit545578e8d3d863026da4d1274e0ce34c34e2fdf0
tree768280014a52ed3059fe9c92221a7cc8f9014900
parent71f3d3843cf6f08497b305ea7ed5e50ec2aa167f
mnt: fs_fully_visible test the proper mount for MNT_LOCKED

Orabug: 25256942

[ Upstream commit d71ed6c930ac7d8f88f3cef6624a7e826392d61f ]

MNT_LOCKED implies on a child mount implies the child is locked to the
parent.  So while looping through the children the children should be
tested (not their parent).

Typically an unshare of a mount namespace locks all mounts together
making both the parent and the slave as locked but there are a few
corner cases where other things work.

Cc: stable@vger.kernel.org
Fixes: ceeb0e5d39fc ("vfs: Ignore unlocked mounts in fs_fully_visible")
Reported-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
(cherry picked from commit f530dd0176f24aa31dd76672777de06f735d7bdc)
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
fs/namespace.c