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

Kirill Tkhai ktkhai at virtuozzo.com
Tue May 23 05:38:00 PDT 2017


Hi,

this is patchset to support pid_for_children ns file appeared in kernel here:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=eaa0d190bfe1ed891b814a52712dcd852554cb08

Patches [1-3/21] were already sent. I send them once again, as the patchset
uses it, and to avoid conflicts.

Patches [4-6/21] are fixes and they may be applied separate from the patchset.

Patch [7/21] is refactoring.

The rest of patches implement the subject feature.

---

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: Fix 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             |  139 ++++++++++++++++++++++------
 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                |   16 +++
 criu/mount.c                  |    2 
 criu/namespaces.c             |   64 ++++++++++---
 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                  |   16 ++-
 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, 717 insertions(+), 71 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