[Devel] [PATCH hci-8.2 2/8] ms/ext4: fix string copying in parse_apply_sb_mount_options()
no-reply at sashiko.virtuozzo.com
no-reply at sashiko.virtuozzo.com
Thu Nov 19 15:08:29 MSK 2026
> From: Fedor Pchelkin <pchelkin at ispras.ru>
>
> strscpy_pad() can't be used to copy a non-NUL-term string into a NUL-term
> string of possibly bigger size. Commit 0efc5990bca5 ("string.h: Introduce
> memtostr() and memtostr_pad()") provides additional information in that
> regard. So if this happens, the following warning is observed:
>
> strnlen: detected buffer overflow: 65 byte read of buffer size 64
> WARNING: CPU: 0 PID: 28655 at lib/string_helpers.c:1032 __fortify_report+0x96/0xc0 lib/string_helpers.c:1032
> Modules linked in:
> CPU: 0 UID: 0 PID: 28655 Comm: syz-executor.3 Not tainted 6.12.54-syzkaller-00144-g5f0270f1ba00 #0
> Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
> RIP: 0010:__fortify_report+0x96/0xc0 lib/string_helpers.c:1032
> Call Trace:
> <TASK>
> [ ... ]
>
> 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=2
More information about the Devel
mailing list