mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 22:35:33 +00:00
rst: Create rst-mem pages _after_ local smaps parse
This memory is unmapped by handr, so no need in polluting self-smaps with it. Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
@@ -2014,14 +2014,14 @@ static int sigreturn_restore(pid_t pid, CoreEntry *core)
|
|||||||
|
|
||||||
pr_info("Restore via sigreturn\n");
|
pr_info("Restore via sigreturn\n");
|
||||||
|
|
||||||
if (rst_mem_init())
|
|
||||||
goto err;
|
|
||||||
|
|
||||||
ret = parse_smaps(pid, &self_vmas, false);
|
ret = parse_smaps(pid, &self_vmas, false);
|
||||||
close_proc();
|
close_proc();
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
goto err;
|
goto err;
|
||||||
|
|
||||||
|
if (rst_mem_init())
|
||||||
|
goto err;
|
||||||
|
|
||||||
self_vmas_len = round_up((self_vmas.nr + 1) * sizeof(VmaEntry), PAGE_SIZE);
|
self_vmas_len = round_up((self_vmas.nr + 1) * sizeof(VmaEntry), PAGE_SIZE);
|
||||||
vmas_len = round_up((rst_vmas.nr + 1) * sizeof(VmaEntry), PAGE_SIZE);
|
vmas_len = round_up((rst_vmas.nr + 1) * sizeof(VmaEntry), PAGE_SIZE);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user