[Devel] [PATCH hci-8.2 1/8] ms/ext4: avoid potential buffer over-read in parse_apply_sb_mount_options()
no-reply at sashiko.virtuozzo.com
no-reply at sashiko.virtuozzo.com
Thu Nov 19 15:07:43 MSK 2026
> From: Theodore Ts'o <tytso at mit.edu>
>
> Unlike other strings in the ext4 superblock, we rely on tune2fs to
> make sure s_mount_opts is NUL terminated. Harden
> parse_apply_sb_mount_options() by treating s_mount_opts as a potential
> __nonstring.
>
> Cc: stable at vger.kernel.org
> Fixes: 8b67f04ab9de ("ext4: Add mount options in superblock")
> Reviewed-by: Jan Kara <jack at suse.cz>
> Reviewed-by: Darrick J. Wong <djwong at kernel.org>
> Signed-off-by: Theodore Ts'o <tytso at mit.edu>
> Message-ID: <20250916-tune2fs-v2-1-d594dc7486f0 at mit.edu>
> Signed-off-by: Theodore Ts'o <tytso at mit.edu>
> (cherry picked from commit 8ecb790ea8c3fc69e77bace57f14cf0d7c177bd8)
>
> https://virtuozzo.atlassian.net/browse/VSTOR-155988
> Feature: fix ms/ext4
>
> Signed-off-by: Denis V. Lunev <den at openvz.org>
Sashiko has reviewed this patch and found no issues.
Carry the trailer below into the next revision and Sashiko will not review this patch again.
Reviewed-by: Sashiko <no-reply at sashiko.virtuozzo.com>
--
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261119120325.792064-1-den@openvz.org?part=1
More information about the Devel
mailing list