diff options
author | Andrey Ryabinin <a.ryabinin@samsung.com> | 2014-05-07 11:07:25 +0400 |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2014-06-20 19:33:59 +0400 |
commit | add232a1a6031431736e0c774cb8e1e7fe89db60 (patch) | |
tree | 545a07b3f21d8b03d6ec2976666bc0d48cadf593 /drivers | |
parent | 7e84ef36ae2501e1155e9011ead7e59aadd0910d (diff) | |
download | linux-add232a1a6031431736e0c774cb8e1e7fe89db60.tar.xz |
ARM: 8051/1: put_user: fix possible data corruption in put_user
commit 537094b64b229bf3ad146042f83e74cf6abe59df upstream.
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.
Signed-off-by: Andrey Ryabinin <a.ryabinin@samsung.com>
Reviewed-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions