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

Dmitry Safonov 0x7f454c46 at gmail.com
Thu Oct 12 21:52:25 MSK 2017


2017-10-12 19:33 GMT+01:00 Andrei Vagin <avagin at openvz.org>:
> 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>

LGTM, still it may be fixed in kernel later.
Small nip: ia32, not x32.

> ---
>  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
>
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu



-- 
             Dmitry


More information about the CRIU mailing list