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)
committerSasha Levin <alexander.levin@verizon.com>
Mon, 3 Oct 2016 01:13:02 +0000 (21:13 -0400)
commite0176ee952bd7aeeee064e65b9d1f1ebb7a924fa
tree47acea986f8c1d53a8d227df6b3690d0ca2a6b31
parente73af4fdf9383308283d5aa51bcf36941db25ada
cris: buggered copy_from_user/copy_to_user/clear_user

[ Upstream commit eb47e0293baaa3044022059f1fa9ff474bfe35cb ]

* 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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
arch/cris/include/asm/uaccess.h