[CRIU] [PATCH 7/9] restore: catch task on the exit from sigreturn

Cyrill Gorcunov gorcunov at gmail.com
Thu Sep 12 10:20:56 EDT 2013


On Thu, Sep 12, 2013 at 05:24:39PM +0400, Andrey Vagin wrote:
> --- a/pie/restorer.c
> +++ b/pie/restorer.c
> @@ -931,6 +931,7 @@ long __export_restore_task(struct task_restore_core_args *args)
>  	 * pure assembly since we don't need any additional
>  	 * code insns from gcc.
>  	 */
> +	asm("int $0x03");
>  	ARCH_RT_SIGRETURN(new_sp);

This should be wrapped with some arch-dep macro so ARM would be able to use it.
Also gas should understand on-byte instruction asm("int3") iirc. Anyway, the
series looks cool, thanks Andrew!


More information about the CRIU mailing list