WSL2-Linux-Kernel/arch/i386/lib
NeilBrown 7c12d81134 [PATCH] Make copy_from_user_inatomic NOT zero the tail on i386
As described in a previous patch and documented in mm/filemap.h,
copy_from_user_inatomic* shouldn't zero out the tail of the buffer after an
incomplete copy.

This patch implements that change for i386.

For the _nocache version, a new __copy_user_intel_nocache is defined similar
to copy_user_zeroio_intel_nocache, and this is ultimately used for the copy.

For the regular version, __copy_from_user_ll_nozero is defined which uses
__copy_user and __copy_user_intel - the later needs casts to reposition the
__user annotations.

If copy_from_user_atomic is given a constant length of 1, 2, or 4, then we do
still zero the destintion on failure.  This didn't seem worth the effort of
fixing as the places where it is used really don't care.

Signed-off-by: Neil Brown <neilb@suse.de>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: William Lee Irwin III <wli@holomorphy.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-06-25 10:01:09 -07:00
..
Makefile [LIB]: Consolidate _atomic_dec_and_lock() 2005-09-14 21:47:01 -07:00
bitops.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
checksum.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
delay.c [PATCH] Remove i386_ksyms.c, almost. 2005-06-23 09:45:11 -07:00
getuser.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
memcpy.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mmx.c [PATCH] Remove i386_ksyms.c, almost. 2005-06-23 09:45:11 -07:00
putuser.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
strstr.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
usercopy.c [PATCH] Make copy_from_user_inatomic NOT zero the tail on i386 2006-06-25 10:01:09 -07:00