Commit b58a1248 authored by Alexander Kartashov's avatar Alexander Kartashov Committed by Pavel Emelyanov

arm: fixed the ARM version of the routine __cr_restore_rt

This patch fixes a stack corruption caused by the routine
since it pushes the registers R4, R5, R6, and R7
onto the stack that results in a restorer crash
while restoring a zombie (https://bugzilla.openvz.org/show_bug.cgi?id=2663)
Reported-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarAlexander Kartashov <alekskartashov@parallels.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent b18a4d95
...@@ -22,5 +22,7 @@ syscall_common: ...@@ -22,5 +22,7 @@ syscall_common:
ENTRY(__cr_restore_rt) ENTRY(__cr_restore_rt)
b sys_rt_sigreturn adr %r7, .nr_sys_rt_sigreturn
ldr %r7, [%r7]
svc #0
END(__cr_restore_rt) END(__cr_restore_rt)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment