[CRIU] [PATCH 3/3] x86/32: don't unmap vdso_rt after redirecting calls there
Dmitry Safonov
dsafonov at virtuozzo.com
Fri Mar 10 05:35:25 PST 2017
We need to leave this part of restorer in restored task in case
of inserted redirected calls. Jump trampolines from old vdso lead
here - it would be painful to land nowhere.
Signed-off-by: Dmitry Safonov <dsafonov at virtuozzo.com>
---
criu/pie/restorer.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/criu/pie/restorer.c b/criu/pie/restorer.c
index b48e3e97992b..53ecaa0520e2 100644
--- a/criu/pie/restorer.c
+++ b/criu/pie/restorer.c
@@ -1000,6 +1000,7 @@ asm (
" .code32\n"
" mov bootstrap_start, %ebx\n"
" mov bootstrap_len, %ecx\n"
+ " sub vdso_rt_size, %ecx\n"
" movl $"__stringify(__NR32_munmap)", %eax\n"
" int $0x80\n"
" .code64\n"
--
2.11.1
More information about the CRIU
mailing list