Thread (26 messages) 26 messages, 7 authors, 2021-07-26

Re: [PATCH v3 3/9] hexagon: use generic strncpy/strnlen from_user

From: Christoph Hellwig <hch@lst.de>
Date: 2021-07-22 13:00:32
Also in: linux-arch, linux-mips, linux-s390, lkml

On Thu, Jul 22, 2021 at 02:48:08PM +0200, Arnd Bergmann wrote:
From: Arnd Bergmann <arnd@arndb.de>

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().

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Looks good,

Reviewed-by: Christoph Hellwig <hch@lst.de>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help