[CRIU] [PATCH 7/8] restorer: unmap itself
Pavel Emelyanov
xemul at parallels.com
Fri Sep 13 06:18:15 EDT 2013
> @@ -1375,7 +1376,13 @@ static void finalize_restore(int status)
> if (status < 0)
> goto detach;
>
> - /* TODO Unmap the restorer blob and restore the process state */
> + /* Unmap the restorer blob */
> + ctl = __parasite_prep_ctl(pid);
How about rolling this back?
> + if (ctl == NULL)
> + goto detach;
> + parasite_unmap(ctl, (unsigned long) item->rst->munmap_restorer);
> +
> + /* TODO restore the process state */
> detach:
> if (ptrace(PTRACE_DETACH, pid, NULL, 0))
> pr_perror("Unable to execute %d", pid);
More information about the CRIU
mailing list