[CRIU] [PATCH 5/5] vdso: x86 -- Skip areas with known not to be vdso

Cyrill Gorcunov gorcunov at openvz.org
Fri May 31 02:28:45 EDT 2013


Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 arch/x86/vdso.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/x86/vdso.c b/arch/x86/vdso.c
index a4687ea..d879eef 100644
--- a/arch/x86/vdso.c
+++ b/arch/x86/vdso.c
@@ -126,6 +126,9 @@ int parasite_fixup_vdso(struct parasite_ctl *ctl, pid_t pid,
 		if ((vma->vma.prot & VDSO_PROT) != VDSO_PROT)
 			continue;
 
+		if (vma->vma.start > TASK_SIZE)
+			continue;
+
 		/*
 		 * I need to poke every potentially marked vma,
 		 * otherwise if task never called for vdso functions
-- 
1.8.1.4



More information about the CRIU mailing list