android_kernel_xiaomi_sm8350/arch/powerpc/lib
Mark Nelson f72b728bf1 powerpc: Fix 64bit __copy_tofrom_user() regression
This fixes a regression introduced by commit
a4e22f02f5 ("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>
2009-02-26 14:02:54 +11:00
..
alloc.c
checksum_32.S
checksum_64.S
code-patching.c
copy_32.S
copypage_64.S
copyuser_64.S powerpc: Fix 64bit __copy_tofrom_user() regression 2009-02-26 14:02:54 +11:00
crtsavres.S
devres.c
div64.S
dma-noncoherent.c powerpc: Rename struct vm_region to avoid conflict with NOMMU 2008-12-21 14:21:14 +11:00
feature-fixups-test.S
feature-fixups.c
locks.c
Makefile powerpc/ppc32: static ftrace fixes for PPC32 2008-11-28 14:08:07 +01:00
mem_64.S
memcpy_64.S powerpc: Fix 64bit memcpy() regression 2009-02-26 14:02:53 +11:00
rheap.c powerpc: Fix corruption error in rh_alloc_fixed() 2008-12-17 10:06:14 -06:00
sstep.c powerpc: Don't emulate mr. instructions 2009-02-10 14:39:07 +11:00
string.S
usercopy_64.c