MIPS: Enable hardened usercopy
authorPaul Burton <paul.burton@imgtec.com>
Sat, 8 Oct 2016 21:47:14 +0000 (22:47 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 10 Oct 2016 13:28:53 +0000 (15:28 +0200)
commitcabca8c098f00c91aeb59170e86e5c5fa4f494c2
tree01ccf96a4a2ec7ac3f6ad234ea49355756791e39
parent3f5f0a4475e13345326061f00c68f428232ba2bc
MIPS: Enable hardened usercopy

Enable CONFIG_HARDENED_USERCOPY checks for MIPS, calling check_object
size in all of copy_{to,from}_user(), __copy_{to,from}_user() &
__copy_{to,from}_user_inatomic().

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/14371/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/Kconfig
arch/mips/include/asm/uaccess.h