hexagon: use generic strncpy/strnlen from_user
authorArnd Bergmann <arnd@arndb.de>
Thu, 16 Jan 2020 14:58:41 +0000 (15:58 +0100)
committerArnd Bergmann <arnd@arndb.de>
Fri, 23 Jul 2021 12:40:00 +0000 (14:40 +0200)
commit2820cfdc08178c55efa1c0fa402f082ef09bfe70
tree41a09cdb09e78200e39af196dff143a977464936
parent2f69b04a88687626b044a66661c570ca0ca6a0fc
hexagon: use generic strncpy/strnlen from_user

Remove the hexagon implementation of strncpy/strnlen and instead use
the generic version.  The hexagon version reads the data twice for
strncpy() by doing an extra strnlen(), and it apparently lacks a check
for user_addr_max().

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/hexagon/Kconfig
arch/hexagon/include/asm/uaccess.h
arch/hexagon/kernel/hexagon_ksyms.c
arch/hexagon/mm/Makefile
arch/hexagon/mm/strnlen_user.S [deleted file]