[CRIU] [PATCH 4/8] x86: Add 32bit variant of TASK_SIZE

Cyrill Gorcunov gorcunov at gmail.com
Fri May 15 05:50:13 PDT 2015


On Fri, May 15, 2015 at 02:36:13PM +0300, Pavel Emelyanov wrote:
> > 
> > Note if the kernel is configured to 3G limit the mmap
> > return address won't be higher than our TASK_SIZE, that's
> > what I meant when said "backward compatible".
> 
> This is true for any TASK_SIZE value, even if you say to be
> \infty the kernel would (should) never report addresses higher
> than some value. Why do we need it at all?

Managed to miss this snippet. We use task-size when parsing
memory map (for example vsyscalls iirc are laying on higer
addresses, another example -- when we search for available
memory for restorer blob: we start requesting for memory
from top available address).


More information about the CRIU mailing list