[CRIU] [PATCH 0/7] compel: Add initial sas support upon infection

Cyrill Gorcunov gorcunov at openvz.org
Mon Mar 13 09:52:12 PDT 2017


Hi here is a series which implements basic signal alternative stack (sas)
support from inside of libcompel. Basically the idea is simple

 - in compel_infect we immedeately fetch target sas and put it into
   the sigframe, so it wont be loosed in case of sigreturn triggering

 - in compel_prepare_thread we fetch per-thread sas

TODO:

 - make some sane API for sas fetching and start using it in criu itself

Cyrill Gorcunov (7):
  compel: infect -- Don't forget to fetch sas early
  compel: Update comment for parasite_ctl::r_thread_stack
  compel: Reserve memory for thread sas
  compel: parasite_trap -- Drop redundant @ctl argument
  compel: Extract compel_execute_syscall into general helper
  compel: Split arch_fetch_sas helper
  compel: Fetch thread sas in compel_prepare_thread

 compel/arch/aarch64/src/lib/infect.c | 16 ++++++++++
 compel/arch/arm/src/lib/infect.c     | 16 ++++++++++
 compel/arch/ppc64/src/lib/infect.c   | 16 ++++++++++
 compel/arch/x86/src/lib/infect.c     | 22 +++++++++++++
 compel/include/infect-priv.h         |  8 ++++-
 compel/src/lib/infect.c              | 60 ++++++++++++++++++++++++++----------
 6 files changed, 121 insertions(+), 17 deletions(-)

-- 
2.7.4



More information about the CRIU mailing list