[PATCH v3 5/9] csky: use generic strncpy/strnlen from_user

Christoph Hellwig hch at lst.de
Thu Jul 22 06:01:17 PDT 2021


On Thu, Jul 22, 2021 at 02:48:10PM +0200, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd at arndb.de>
> 
> Remove the csky implemenation of strncpy/strnlen and instead use the
> generic versions.  The csky version is fairly slow because it always does
> byte accesses even for aligned data, and it lacks a checks for
> user_addr_max().

Looks good,

Reviewed-by: Christoph Hellwig <hch at lst.de>



More information about the linux-um mailing list