The commit is pushed to "branch-rh8-4.18.0-305.3.1.vz8.7.x-ovz" and will appear 
at https://src.openvz.org/scm/ovz/vzkernel.git
after rh8-4.18.0-305.3.1.vz8.7.11
------>
commit 11c3f437ad249ddbb4d3766b9736a3eb9fa40f70
Author: Alexey Kuznetsov <[email protected]>
Date:   Tue Aug 31 21:08:14 2021 +0800

    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
    
    Fixes: 4c17c3856a6c ("fuse: Fix fuse_parse_param() kio_name handling
     #PSBM-131962")
    
    Signed-off-by: Alexey Kuznetsov <[email protected]>
    Reviewed-by: Pavel Tikhomirov <[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 ca6363720daf..1bdffc8269f7 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;
 
_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to