[CRIU] [PATCH 08/13] vdso: Remap runtime vdso copy to safe place

Cyrill Gorcunov gorcunov at openvz.org
Wed May 22 15:09:44 EDT 2013


Runtime vdso need to be kept in some safe place when all
self-vmas are unmapped. So we reserve space for it in restorer
blob area and then remap it into. It's quite important to do
a remap here rather than data copy because otherwise pfn
of vdso disappear and in future we won't be able to detect
vdso are on dumping stage.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 cr-restore.c       | 35 ++++++++++++++++++++++++++++++++---
 include/restorer.h |  5 +++++
 include/vdso.h     |  2 ++
 pie/restorer.c     | 18 ++++++++++++++++++
 pie/vdso.c         | 17 +++++++++++++++++
 vdso.c             |  5 +++++
 6 files changed, 79 insertions(+), 3 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0008-vdso-Remap-runtime-vdso-copy-to-safe-place.patch
Type: text/x-patch
Size: 5625 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20130522/8cced137/attachment.bin>


More information about the CRIU mailing list