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

Pavel Emelyanov xemul at virtuozzo.com
Mon Mar 13 11:08:49 PDT 2017


On 03/13/2017 07:52 PM, Cyrill Gorcunov wrote:
> 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

Would you please show how this thing would look like? It's
not clear from these patches.

> 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(-)
> 



More information about the CRIU mailing list