Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp520953pxv; Thu, 22 Jul 2021 06:05:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0iJ3ufmwefWbhlFIXF74p7qLkathehKYFEXPe1Yr+oNYvdNEvK59vv1Z25+XjMy7TywAn X-Received: by 2002:a05:6602:198:: with SMTP id m24mr17667513ioo.144.1626959151504; Thu, 22 Jul 2021 06:05:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626959151; cv=none; d=google.com; s=arc-20160816; b=IsGDrt2JeUVUHpaUQPTqTnqqvhBvJCjauF7Ji0Oy4Pd8RMgMQ4Nma4Vlg5Rw/QSaiO 8ICLXFgw8E6vZUKtUwhjoyuZ5BKf/ilqy90b+lGWCk9d2xlyAeNeCt1/2gaQkxikDBqg JWbyBRTuyg3zoAMtBRwjHGrFrP9NYaDm/kfx342tW607Qf0mCbqzl+KyEuAz68RCrPRd 7H4USyentajc0c+CgPSEWoBDkUBBrYhKhP7ph+wPFQxmVblGfchoJfM0bH8FGktvXMmC JlJodpZZhHc0N4p2b7RwGW/MMeYmRs3VWvQ0netsxiQzWl74psjZXrfNKH42o2oOYXr6 gOJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=jJxnfUfhaOxmFylKAVIhTxqeAGAmtMTvHrDhMwhbjw8=; b=wsJ4bieE/vOI3sQt6iYxfg2MaKYji4/gsXJIX5WVkQNzbQLw7YwNF+y1lcdy8VC5gQ yK+tbXSbqVTiVWHoK/b5FF1bRUKqgun5xKXftH2ilLDeV6V08Wx37ZdRCt91theYF7ut nJMlSkG8ipP604EllOlzRrhIgeHIn7ZtbArOg4HkmARZaYL527sjmTH0lpC58ythLo8v nSdNF/klZFW+F/JOi2AXDEVi8OepVJwuPAeiVSXytXuEaKQsoMfOMq0NZLcvJb3+b8hv r0Jl8Lb8D9L/mMMBNTPmiZDxDhAEEyuiAdvDOZO0Ie2zvNmfQRiH8sc+BpttP/Ydbqpo k2CA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h2si30865558ils.86.2021.07.22.06.05.39; Thu, 22 Jul 2021 06:05:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232078AbhGVMVE (ORCPT + 99 others); Thu, 22 Jul 2021 08:21:04 -0400 Received: from verein.lst.de ([213.95.11.211]:34104 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232087AbhGVMU7 (ORCPT ); Thu, 22 Jul 2021 08:20:59 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id EB11868C4E; Thu, 22 Jul 2021 15:01:31 +0200 (CEST) Date: Thu, 22 Jul 2021 15:01:31 +0200 From: Christoph Hellwig To: Arnd Bergmann Cc: linux-arch@vger.kernel.org, Arnd Bergmann , "James E.J. Bottomley" , Al Viro , Anton Ivanov , Brian Cain , Chris Zankel , Christian Borntraeger , Christoph Hellwig , Guo Ren , Heiko Carstens , Helge Deller , Jeff Dike , Linus Walleij , Max Filippov , Michal Simek , Richard Weinberger , Thomas Bogendoerfer , Vasily Gorbik , Vineet Gupta , Yoshinori Sato , linux-csky@vger.kernel.org, linux-hexagon@vger.kernel.org, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linux-s390@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-um@lists.infradead.org, linux-xtensa@linux-xtensa.org, uclinux-h8-devel@lists.sourceforge.jp Subject: Re: [PATCH v3 6/9] microblaze: use generic strncpy/strnlen from_user Message-ID: <20210722130131.GF26225@lst.de> References: <20210722124814.778059-1-arnd@kernel.org> <20210722124814.778059-7-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210722124814.778059-7-arnd@kernel.org> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 22, 2021 at 02:48:11PM +0200, Arnd Bergmann wrote: > From: Arnd Bergmann > > Remove the microblaze implemenation of strncpy/strnlen and instead use > the generic versions. The microblaze 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