From 2d631b4562f98faaad115ebf54d6f6463e751346 Mon Sep 17 00:00:00 2001 From: Andrey Vagin Date: Thu, 1 Aug 2013 16:44:38 +0400 Subject: [PATCH] mount: build tree of mounts before dumping them When CRIU wants to dump content, it checks that nothing is overmounted. The list of children for such mounts must be empty, but these lists are filled during constructing a tree of mounts. Signed-off-by: Andrey Vagin Signed-off-by: Pavel Emelyanov --- mount.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mount.c b/mount.c index fbc9f7dc5..68965bbab 100644 --- a/mount.c +++ b/mount.c @@ -469,6 +469,9 @@ int dump_mnt_ns(int ns_pid, struct cr_fdset *fdset) return -1; } + if (mnt_build_tree(pm) == NULL) + return -1; + if (validate_shared(mntinfo)) { pr_err("Can't proceed %d's mountinfo\n", ns_pid); return -1;