Skip to content
Commit ff06dffb authored by David S. Miller's avatar David S. Miller
Browse files

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: default avatarDavid S. Miller <davem@davemloft.net>
parent 29af0eba
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment