[CRIU] [PATCH] arm: don't use the register R12 in the routine syscall_common()

Pavel Emelyanov xemul at parallels.com
Thu Sep 26 07:56:49 EDT 2013


On 09/25/2013 01:10 PM, Alexander Kartashov wrote:
> The register R12 has a special meaning when syscalls are hooked
> with ptrace() in ARM that results in a dumpee context corruption
> on an injected blob unmap. Note that this patch doesn't solve
> the problem entirely since the compiler may corrupt the register
> before issuing a call to the routine sys_munmap(); however
> we assume that a sufficiently decent compiler doesn't.
> 
> Signed-off-by: Alexander Kartashov <alekskartashov at parallels.com>
> Tested-by: Andrew Vagin <avagin at parallels.com>

Applied


More information about the CRIU mailing list