cris: buggered copy_from_user/copy_to_user/clear_user
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 18 Aug 2016 23:34:00 +0000 (19:34 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 13 Sep 2016 21:49:38 +0000 (17:49 -0400)
commiteb47e0293baaa3044022059f1fa9ff474bfe35cb
tree57a5ea580ba8fbde5940a7bc48db340b7b4e2fc8
parent9ad18b75c2f6e4a78ce204e79f37781f8815c0fa
cris: buggered copy_from_user/copy_to_user/clear_user

* copy_from_user() on access_ok() failure ought to zero the destination
* none of those primitives should skip the access_ok() check in case of
small constant size.

Cc: stable@vger.kernel.org
Acked-by: Jesper Nilsson <jesper.nilsson@axis.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/cris/include/asm/uaccess.h