Re: [PATCHv2] arm: put_user: fix possible data corruption in put_user

2014-05-07 Thread Andrey Ryabinin
On 05/07/14 00:13, Nicolas Pitre wrote: > Please push this patch into Russell's patch system. > > Thanks. > Done - http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=8051/1 Thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message

Re: [PATCHv2] arm: put_user: fix possible data corruption in put_user

2014-05-06 Thread Nicolas Pitre
On Tue, 6 May 2014, Andrey Ryabinin wrote: > According to arm procedure call standart r2 register is call-cloberred. > So after the result of x expression was put into r2 any following > function call in p may overwrite r2. To fix this, the result of p > expression must be saved to the temporary v

[PATCHv2] arm: put_user: fix possible data corruption in put_user

2014-05-06 Thread Andrey Ryabinin
According to arm procedure call standart r2 register is call-cloberred. So after the result of x expression was put into r2 any following function call in p may overwrite r2. To fix this, the result of p expression must be saved to the temporary variable before the assigment x expression to __r2.