linux/fs/exfat
Yuezhang Mo c4034574f8 exfat: fix remount failure in different process environments
[ Upstream commit 51fc7b4ce1 ]

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>
History 2026-01-19 13:09:47 +01:00
..
balloc.c exfat: fix soft lockup in exfat_clear_bitmap 2025-03-13 12:51:07 +01:00
cache.c exfat: fix use of uninitialized spinlock on error path 2020-10-07 14:27:13 +09:00
dir.c exfat: fix the infinite loop in exfat_readdir() 2025-01-23 17:15:48 +01:00
exfat_fs.h exfat: fix soft lockup in exfat_clear_bitmap 2025-03-13 12:51:07 +01:00
exfat_raw.h exfat: fix shift-out-of-bounds in exfat_fill_super() 2021-02-22 09:55:13 +09:00
fatent.c exfat: limit log print for IO error 2025-12-07 06:09:24 +09:00
file.c exfat: fix inode->i_blocks for non-512 byte sector size device 2023-03-10 09:39:58 +01:00
inode.c exfat: fix inode->i_blocks for non-512 byte sector size device 2023-03-10 09:39:58 +01:00
Kconfig exfat: Improve wording of EXFAT_DEFAULT_IOCHARSET config option 2020-06-09 16:48:39 +09:00
Makefile exfat: add Kconfig and Makefile 2020-03-05 21:00:40 -05:00
misc.c exfat: write multiple sectors at once 2020-08-12 08:31:11 +09:00
namei.c exfat: fix uninit-value in __exfat_get_dentry_set 2024-12-14 19:51:14 +01:00
nls.c exfat: fix double free in delayed_free 2025-06-27 11:05:28 +01:00
super.c exfat: fix remount failure in different process environments 2026-01-19 13:09:47 +01:00