[CRIU] [PATCH] zdtm: skip vsyscall vmas for x32 tests

Andrei Vagin avagin at openvz.org
Thu Oct 12 21:33:05 MSK 2017


From: Andrei Vagin <avagin at virtuozzo.com>

It is known issue that a vsyscall vmas are not unmapped
from x32 processes.

Signed-off-by: Andrei Vagin <avagin at virtuozzo.com>
---
 test/zdtm.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/test/zdtm.py b/test/zdtm.py
index edf547d34..f18d2d97c 100755
--- a/test/zdtm.py
+++ b/test/zdtm.py
@@ -1254,6 +1254,11 @@ def check_visible_state(test, state, opts):
 
 		old_maps = state[1][pid]
 		new_maps = new[1][pid]
+		if os.getenv("COMPAT_TEST"):
+			# the vsyscall vma isn't unmapped from x32 processes
+			vsyscall = "ffffffffff600000-ffffffffff601000 ['r-xp']"
+			if vsyscall in new_maps and vsyscall not in old_maps:
+				new_maps.remove(vsyscall)
 		if old_maps != new_maps:
 			print "%s: Old maps lost: %s" % (pid, old_maps - new_maps)
 			print "%s: New maps appeared: %s" % (pid, new_maps - old_maps)
-- 
2.13.3



More information about the CRIU mailing list