mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-01 14:55:39 +00:00
vdso: don't scan MAP_GROWSDOWN vmas
* VDSO is never mapped with MAP_GROWSDOWN * The first page of growsdown vma may be a guard page, so any attempt to read it is suppressed by SIGBUS. Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
8a9e81b646
commit
85d366e8e3
@@ -61,6 +61,9 @@ int parasite_fixup_vdso(struct parasite_ctl *ctl, pid_t pid,
|
|||||||
if (vma->e->start > TASK_SIZE)
|
if (vma->e->start > TASK_SIZE)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
if (vma->e->flags & MAP_GROWSDOWN)
|
||||||
|
continue;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* I need to poke every potentially marked vma,
|
* I need to poke every potentially marked vma,
|
||||||
* otherwise if task never called for vdso functions
|
* otherwise if task never called for vdso functions
|
||||||
|
Reference in New Issue
Block a user