[Devel] [PATCH RHEL7 COMMIT] fs/fuse kio: fix double free of pfc in process_pcs_init_reply()

Konstantin Khorenko khorenko at virtuozzo.com
Tue Mar 26 12:49:05 MSK 2019


The commit is pushed to "branch-rh7-3.10.0-957.10.1.vz7.85.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-957.10.1.vz7.85.3
------>
commit 57a6200cbb664031506df3b2828f34b469e8d333
Author: Pavel Butsykin <pbutsykin at virtuozzo.com>
Date:   Tue Mar 26 12:49:03 2019 +0300

    fs/fuse kio: fix double free of pfc in process_pcs_init_reply()
    
    Remove redundant kvfree(pfc) in process_pcs_init_reply() to fix it.
    
    This branch can only be taken if an abortion occurs during the mount, that is
    quite a rare event.
    
    https://pmc.acronis.com/browse/VSTOR-20922
    
    Signed-off-by: Pavel Butsykin <pbutsykin at virtuozzo.com>
    Reviewed-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
 fs/fuse/kio/pcs/pcs_fuse_kdirect.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/fs/fuse/kio/pcs/pcs_fuse_kdirect.c b/fs/fuse/kio/pcs/pcs_fuse_kdirect.c
index b908337f0e11..035f58302be3 100644
--- a/fs/fuse/kio/pcs/pcs_fuse_kdirect.c
+++ b/fs/fuse/kio/pcs/pcs_fuse_kdirect.c
@@ -127,7 +127,6 @@ static void process_pcs_init_reply(struct fuse_conn *fc, struct fuse_req *req)
 	if (pfc) {
 		fuse_ktrace_remove(fc);
 		pcs_cluster_fini(pfc);
-		kvfree(pfc);
 	}
 out:
 	if (fc->conn_error)



More information about the Devel mailing list