From: David S. Miller Date: Wed, 23 May 2012 00:53:19 +0000 (-0700) Subject: sparc: Add full proper error handling to strncpy_from_user(). X-Git-Tag: v3.5-rc1~90^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff06dffbc8abfc60d6a0332f058f1d1bb01abb31;p=pandora-kernel.git 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 --- Reading git-diff-tree failed