[Devel] [PATCH RHEL9 COMMIT] fuse: pcs: a bug in update of dirty status

Konstantin Khorenko khorenko at virtuozzo.com
Thu Jan 26 20:26:33 MSK 2023


The commit is pushed to "branch-rh9-5.14.0-162.6.1.vz9.18.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh9-5.14.0-162.6.1.vz9.18.6
------>
commit 3844bb3233d037e7590d43d01183dbe9ae057be7
Author: Alexey Kuznetsov <kuznet at acronis.com>
Date:   Wed Jan 25 10:23:37 2023 +0000

    fuse: pcs: a bug in update of dirty status
    
    The bug is both stupid and dangerous.
    
    Affects: #VSTOR-62689
    https://pmc.acronis.work/browse/VSTOR-62689
    
    Fixes: 6dbdface72b9 ("fuse: pcs: protection against sync seq numbers
    wraparound")
    
    Signed-off-by: Alexey Kuznetsov <kuznet at acronis.com>
    Feature: vStorage
---
 fs/fuse/kio/pcs/pcs_map.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/fuse/kio/pcs/pcs_map.c b/fs/fuse/kio/pcs/pcs_map.c
index f3bc3a18517d..0568d7966072 100644
--- a/fs/fuse/kio/pcs/pcs_map.c
+++ b/fs/fuse/kio/pcs/pcs_map.c
@@ -820,7 +820,7 @@ void transfer_sync_data(struct pcs_cs_list * new_cs_list, struct pcs_cs_list * o
 		for (k = 0; k < old_cs_list->nsrv; k++) {
 			if (old_cs_list->cs[k].info.id.val == new_cs_list->cs[i].info.id.val) {
 				new_cs_list->cs[i].sync = old_cs_list->cs[k].sync;
-				new_cs_list->cs[i].dirty_ts = old_cs_list->cs[i].dirty_ts;
+				new_cs_list->cs[i].dirty_ts = old_cs_list->cs[k].dirty_ts;
 				break;
 			}
 		}


More information about the Devel mailing list