From df0c793d52ba0878a35f7ceff33d348e62167d21 Mon Sep 17 00:00:00 2001 From: Mike Rapoport Date: Sun, 23 Aug 2020 13:03:31 +0300 Subject: [PATCH] travis: restore lazy-pages tests for uns flavor Since commit cdd08cdff ("uffd: use userns_call() to execute ioctl(UFFDIO_API)") UFFD_API ioctl() is wrapped with userns_call() and this allows runing lazy-pages tests on recent kernels in uns. Restore testing of lazy-pages in uns in travis. Signed-off-by: Mike Rapoport --- scripts/travis/travis-tests | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/scripts/travis/travis-tests b/scripts/travis/travis-tests index 8c185f1cb..a9e99992f 100755 --- a/scripts/travis/travis-tests +++ b/scripts/travis/travis-tests @@ -202,15 +202,8 @@ else fi LAZY_EXCLUDE="$LAZY_EXCLUDE -x maps04" -# Starting with 5.4 kernel requires SYS_CAP_PTRACE to use uffd events; as such -# we cannot run lazy-pages tests in uns -LAZY_FLAVORS="" -if [ $KERN_MAJ -ge "5" ] && [ $KERN_MIN -ge "4" ]; then - LAZY_FLAVORS="-f h,ns" -fi - LAZY_TESTS=.*\(maps0\|uffd-events\|lazy-thp\|futex\|fork\).* -LAZY_OPTS="-p 2 -T $LAZY_TESTS $LAZY_EXCLUDE $LAZY_FLAVORS $ZDTM_OPTS" +LAZY_OPTS="-p 2 -T $LAZY_TESTS $LAZY_EXCLUDE $ZDTM_OPTS" ./test/zdtm.py run $LAZY_OPTS --lazy-pages ./test/zdtm.py run $LAZY_OPTS --remote-lazy-pages