]> git.ipfire.org Git - thirdparty/kernel/linux.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)
committerNamjae Jeon <linkinjeon@kernel.org>
Wed, 3 Dec 2025 01:00:17 +0000 (10:00 +0900)
commit51fc7b4ce10ccab8ea5e4876bcdc42cf5202a0ef
tree213860d787d5c4c2fcb46929f84a75a831db23e1
parentd70a5804c563b5e34825353ba9927509df709651
exfat: fix remount failure in different process environments

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>
fs/exfat/super.c