From: Christoph Hellwig Subject: Re: [PATCH 4/6] [v2] arc: use generic strncpy/strnlen from_user Date: Mon, 17 May 2021 08:16:56 +0200 Message-ID: <20210517061656.GB23581@lst.de> References: <20210515101803.924427-1-arnd@kernel.org> <20210515101803.924427-5-arnd@kernel.org> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: <20210515101803.924427-5-arnd@kernel.org> List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Arnd Bergmann Cc: linux-arch@vger.kernel.org, Arnd Bergmann , Christoph Hellwig , Al Viro , Vineet Gupta , Yoshinori Sato , Brian Cain , Geert Uytterhoeven , Paul Walmsley , Palmer Dabbelt , Albert Ou , Jeff Dike , Richard Weinberger , Anton Ivanov , Sid Manning , Andrew Morton , Mike Rapoport , linux-snps-arc@lists.infradead.org, linux-kernel@vger.kernel.org, uclinux-h8-devel@lists.sourceforge.jp, linux-hexagon@vger On Sat, May 15, 2021 at 12:18:01PM +0200, Arnd Bergmann wrote: > From: Arnd Bergmann > > Most per-architecture versions of these functions are broken > in some form, and they are almost certainly slower than the > generic code as well. > > This version is fairly slow because it always does byte accesses > even for aligned data, and its checks for user_addr_max() differ > from the generic code. > > Remove the ones for arc and instead use the generic version. Same comment as for hexaon before.