aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/kernel/entry-header.S
diff options
context:
space:
mode:
authorAndrey Ryabinin <a.ryabinin@samsung.com>2014-05-07 08:07:25 +0100
committerShow Liu <show.liu@linaro.org>2014-06-18 12:05:21 +0800
commit2cbbfce93bbb6190113d65bb1848b103e7d805cc (patch)
tree8f017c8d54d78502c3922790c16a1cd26af4ad0e /arch/arm/kernel/entry-header.S
parentb8ed6e870ad2ace9719d567d122e0724b0e3910c (diff)
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/arm/kernel/entry-header.S')
0 files changed, 0 insertions, 0 deletions