[CRIU] [PATCH 7/8] restore: Add restoration of alternative signal stack

Alexander Kartashov alekskartashov at parallels.com
Tue Jun 18 01:19:16 EDT 2013


On 06/17/2013 08:47 PM, Cyrill Gorcunov wrote:
> +/*
> + * FIXME Convert it to inline helper, which requires
> + *	 to unweave types mess we've generated for
> + *	 run-time data.
> + */
> +#define setup_sas(sigframe, sas)							\
> +do {											\
> +	if ((sas)) {									\
> +		(sigframe)->uc.uc_stack.ss_sp	= (void *)decode_pointer((sas)->ss_sp);	\
> +		(sigframe)->uc.uc_stack.ss_flags= (int)(sas)->ss_flags;			\
> +		(sigframe)->uc.uc_stack.ss_size	= (size_t)(sas)->ss_size;		\
> +	}										\
> +} while (0)

The field uc resiges in the field sig of a sigframe on ARM so the macro 
RT_SIGFRAME_UC()
should be used to access the field. Please merge the attached patch.

-- 
Sincerely yours,
Alexander Kartashov

Intern
Core team

www.parallels.com

Skype: aleksandr.kartashov
Email: alekskartashov at parallels.com



More information about the CRIU mailing list