[CRIU] [PATCH] vdso: don't forget to adjust vma_area_list->nr

Andrey Vagin avagin at openvz.org
Wed Jun 18 13:22:28 PDT 2014


A proxy vdso is removed from the vma_area_list list,
so vma_area_list->nr must be decremented.

Cc: Cyrill Gorcunov <gorcunov at openvz.org>
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 arch/x86/vdso.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/x86/vdso.c b/arch/x86/vdso.c
index 6e24d38..ed2b6cb 100644
--- a/arch/x86/vdso.c
+++ b/arch/x86/vdso.c
@@ -145,6 +145,7 @@ int parasite_fixup_vdso(struct parasite_ctl *ctl, pid_t pid,
 			 (long)vma->e->start);
 		list_del(&marked->list);
 		xfree(marked);
+		vma_area_list->nr--;
 	}
 	ret = 0;
 err:
-- 
1.8.5.3



More information about the CRIU mailing list