]> 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:11:46 +0000 (13:11 +0100)
commit991844761bf8e0ad665b2b2ce7d55e28d00dfd74
tree18b24c2aecf5ab7d4ebf452867286d69b96fc09c
parent1d56025a3af50db0f3da2792f41eb9943eee5324
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