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)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 20 Nov 2016 01:01:38 +0000 (01:01 +0000)
commita1599d819d3dd1a50d1c11bc9cb8e5d751086f64
tree4487a5c11a85fca91ff7dff1db183615ffcfd31c
parent33734b78269e1d211cd1288c49756636042aa31e
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>
[bwh: Backported to 3.2: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/cris/include/asm/uaccess.h