frv: fix clear_user()
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 19 Aug 2016 00:54:02 +0000 (20:54 -0400)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 20 Nov 2016 01:01:38 +0000 (01:01 +0000)
commitfd435487db729e9485f3edcd3963fcc23054195f
treefe25d9287a1519d9ae7b1e5dc2cdbdc35e76e33e
parenta1599d819d3dd1a50d1c11bc9cb8e5d751086f64
frv: fix clear_user()

commit 3b8767a8f00cc6538ba6b1cf0f88502e2fd2eb90 upstream.

It should check access_ok().  Otherwise a bunch of places turn into
trivially exploitable rootholes.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/frv/include/asm/uaccess.h