[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230403-hardener-elevate-44493c0e466b@brauner>
Date: Mon, 3 Apr 2023 13:04:58 +0200
From: Christian Brauner <brauner@...nel.org>
To: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Christian Brauner <brauner@...nel.org>,
linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [GIT PULL] vfs fixes
Hey Linus,
/* Summary */
When a mount or mount tree is made shared the vfs allocates new peer
group ids for all mounts that have no peer group id set. Only mounts
that aren't marked with MNT_SHARED are relevant here as MNT_SHARED
indicates that the mount has fully transitioned to a shared mount. The
peer group id handling is done with namespace lock held.
On failure, the peer group id settings of mounts for which a new peer
group id was allocated need to be reverted and the allocated peer group
id freed. The cleanup_group_ids() helper can identify the mounts to
cleanup by checking whether a given mount has a peer group id set but
isn't marked MNT_SHARED. The deallocation always needs to happen with
namespace lock held to protect against concurrent modifications of the
propagation settings.
This pull request contains a fix for the one place where the namespace
lock was dropped before calling cleanup_group_ids().
/* Testing */
clang: Ubuntu clang version 15.0.6
gcc: gcc (Ubuntu 12.2.0-3ubuntu1) 12.2.0
All patches are based on v6.3-rc4 and have been sitting in linux-next.
No build failures or warnings were observed. All old and new tests in
fstests, selftests, and LTP pass without regressions.
/* Conflicts */
At the time of creating this PR no merge conflicts were reported from
linux-next and no merge conflicts showed up doing a test-merge with
current mainline.
The following changes since commit 197b6b60ae7bc51dd0814953c562833143b292aa:
Linux 6.3-rc4 (2023-03-26 14:40:20 -0700)
are available in the Git repository at:
ssh://git@...olite.kernel.org/pub/scm/linux/kernel/git/vfs/idmapping.git tags/vfs.misc.fixes.v6.3-rc6
for you to fetch changes up to cb2239c198ad9fbd5aced22cf93e45562da781eb:
fs: drop peer group ids under namespace lock (2023-03-31 12:13:37 +0200)
Please consider pulling these changes from the signed vfs.misc.fixes.v6.3-rc6 tag.
Thanks!
Christian
----------------------------------------------------------------
vfs.misc.fixes.v6.3-rc6
----------------------------------------------------------------
Christian Brauner (1):
fs: drop peer group ids under namespace lock
fs/namespace.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Powered by blists - more mailing lists