[CRIU] [PATCH 2/2] mem: Don't assume guard page is returned in procfs with new kernels
Cyrill Gorcunov
gorcunov at gmail.com
Wed Jun 21 16:17:53 MSK 2017
On Wed, Jun 21, 2017 at 03:59:50PM +0300, Andrey Ryabinin wrote:
> > /* Add a guard page only if here is enough space for it */
> > - if ((vma_area->e->flags & MAP_GROWSDOWN) &&
> > + if (vma_has_guard_gap_hidden(vma_area) &&
> > *prev_end < vma_area->e->start)
> > - vma_area->e->start -= PAGE_SIZE; /* Guard page */
> > + if (kdat.stack_guard_gap_hidden)
>
> This already checked in vma_has_guard_gap_hidden().
Yup, a leftover from rebase. Won't hurt.
More information about the CRIU
mailing list