openrisc: uaccess: Add user address space check to access_ok
authorStafford Horne <shorne@gmail.com>
Tue, 4 Aug 2020 01:41:54 +0000 (10:41 +0900)
committerStafford Horne <shorne@gmail.com>
Sat, 8 Aug 2020 22:57:21 +0000 (07:57 +0900)
commit55b2662ec665cc8b592809a011fe807b05370ab8
treeabfebce45160da87e2aecb2619feb393694fa4e1
parentd99596645f7d66b94b35650e732a42f4c701e11b
openrisc: uaccess: Add user address space check to access_ok

Now that __user annotations are fixed for openrisc uaccess api's we can
add checking to the access_ok macro.  This patch adds the __chk_user_ptr
check, on normal builds the added check is a nop.

Signed-off-by: Stafford Horne <shorne@gmail.com>
Reviewed-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
arch/openrisc/include/asm/uaccess.h