[CRIU] [PATCH 0/3] Don't fail if tasks breed like rabbits (v3)

Andrey Vagin avagin at openvz.org
Thu Aug 6 02:37:24 PDT 2015


Currently criu tries to catch all tasks for a few iterations and
then fails, so it's easy to create a fork bomb which will be never dumped.

We found that this problem can be solved with help of a freezer cgroup.

v3: restore the origin state of the freezer group in a error cases

Cc: Christopher Covington <cov at codeaurora.org>

Andrey Vagin (3):
  zdtm.sh: add ability to use a freezer cgroup
  crtools: split cr-dump.c in two files
  dump: use freezer cgroup to seize processes (v2)

 Makefile.crtools     |   1 +
 cr-dump.c            | 380 +-------------------------------------
 cr-exec.c            |   2 +-
 crtools.c            |   6 +
 include/cr_options.h |   1 +
 include/proc_parse.h |   2 +
 include/ptrace.h     |   5 +-
 include/seize.h      |   7 +
 proc_parse.c         |  62 +++++++
 ptrace.c             |  54 ++++--
 seize.c              | 510 +++++++++++++++++++++++++++++++++++++++++++++++++++
 test/zdtm.sh         |  29 +++
 12 files changed, 658 insertions(+), 401 deletions(-)
 create mode 100644 include/seize.h
 create mode 100644 seize.c

--
2.1.0



More information about the CRIU mailing list