[CRIU] [PATCH] zdtm/maps007: fix a race condition

Pavel Emelyanov xemul at parallels.com
Thu Jan 22 07:56:37 PST 2015


On 01/20/2015 06:58 PM, Andrey Vagin wrote:
> If shm->delta = MAX_DELTA and we set shm->stop to 1, the child can exit
> before the parent adds MAX_DELTA to shm->delta.
> 
> parent			child
> shm->stop = 1
> 			if (shm->stop == 1 && shm->delta == MAX_DELTA)
> 				break
> shm->delta += MAX_DELTA
> 
> Cc: Konstantin Neumoin <kneumoin at parallels.com>
> Reported-by: Konstantin Neumoin <kneumoin at parallels.com>
> Signed-off-by: Andrey Vagin <avagin at openvz.org>

Applied



More information about the CRIU mailing list