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

Andrey Vagin avagin at openvz.org
Mon Aug 10 04:28:15 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
v4: fix comments from Pavel

Cc: Christopher Covington <cov at codeaurora.org>

Andrey Vagin (2):
  zdtm.sh: add ability to use a freezer cgroup
  dump: use freezer cgroup to seize processes (v4)

 crtools.c                               |   6 +
 include/cr_options.h                    |   1 +
 seize.c                                 | 194 +++++++++++++++++++++++++++++++-
 test/Makefile                           |   5 +
 test/zdtm.sh                            |  33 ++++++
 test/zdtm/live/transition/thread-bomb.c |  16 ++-
 6 files changed, 248 insertions(+), 7 deletions(-)

--
2.1.0



More information about the CRIU mailing list