[CRIU] [PATCH 13/12] dump: fail if a zombie is in PIDNS

Andrey Vagin avagin at openvz.org
Fri Jun 1 09:04:33 EDT 2012


Can't dump zombies in PIDNS, because a pid is got from parasite

Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 cr-dump.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/cr-dump.c b/cr-dump.c
index 7121495..2123f25 100644
--- a/cr-dump.c
+++ b/cr-dump.c
@@ -1590,6 +1590,11 @@ static int dump_one_task(struct pstree_item *item)
 
 	if (item->state == TASK_DEAD) {
 		/* FIXME don't support zombie in pid name space*/
+		if (root_item->pid.pid == 1) {
+			pr_err("Can't dump a zombie %d in PIDNS", item->pid.real_pid);
+			ret = -1;
+			goto err;
+		}
 		item->pid.pid = item->pid.real_pid;
 
 		BUG_ON(!list_empty(&item->children));
-- 
1.7.1



More information about the CRIU mailing list