2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 14:25:49 +00:00

restore: Add PROT_GROWSDOWN for stack area

Since we stick with x86 for a while.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov
2011-11-08 13:48:10 +04:00
parent 0355f1d23a
commit 35502c4564

View File

@@ -217,6 +217,9 @@ self_len_end:
if (!(vma_entry.status & VMA_AREA_REGULAR))
continue;
if (vma_entry.status & VMA_AREA_STACK)
vma_entry.prot |= PROT_GROWSDOWN;
#if 0
vma_entry.fd = -1UL; /* for a while */
vma_entry.pgoff = 0;