[CRIU] [PATCH v2 00/21] Add /proc/[pid]/ns/pid_for_children ns support (and fixes)

Andrei Vagin avagin at virtuozzo.com
Sat Jun 3 05:04:50 MSK 2017


Applied, thanks
On Wed, May 31, 2017 at 08:51:39PM +0300, Kirill Tkhai wrote:
> Hi, this is the second version of pid_for_children patchset for new kernel functionality:
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=eaa0d190bfe1ed891b814a52712dcd852554cb08
> 
> Changes in comparation to v1 are in [1,4,10/21]. Also, it's rebased on fresh criu-dev.
> 
> ---
> 
> Kirill Tkhai (21):
>       zdtm: Make possible to claim for features list
>       pstree: Add helpers for ordered linking child task to parent
>       zdtm: Add pidns02 test (test on zombies)
>       ns: Move forked task user_ns assignment
>       restore: Convert waited helpers and zombies pids in parent's pid_ns
>       restore: Make error path in restore_root_task() accurate
>       dump: More obvious assignment of top_pid_ns
>       kerndat: Check for /proc/[pid]/ns/pid_for_children_ns
>       img: Add pid_for_children_ns_id description
>       ns: Add possibility to read a ns by alternative name in __get_ns_id()
>       ns: Add alternative name for pid namespace
>       ns: Make possible to avoid NS_ROOT assignment
>       ns: Use alternative name in set_ns_hookups() if need
>       ns: Collect/read pid_for_children ns
>       pstree: Dump threads pid_for_children_ns
>       ns: Fixup pid_for_children_ns of threads
>       fork: Move ns-specific code to setup_child_task_namespaces()
>       fork: Delete pid argument of set_pid_for_children_ns()
>       ns: First stage of restore pid_for_children ns
>       ns: Restore pid_for_children ns in threads
>       zdtm: Add pidns03 test
> 
> 
>  criu/cgroup.c                 |    2 
>  criu/cr-check.c               |   12 ++
>  criu/cr-dump.c                |   49 +++++++++-
>  criu/cr-restore.c             |  140 ++++++++++++++++++++++-------
>  criu/include/kerndat.h        |    2 
>  criu/include/namespaces.h     |    7 +
>  criu/include/pstree.h         |    1 
>  criu/include/restorer.h       |    1 
>  criu/ipc_ns.c                 |    2 
>  criu/kerndat.c                |   17 +++
>  criu/mount.c                  |    2 
>  criu/namespaces.c             |   66 ++++++++++----
>  criu/net.c                    |    2 
>  criu/pie/restorer.c           |   33 ++++++-
>  criu/pstree.c                 |   50 +++++++++-
>  criu/uts_ns.c                 |    2 
>  images/core.proto             |    1 
>  test/zdtm.py                  |    9 +-
>  test/zdtm/static/Makefile     |    5 +
>  test/zdtm/static/pidns02.c    |  180 +++++++++++++++++++++++++++++++++++++
>  test/zdtm/static/pidns02.desc |    1 
>  test/zdtm/static/pidns03.c    |  200 +++++++++++++++++++++++++++++++++++++++++
>  test/zdtm/static/pidns03.desc |    1 
>  23 files changed, 715 insertions(+), 70 deletions(-)
>  create mode 100644 test/zdtm/static/pidns02.c
>  create mode 100644 test/zdtm/static/pidns02.desc
>  create mode 100644 test/zdtm/static/pidns03.c
>  create mode 100644 test/zdtm/static/pidns03.desc
> 
> --
> Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>


More information about the CRIU mailing list