[CRIU] [PATCH v2 1/4] travis-test: select tests skipped by lazy-pages pass more carefully

Mike Rapoport rppt at linux.vnet.ibm.com
Wed May 31 02:51:41 PDT 2017


Most of zdtm test should pass with --lazy-pages with kernels newer than
4.11.
Some test excluded for older kernels surprisingly pass even now, mainly
becuase they do not actually stress userfaultfd, which will be fixed in the
upcoming commits :)
The cmdlinenv00 fails even with kernel 4.11 because of a race between uffd
and gup in the case external process reads /proc/<pid>/cmdline before
memory containing the command line is populated.

Signed-off-by: Mike Rapoport <rppt at linux.vnet.ibm.com>
---
 scripts/travis/travis-tests | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/scripts/travis/travis-tests b/scripts/travis/travis-tests
index cc61f8a..5159bab 100755
--- a/scripts/travis/travis-tests
+++ b/scripts/travis/travis-tests
@@ -64,7 +64,17 @@ chmod 0777 test/zdtm/static
 chmod 0777 test/zdtm/transition
 
 ./test/zdtm.py run -a -p 2
-./test/zdtm.py run -a -p 2 --lazy-pages -x maps007
+
+KERN_MAJ=`uname -r | cut -d. -f1`
+KERN_MIN=`uname -r | cut -d. -f2`
+if [ $KERN_MAJ -ge "4" ] && [ $KERN_MIN -ge "11" ]; then
+	LAZY_EXCLUDE="-x cmdlinenv00"
+else
+	LAZY_EXCLUDE="-x maps007 -x fork -x fork2 -x uffd-events -x cgroupns
+		      -x socket_listen -x socket_listen6 -x cmdlinenv00
+		      -x socket_close_data01 -x file_read"
+fi
+./test/zdtm.py run -a -p 2 --lazy-pages $LAZY_EXCLUDE --keep-going --report report
 
 bash ./test/jenkins/criu-fault.sh
 bash ./test/jenkins/criu-fcg.sh
-- 
2.7.4



More information about the CRIU mailing list