Commit 4f675313 authored by Pavel Emelyanov's avatar Pavel Emelyanov

rst-malloc: Switch to private allocations once forked

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent ca0b51bc
...@@ -707,6 +707,8 @@ static int restore_one_alive_task(int pid, CoreEntry *core) ...@@ -707,6 +707,8 @@ static int restore_one_alive_task(int pid, CoreEntry *core)
{ {
pr_info("Restoring resources\n"); pr_info("Restoring resources\n");
rst_mem_switch_to_private();
if (pstree_wait_helpers()) if (pstree_wait_helpers())
return -1; return -1;
...@@ -2159,8 +2161,6 @@ static int sigreturn_restore(pid_t pid, CoreEntry *core) ...@@ -2159,8 +2161,6 @@ static int sigreturn_restore(pid_t pid, CoreEntry *core)
pr_info("Restore via sigreturn\n"); pr_info("Restore via sigreturn\n");
rst_mem_switch_to_private();
/* pr_info_vma_list(&self_vma_list); */ /* pr_info_vma_list(&self_vma_list); */
BUILD_BUG_ON(sizeof(struct task_restore_core_args) & 1); BUILD_BUG_ON(sizeof(struct task_restore_core_args) & 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment