2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 13:58:34 +00:00

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 <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Cyrill Gorcunov 2014-08-05 13:59:19 +04:00 committed by Pavel Emelyanov
parent 7794f67f20
commit a1e2da9b56

View File

@ -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))