]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Fix 64bit __copy_tofrom_user() regression
authorMark Nelson <markn@au1.ibm.com>
Wed, 25 Feb 2009 13:46:24 +0000 (13:46 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 26 Feb 2009 03:02:54 +0000 (14:02 +1100)
commitedefed76cdeb52041e6615c6fcb88a9066b8a50e
treeedc7e3f0ad62669a188c24d92831565dc5c35bfd
parent506812cfc10e53093c7d1ca6fd5ad3a6216a4415
powerpc: Fix 64bit __copy_tofrom_user() regression

This fixes a regression introduced by commit
22d8fed067fc749ea13dd7be4b3f862c9e3f1901 ("powerpc: Update 64bit
__copy_tofrom_user() using CPU_FTR_UNALIGNED_LD_STD").

The same bug that existed in the 64bit memcpy() also exists here so fix
it here too. The fix is the same as that applied to memcpy() with the
addition of fixes for the exception handling code required for
__copy_tofrom_user().

This stops us reading beyond the end of the source region we were told
to copy.

Signed-off-by: Mark Nelson <markn@au1.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/lib/copyuser_64.S