Commit 35502c45 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

restore: Add PROT_GROWSDOWN for stack area

Since we stick with x86 for a while.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@gmail.com>
parent 0355f1d2
...@@ -217,6 +217,9 @@ self_len_end: ...@@ -217,6 +217,9 @@ self_len_end:
if (!(vma_entry.status & VMA_AREA_REGULAR)) if (!(vma_entry.status & VMA_AREA_REGULAR))
continue; continue;
if (vma_entry.status & VMA_AREA_STACK)
vma_entry.prot |= PROT_GROWSDOWN;
#if 0 #if 0
vma_entry.fd = -1UL; /* for a while */ vma_entry.fd = -1UL; /* for a while */
vma_entry.pgoff = 0; vma_entry.pgoff = 0;
......
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