Request to cherry-pick 01ea173e103edd5ec41acec65b9261b87e123fc2 to v5.10

From: Varsha Teratipally
Date: Tue Sep 06 2022 - 14:37:06 EST


Hi all,

Commit 01ea173e103edd5ec41acec65b9261b87e123fc2 (upstream: xfs: fix up
non-directory creation in SGID directories) fixes an issue where in xfs
sometimes, a local user could create files with an unitended group
permissions as an owner and execution where a directory is SGID and belongs to a certain group and is writable by a user who is not a member of this group and seems like a good candidate for the v5.10 stable tree given that 5.10 is used in versions of debian, ubuntu.

This patch applies cleanly. Let me know what you think