[CRIU] Re: [PATCH v3 1/4] IPC: dump shared memory

Pavel Emelyanov xemul at parallels.com
Thu Feb 9 03:33:25 EST 2012


>>> +
>>>   #define VMA_AREA_NONE		(0<<   0)
>>>   #define VMA_AREA_REGULAR	(1<<   0)	/* Dumpable area */
>>>   #define VMA_AREA_STACK		(1<<   1)
>>> diff --git a/ipc_ns.c b/ipc_ns.c
>>> +}
>>> +
>>> +static int dump_ipc_shm_seg(int fd, int id, const struct shmid_ds *ds)
>> By now you should either place here check for the number of attaches should be zero
>> or implement dumping/restoring the attaches to tasks.
> 
> What for?

To make sure we do things properly. If we do know that we don't handle attached
segments we should deny dumping them.


More information about the CRIU mailing list