Commit 85d366e8 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

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: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 8a9e81b6
...@@ -61,6 +61,9 @@ int parasite_fixup_vdso(struct parasite_ctl *ctl, pid_t pid, ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment