]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
exfat: fix remount failure in different process environments
authorYuezhang Mo <Yuezhang.Mo@sony.com>
Fri, 28 Nov 2025 09:51:10 +0000 (17:51 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jan 2026 12:09:47 +0000 (13:09 +0100)
commitc4034574f87a4a1f092b63c17b209b3dd8bf7bcd
tree909fb97ab7442e422cd40037914346d70d14ee46
parentc7b986adc9e9336066350542ac5a2005d305ae78
exfat: fix remount failure in different process environments

[ Upstream commit 51fc7b4ce10ccab8ea5e4876bcdc42cf5202a0ef ]

The kernel test robot reported that the exFAT remount operation
failed. The reason for the failure was that the process's umask
is different between mount and remount, causing fs_fmask and
fs_dmask are changed.

Potentially, both gid and uid may also be changed. Therefore, when
initializing fs_context for remount, inherit these mount options
from the options used during mount.

Reported-by: kernel test robot <oliver.sang@intel.com>
Closes: https://lore.kernel.org/oe-lkp/202511251637.81670f5c-lkp@intel.com
Signed-off-by: Yuezhang Mo <Yuezhang.Mo@sony.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/exfat/super.c