]> git.baikalelectronics.ru Git - kernel.git/commit
sparc: Add full proper error handling to strncpy_from_user().
authorDavid S. Miller <davem@davemloft.net>
Wed, 23 May 2012 00:53:19 +0000 (17:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 May 2012 06:32:27 +0000 (23:32 -0700)
commit45b3facbbbfb663510d752d25aad1c0e46e1f68d
tree0845d6acfaf8221fb5d6ae3281cb1c33a8212cff
parent487844698e53f2eb9271c3f8d95bf2dea0f8e911
sparc: Add full proper error handling to strncpy_from_user().

Linus removed the end-of-address-space hackery from
fs/namei.c:do_getname() so we really have to validate these edge
conditions and cannot cheat any more (as x86 used to as well).

Move to a common C implementation like x86 did.  And if both
src and dst are sufficiently aligned we'll do word at a time
copies and checks as well.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/uaccess.h
arch/sparc/include/asm/uaccess_32.h
arch/sparc/include/asm/uaccess_64.h
arch/sparc/lib/Makefile
arch/sparc/lib/ksyms.c
arch/sparc/lib/strncpy_from_user_32.S [deleted file]
arch/sparc/lib/strncpy_from_user_64.S [deleted file]
arch/sparc/lib/usercopy.c