]> 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)
commitcf293d424778305b89468348522a795dc767cf38
tree5b3f3b0e15d2be6654bc4f8e6c068b44a975bbc6
parent35df92194ba876cf9ee78227d92bc625b604fc80
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