[GIT PULL] fs fix for v5.19-rc3

From: Christian Brauner
Date: Wed Jun 15 2022 - 06:39:39 EST


Hey Linus,

/* Summary */
This fixes an issue where we fail to change the group of a file when the caller
owns the file and is a member of the group to change to. This is only relevant
on idmapped mounts. This has originally been reported against [2]. There's a
detailed description in the commit message and regression tests have been added
to xfstests at [1].

Link: https://lore.kernel.org/fstests/20220615092826.2333847-1-brauner@xxxxxxxxxx [1]
Link: Link: https://github.com/lxc/lxd/issues/10537 [2]

/* Testing */
All patches are based on v5.19-rc1 and have been sitting in linux-next. No
build failures or warnings were observed. The fstests, ltp, and associated
selftests 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 f2906aa863381afb0015a9eb7fefad885d4e5a56:

Linux 5.19-rc1 (2022-06-05 17:18:54 -0700)

are available in the Git repository at:

git@xxxxxxxxxxxxxxxxxxx:pub/scm/linux/kernel/git/brauner/linux tags/fs.fixes.v5.19-rc3

for you to fetch changes up to 168f912893407a5acb798a4a58613b5f1f98c717:

fs: account for group membership (2022-06-14 12:18:47 +0200)

Please consider pulling these changes from the signed fs.fixes.v5.19-rc3 tag.

Thanks!
Christian

----------------------------------------------------------------
fs.fixes.v5.19-rc3

----------------------------------------------------------------
Christian Brauner (1):
fs: account for group membership

fs/attr.c | 26 ++++++++++++++++++++------
1 file changed, 20 insertions(+), 6 deletions(-)