frv: fix clear_user()
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 19 Aug 2016 00:54:02 +0000 (20:54 -0400)
committerSasha Levin <alexander.levin@verizon.com>
Mon, 3 Oct 2016 01:13:07 +0000 (21:13 -0400)
commitbd2f050b78f082d449b28a4a0724385eb29aaddb
treea7d780583bdc4d7ba0bc65e53a8c2c34779748a0
parente0176ee952bd7aeeee064e65b9d1f1ebb7a924fa
frv: fix clear_user()

[ Upstream commit 3b8767a8f00cc6538ba6b1cf0f88502e2fd2eb90 ]

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

Cc: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
arch/frv/include/asm/uaccess.h