[PATCH] arm: clone: restore stack pointer just after return from syscall

2012-12-11 Thread Filippo ARCIDIACONO
If the syscall returns with an error the stack pointer and r4 register are not restored because the instruction 'ldmnefd sp!, {r4}' is executed after branching to '__error' label. This bug has been spotted out by running './utstest clone 5' from LTP built with -fstack-protector-all compiler flag

Re: [PATCH] arm: clone: restore stack pointer just after return from syscall

2012-12-11 Thread Carmelo AMOROSO
On 11/12/2012 16.32, Filippo ARCIDIACONO wrote: If the syscall returns with an error the stack pointer and r4 register are not restored because the instruction 'ldmnefd sp!, {r4}' is executed after branching to '__error' label. This bug has been spotted out by running './utstest clone 5' from