[CRIU] [PATCH 0/9] parasite: Use ptrace to block signals

Andrey Vagin avagin at openvz.org
Fri Jun 21 00:01:06 EDT 2013


This patch set reduces the window, when a process state can be corrupted.
PTRACE_SETSIGMASK has smaller chance to fail in compare with a parasite command.

Parasite is demonized by one command and in case of any error it can be
recovered via sigreturn, because sigframe is generate before this command.

A thread is dumped by one command.

Andrey Vagin (9):
  check: check PTRACE_{GET,SET}SIGMASK
  dump: move code for dumping threads in a separate function
  ptrace: try to get signal blocking mask via ptrace (v2)
  parasite: minor clean up
  parasite: move code about creating control sockets in a separate func
  parasite: move code about parasite initialization in a separate
    function
  parasite: block signals for each parasite command
  parasite: use only one command for executing parasite in a daemon mode
  parasite: restore registers after each parasite command

 cr-check.c                 |   6 +
 cr-exec.c                  |   2 +-
 include/parasite-syscall.h |   2 +-
 include/parasite.h         |   3 +
 include/ptrace.h           |   3 +
 parasite-syscall.c         | 378 +++++++++++++++++++++++++++++++++++----------
 pie/parasite.c             |  47 +++++-
 7 files changed, 351 insertions(+), 90 deletions(-)

-- 
1.8.2.1



More information about the CRIU mailing list