]> git.baikalelectronics.ru Git - kernel.git/commit
xtensa: add missing __user annotations to asm/uaccess.h
authorMax Filippov <jcmvbkbc@gmail.com>
Fri, 22 May 2020 18:40:20 +0000 (11:40 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Fri, 22 May 2020 23:09:00 +0000 (16:09 -0700)
commitd8bf743b9d54e7449a444375bf550014a49c006c
tree5b3f3b0e15d2be6654bc4f8e6c068b44a975bbc6
parent209abdfea91b6951e6de3720d5e89a4fa9234982
xtensa: add missing __user annotations to asm/uaccess.h

clear_user, strncpy_user, strnlen_user and their helpers operate on user
pointers, but don't have their arguments marked as __user.
Add __user annotation to userspace pointers of those functions.
Fix open-coded access check in the strnlen_user while at it.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/include/asm/uaccess.h