[CRIU] [PATCH 4/5] dump: Escape double dumping of mangled vDSO
Cyrill Gorcunov
gorcunov at openvz.org
Thu May 16 11:33:04 EDT 2013
When we dump restored program, if there two vdso present (one -- patched
old vdso and a new one where calls are redirected to) -- we need to skip
dumping second vdso. For what we examinate vdso memory with parasite help
and if special mark present -- we remove such vma from the list.
Moreover, since we can't rely on [vdso] mark came from procfs parsing,
we do parse manually all suitable vDSO areas at dumping stage, and
set/clear VMA_AREA_VDSO status accordingly.
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
cr-dump.c | 6 ++++
include/parasite-syscall.h | 3 ++
include/parasite.h | 9 ++++++
parasite-syscall.c | 75 ++++++++++++++++++++++++++++++++++++++++++++++
pie/parasite.c | 36 ++++++++++++++++++++++
5 files changed, 129 insertions(+)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-dump-Escape-double-dumping-of-mangled-vDSO.patch
Type: text/x-patch
Size: 5361 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20130516/0d0bc146/attachment.bin>
More information about the CRIU
mailing list