[CRIU] [PATCH 2/2] zdtm: Add maps05 test
Cyrill Gorcunov
gorcunov at gmail.com
Wed May 7 05:22:22 PDT 2014
On Wed, May 07, 2014 at 04:15:33PM +0400, Andrew Vagin wrote:
> > +
> > + for (i = 0; i < NR_MAPS; i++) {
> > + map[i] = mmap(i > 0 ? map[i - 1] + 8192 : NULL, 4096, PROT_READ | PROT_WRITE,
> > + MAP_ANONYMOUS | MAP_PRIVATE | (i > 0 ? MAP_FIXED : 0), -1, 0);
>
> It's dangerous, because you can overlap with other vmas.
Yeah, I've been lucky and didn't hit the problem, though I've your update
in my tree and will re-send this patch.
More information about the CRIU
mailing list