]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerJiri Slaby <jslaby@suse.cz>
Thu, 29 Sep 2016 09:14:32 +0000 (11:14 +0200)
commitf78d413ad9adc66888da0660bce02a6c455e3edd
tree6a59f5cc6ca930188223e7c2d933f1a1e50b92cb
parentba2540d8680b26475e48bbf527eea6d70fcc1ad2
cris: buggered copy_from_user/copy_to_user/clear_user

commit eb47e0293baaa3044022059f1fa9ff474bfe35cb upstream.

* 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.

Acked-by: Jesper Nilsson <jesper.nilsson@axis.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
arch/cris/include/asm/uaccess.h