Patch "fuse: Fix fuse_parse_param() kio_name handling #PSBM-131962" has a silly mistake
Affects: #VSTOR-45882 https://pmc.acronis.com/browse/VSTOR-45882
From cb6b6a0c73d88b5801336b9cc2726808490eac56 Mon Sep 17 00:00:00 2001 From: Alexey Kuznetsov <[email protected]> Date: Tue, 31 Aug 2021 21:02:50 +0800 Subject: fuse: fix junk at in kio name Patch "fuse: Fix fuse_parse_param() kio_name handling #PSBM-131962" has a silly mistake Affects: #VSTOR-45882 https://pmc.acronis.com/browse/VSTOR-45882 Signed-off-by: Alexey Kuznetsov <[email protected]> --- fs/fuse/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c index ca63637..1bdffc8 100644 --- a/fs/fuse/inode.c +++ b/fs/fuse/inode.c @@ -782,7 +782,7 @@ static int fuse_parse_param(struct fs_context *fc, struct fs_parameter *param) if (param->size > FUSE_KIO_NAME) return -EINVAL; - strncpy(ctx->kio_name, param->string, param->size); + strncpy(ctx->kio_name, param->string, FUSE_KIO_NAME); ctx->kio_name[FUSE_KIO_NAME] = '\0'; ctx->kdirect_io = 1; -- 1.8.3.1
_______________________________________________ Devel mailing list [email protected] https://lists.openvz.org/mailman/listinfo/devel
