[Devel] [PATCH hci-8.2 6/8] ms/ext4: check if mount_opts is NUL-terminated in ext4_ioctl_set_tune_sb()
no-reply at sashiko.virtuozzo.com
no-reply at sashiko.virtuozzo.com
Thu Nov 19 15:10:41 MSK 2026
> From: Fedor Pchelkin <pchelkin at ispras.ru>
>
> params.mount_opts may come as potentially non-NUL-term string. Userspace
> is expected to pass a NUL-term string. Add an extra check to ensure this
> holds true. Note that further code utilizes strscpy_pad() so this is just
> for proper informing the user of incorrect data being provided.
>
> Found by Linux Verification Center (linuxtesting.org).
>
> Signed-off-by: Fedor Pchelkin <pchelkin at ispras.ru>
> Reviewed-by: Baokun Li <libaokun1 at huawei.com>
> Reviewed-by: Jan Kara <jack at suse.cz>
> Message-ID: <20251101160430.222297-2-pchelkin at ispras.ru>
> Signed-off-by: Theodore Ts'o <tytso at mit.edu>
> Cc: stable at kernel.org
> (cherry picked from commit 3db63d2c2d1d1e78615dd742568c5a2d55291ad1)
>
> 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=6
More information about the Devel
mailing list