From 95ea4e92a8167ad762fcb9d6941ad2267f3fa400 Mon Sep 17 00:00:00 2001 From: Mike Rapoport Date: Mon, 7 May 2018 21:50:02 +0300 Subject: [PATCH] lazy-pages: fork: fix duplication of IOV lists Instead of merging unfinished requests with child's IOVs we queued them into parent's IOV list. Fix it. Signed-off-by: Mike Rapoport Signed-off-by: Andrei Vagin --- criu/uffd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/criu/uffd.c b/criu/uffd.c index 0b26c7d8a..21db369cc 100644 --- a/criu/uffd.c +++ b/criu/uffd.c @@ -475,7 +475,7 @@ static int copy_iovs(struct lazy_pages_info *src, struct lazy_pages_info *dst) * The IOVs aready in flight for the parent process need to be * transferred again for the child process */ - merge_iov_lists(&dst->reqs, &src->iovs); + merge_iov_lists(&dst->reqs, &dst->iovs); dst->buf_size = src->buf_size; if (posix_memalign(&dst->buf, PAGE_SIZE, dst->buf_size))