From a1e2da9b5655fe22b3f433c5fea433a940ba1604 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Tue, 5 Aug 2014 13:59:19 +0400 Subject: [PATCH] vdso: restorer -- Don't forget to access proper vma from the list Otherwise we might take a look on last vma from previous cycle not running vdso analisys at all. Signed-off-by: Cyrill Gorcunov Signed-off-by: Pavel Emelyanov --- pie/restorer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pie/restorer.c b/pie/restorer.c index 16a75bf0c..1a33031f6 100644 --- a/pie/restorer.c +++ b/pie/restorer.c @@ -776,8 +776,8 @@ long __export_restore_task(struct task_restore_args *args) * Proxify vDSO. */ for (i = 0; i < args->nr_vmas; i++) { - if (vma_entry_is(vma_entry, VMA_AREA_VDSO) || - vma_entry_is(vma_entry, VMA_AREA_VVAR)) { + if (vma_entry_is(&args->tgt_vmas[i], VMA_AREA_VDSO) || + vma_entry_is(&args->tgt_vmas[i], VMA_AREA_VVAR)) { if (vdso_proxify("dumpee", &args->vdso_sym_rt, args->vdso_rt_parked_at, i, args->tgt_vmas, args->nr_vmas))