]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit568a360a2957499e2fb2acd5dc1ecf3ed6da66b8
tree57a5ea580ba8fbde5940a7bc48db340b7b4e2fc8
parent743ce1430e5b2434e90c6ea1b18f6fc3ce6b27dc
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