[CRIU] [PATCH 00/14] Dump/restore of pending signals (v7)

Andrey Vagin avagin at openvz.org
Mon Mar 25 10:37:43 EDT 2013


PTRACE_PEEKSIGINFO is used for dumping signals.
rt_sigqueueinfo is used for restoring.

v2: Restore private signals
    Collect all extra SIGCHLD from zombies.
    Save in a protobuf format.
v3: Clean up
v4: rework according with the new kernel interface
v4: rework according with the newest kernel interface
v6: clean up
v7: rework collection of signals from zombies

Alexander Kartashov (2):
  arm: added the descriptions of the syscalls pread64, rt_sigqueueinfo,
    signalfd4, rt_tgsigqueueinfo
  arm: added architecture-specific implementation of __cr_restore_rt

Andrey Vagin (12):
  zdtm: add a test case for pending signals
  protobuf: add a new description for saving siginfo-s
  crtools: add a callback to show signal=*.img
  crtools: add image contants for pending signals (v2)
  crtools: dump pending signals (v4)
  crtools: restore pending signals (v4)
  check: check PTRACE_PEEKSIGINFO and sigqueueinfo with positive
    si_code (v2)
  crtools: remove declaration of rt_sigset_t
  restore: set up correct sa_restorer for SIGCHLD handler (v3)
  restore: read core.img before forking to know a child state
  restore: collect signals from zombies (v4)
  zdtm.sh: add static/sigpending in the default set

 arch/arm/include/asm/types.h       |  19 ++-
 arch/arm/syscall-common.S          |   4 +
 arch/arm/syscall.def               |   4 +
 arch/x86/include/asm/types.h       |  20 ++--
 arch/x86/syscall-common-x86-64.S   |   5 +
 cr-check.c                         |  53 +++++++++
 cr-dump.c                          |  72 +++++++++++-
 cr-restore.c                       | 152 +++++++++++++++++++++---
 cr-show.c                          |  23 ++++
 image.c                            |   2 +
 include/crtools.h                  |   6 +-
 include/magic.h                    |   2 +
 include/protobuf.h                 |   1 +
 include/ptrace.h                   |  13 +++
 include/restorer.h                 |   8 ++
 include/sigframe.h                 |   4 +-
 pie/parasite.c                     |   2 +-
 pie/restorer.c                     |  81 ++++++++++++-
 protobuf.c                         |   2 +
 protobuf/Makefile                  |   1 +
 protobuf/siginfo.proto             |   3 +
 test/zdtm.sh                       |   1 +
 test/zdtm/live/static/Makefile     |   3 +
 test/zdtm/live/static/sigpending.c | 232 +++++++++++++++++++++++++++++++++++++
 24 files changed, 661 insertions(+), 52 deletions(-)
 create mode 100644 protobuf/siginfo.proto
 create mode 100644 test/zdtm/live/static/sigpending.c

--
1.7.11.7



More information about the CRIU mailing list