aboutsummaryrefslogtreecommitdiffstats
path: root/arch/hexagon/Kconfig
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2020-01-16 15:58:41 +0100
committerArnd Bergmann <arnd@arndb.de>2021-07-23 14:40:00 +0200
commit2820cfdc08178c55efa1c0fa402f082ef09bfe70 (patch)
tree41a09cdb09e78200e39af196dff143a977464936 /arch/hexagon/Kconfig
parent2f69b04a88687626b044a66661c570ca0ca6a0fc (diff)
downloadlinux-2820cfdc08178c55efa1c0fa402f082ef09bfe70.tar.gz
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>
Diffstat (limited to 'arch/hexagon/Kconfig')
-rw-r--r--arch/hexagon/Kconfig2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/hexagon/Kconfig b/arch/hexagon/Kconfig
index e5a852080730..3bf4845fed4b 100644
--- a/arch/hexagon/Kconfig
+++ b/arch/hexagon/Kconfig
@@ -19,6 +19,8 @@ config HEXAGON
# GENERIC_ALLOCATOR is used by dma_alloc_coherent()
select GENERIC_ALLOCATOR
select GENERIC_IRQ_SHOW
+ select GENERIC_STRNCPY_FROM_USER
+ select GENERIC_STRNLEN_USER
select HAVE_ARCH_KGDB
select HAVE_ARCH_TRACEHOOK
select NEED_SG_DMA_LENGTH