[PATCH] arm: align shared memory unconditionally to the SHMLBA boundary

Russell King - ARM Linux linux at arm.linux.org.uk
Tue Jul 16 06:36:49 EDT 2013


On Tue, Jul 16, 2013 at 02:22:41PM +0400, Alexander Kartashov wrote:
> On 07/16/2013 01:53 PM, Cyrill Gorcunov wrote:
>> Does it mean that we simply can't checkpoint and restore on same
>> node (ie same arm family) if this patch is not applied, right?
> Yes, it does.
>> Is there any possibility to somehow workaround this problem
>> completely in user-space?
> No, it's impossible since an IPC SHM region is allocated
> by the routine shmget() in the dumpee; if the routine
> returns an incorrectly aligned address it's impossible
> to reattach the region at this address while restoring
> the dumpee.

shmget() doesn't allocate space in the process for the SHM region.  It
merely creates the shm memory and returns an identifier for it which can
later be used by shmat() to map it.



More information about the linux-arm-kernel mailing list