[CRIU] [PATCH 0/8] parasite: Use ptrace to block signals (v2)

Andrey Vagin avagin at openvz.org
Thu Jul 11 05:46:47 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.

v2: PTRACE_SETSIGMASK is required

Andrey Vagin (8):
  signals: dump alternate stack as misc parameters
  check: check PTRACE_{GET,SET}SIGMASK
  parasite: move code about creating control sockets in a separate func
  parasite: block signals for each parasite command
  parasite: restore registers after each parasite command
  parasite: modify process memory only for executing syscalls
  parasite: execute only one parasite commend for dumping per-thread
    data
  parasite: use only one command for executing parasite in a daemon mode

 arch/arm/crtools.c         |   8 +-
 arch/x86/crtools.c         |   8 +-
 cr-check.c                 |   6 +
 cr-dump.c                  |   3 +
 include/parasite-syscall.h |   7 +-
 include/parasite.h         |  24 ++--
 include/ptrace.h           |   3 +
 parasite-syscall.c         | 343 ++++++++++++++++++---------------------------
 pie/parasite.c             | 129 +++++++----------
 9 files changed, 217 insertions(+), 314 deletions(-)

--
1.8.3.1



More information about the CRIU mailing list