[CRIU] [PATCH 2/2] vdso: restorer -- Don't forget to access proper vma from the list
Cyrill Gorcunov
gorcunov at openvz.org
Tue Aug 5 02:59:19 PDT 2014
Otherwise we might take a look on last vma from previous
cycle not running vdso analisys at all.
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
pie/restorer.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pie/restorer.c b/pie/restorer.c
index 16a75bf0c0d0..1a33031f6b4b 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))
--
1.9.3
More information about the CRIU
mailing list