mips: sanitize __access_ok()
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 27 Dec 2016 15:10:53 +0000 (10:10 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 6 Apr 2017 06:08:06 +0000 (02:08 -0400)
commitf0a955f4eeec0f16bdbdd0fb15d8ec0937d1de23
tree1e77a3e2c8d597c699ea50ac16f1e2d83a232b26
parent054838bc019c90511d034fb796dc8c7715460fc2
mips: sanitize __access_ok()

for one thing, the last argument is always __access_mask and had been such
since 2.4.0-test3pre8; for another, it can bloody well be a static inline -
-O2 or -Os, __builtin_constant_p() propagates through static inline calls.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/mips/include/asm/uaccess.h
arch/mips/kernel/mips-r2-to-r6-emul.c
arch/mips/kernel/syscall.c
arch/mips/oprofile/backtrace.c