[CRIU] [PATCH 2/4] arm: don't touch the field user_regs_struct_t::ARM_ORIG_r0

Alexander Kartashov alekskartashov at parallels.com
Fri May 31 01:20:46 EDT 2013


The field user_regs_struct_t::ARM_ORIG_r0 isn't used to prevent
a syscall restart on ARM unlike x86.

Signed-off-by: Alexander Kartashov <alekskartashov at parallels.com>
Reported-by: Chanho Park <chanho61.park at samsusng.com>
---
 arch/arm/crtools.c |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/arch/arm/crtools.c b/arch/arm/crtools.c
index 0c76c5b..1ecb383 100644
--- a/arch/arm/crtools.c
+++ b/arch/arm/crtools.c
@@ -42,9 +42,6 @@ void parasite_setup_regs(unsigned long new_ip, void *stack, user_regs_struct_t *
 	if (stack)
 		regs->ARM_sp = (unsigned long)stack;
 
-	/* Avoid end of syscall processing */
-	regs->ARM_ORIG_r0 = -1;
-
 	/* Make sure flags are in known state */
 	regs->ARM_cpsr &= PSR_f | PSR_s | PSR_x | MODE32_BIT;
 }
-- 
1.7.10.4



More information about the CRIU mailing list