[CRIU] [PATCH] ptrace: don't stop a process if it was not in the stopped state (v2)

Andrey Vagin avagin at openvz.org
Thu Oct 1 07:22:33 PDT 2015


From: Andrew Vagin <avagin at openvz.org>

v2: fix one more place

Reported-by: Pavel Emelyanov <xemul at parallels.com>
Cc: Tycho Andersen <tycho.andersen at canonical.com>
Acked-by: Tycho Andersen <tycho.andersen at canonical.com>
Signed-off-by: Andrew Vagin <avagin at openvz.org>
---
 ptrace.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ptrace.c b/ptrace.c
index 324b524..1945d62 100644
--- a/ptrace.c
+++ b/ptrace.c
@@ -181,17 +181,17 @@ try_again:
 	if (*creds == NULL) {
 		*creds = xzalloc(sizeof(struct proc_status_creds));
 		if (!*creds)
-			goto err_stop;
+			goto err;
 
 		**creds = cr;
 
 	} else if (!proc_status_creds_eq(*creds, &cr)) {
 		pr_err("creds don't match %d %d\n", pid, ppid);
-		goto err_stop;
+		goto err;
 	}
 
 	if (cr.seccomp_mode != SECCOMP_MODE_DISABLED && suspend_seccomp(pid) < 0)
-		goto err_stop;
+		goto err;
 
 	if (si.si_signo == SIGTRAP)
 		return TASK_ALIVE;
-- 
2.4.3



More information about the CRIU mailing list