]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0c02915e03fdb13d9f02d1676ffd0b85b733cf2b
treeabfebce45160da87e2aecb2619feb393694fa4e1
parent3891acd6e52c5641113584cbc16523571691627b
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