Files
linux/arch/arm/include/asm
Will Deacon 72b31b6685 ARM: 6489/1: thumb2: fix incorrect optimisation in usracc
commit 1142b71d85 upstream.

Commit 8b592783 added a Thumb-2 variant of usracc which, when it is
called with \rept=2, calls usraccoff once with an offset of 0 and
secondly with a hard-coded offset of 4 in order to avoid incrementing
the pointer again. If \inc != 4 then we will store the data to the wrong
offset from \ptr. Luckily, the only caller that passes \rept=2 to this
function is __clear_user so we haven't been actively corrupting user data.

This patch fixes usracc to pass \inc instead of #4 to usraccoff
when it is called a second time.

Reported-by: Tony Thompson <tony.thompson@arm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-12-09 13:27:03 -08:00
..
2009-02-01 11:01:22 +05:30
2009-10-11 16:25:06 +01:00
2009-01-02 12:34:55 +00:00
2009-03-15 21:01:20 -04:00
2009-05-29 08:40:02 -07:00
2009-09-12 12:04:37 +01:00
2010-01-18 10:19:11 -08:00
2009-09-12 11:48:09 +01:00
2009-09-09 13:29:18 -07:00
2009-08-17 20:02:06 +01:00
2009-08-17 20:02:06 +01:00
2009-08-15 12:36:00 +01:00
2008-09-04 09:46:11 +01:00
2008-11-27 12:37:59 +00:00
2009-02-01 11:01:23 +05:30
2008-09-06 12:10:45 +01:00