Commit 555efbb3 authored by Andrey Vagin's avatar Andrey Vagin Committed by Cyrill Gorcunov

Set MAP_GROWSDOWN flag for stacks

Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent 146735f9
......@@ -318,7 +318,7 @@ int parse_maps(pid_t pid, struct list_head *vma_area_list, bool use_map_files)
if (strstr(big_buffer, "[stack]")) {
vma_area->vma.status |= VMA_AREA_REGULAR | VMA_AREA_STACK;
vma_area->vma.prot |= PROT_GROWSDOWN;
vma_area->vma.flags |= MAP_GROWSDOWN;
} else if (strstr(big_buffer, "[vsyscall]")) {
vma_area->vma.status |= VMA_AREA_VSYSCALL;
} else if (strstr(big_buffer, "[vdso]")) {
......
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