frv: fix clear_user()
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 19 Aug 2016 00:54:02 +0000 (20:54 -0400)
committerWilly Tarreau <w@1wt.eu>
Mon, 6 Feb 2017 22:33:00 +0000 (23:33 +0100)
commit233d4b179cdd9440c3437bbeb4281a29772b5eba
tree947d9bebd06b1b892a8e5b3445b131a8e95dfd23
parent44ccf7f165944ddfee863e33feeab32d0c231181
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: Willy Tarreau <w@1wt.eu>
arch/frv/include/asm/uaccess.h