Re: [PATCH] ext4: only update tune mount options when requested
From: Theodore Ts'o
Date: Fri Oct 09 2026 - 04:59:02 EST
On Mon, 10 Aug 2026 23:12:00 +0800, guzebing wrote:
> EXT4_IOC_SET_TUNE_SB_PARAM uses set_flags to indicate which superblock
> fields the caller wants to update. ext4_sb_setparams() checks set_flags
> before updating the other supported fields, but always copied mount_opts
> into the on-disk s_mount_opts field.
>
> As a result, callers that do not set EXT4_TUNE_FL_MOUNT_OPTS can still
> clear or alter the on-disk default mount options through their unused
> mount_opts buffer. This can affect subsequent mounts by changing the
> filesystem's stored default mount options.
>
> [...]
Applied, thanks!
[1/1] ext4: only update tune mount options when requested
commit: 981eec6c300bd4e84ffac8f3c28b762d00f13e9c
Best regards,
--
Theodore Ts'o <tytso@xxxxxxx>