Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp519769pxv; Thu, 22 Jul 2021 06:04:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMwOqPGoDVimp0lNSZNVc6Cia0Yjtn1dR5fcnISmSwo9McxABRRPKR4L+TW1Z/5K81loJD X-Received: by 2002:a05:6402:1a3c:: with SMTP id be28mr53978132edb.15.1626959076941; Thu, 22 Jul 2021 06:04:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626959076; cv=none; d=google.com; s=arc-20160816; b=1Eo6HG+d1snXet9drDrJD/Fc12nK/c1wFq1rmLUvljY44kZVZsAteoRpQ+3FaXA4YW tb1cW5p0GpX/MJNsCamayNK4kOrRzOHpjdHO7Uav1ZeEQojqvwteSStRYjb/+BlKOJa0 Ms8RUFtA76h6mkGrdwKWb/2mQ0L4DNEMGFrosGbVgvGi8sHwbKIuz6BASMOpfbjqpC3+ n7xtrH1Q3x9rtHIOWv0pk1dsKic+k5zbIIBdph2C0AdOEbJh6wgoNzPICPF4+ODfDJnw 7z8QaLtvgRmtX8kqcYsG//3envUcYwKhNbOEqE3auHTgWChzE+54XvklGADS+T/n0H3X 63sQ== 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=pAA3Ue748gi7Veg77+G5TdPo41QDAXazabvV4rWLtcc=; b=AUKpky/ve2nTLUjDMK6MoRxkQyMHF7fI3wvcS4od4sueBK9bxbLBwTL4G32bcCLisG CvOfSCIoq+YoSA51LPVXa+0nufFkqyvtlngr4+fn8+jP/Xvo6dW2gfAMQLldF4HAGKt+ emzmMcJWgXEDIWzXcDlU2VbRLcC48McPBDhJH5ieP7f3YRa8jX0N0Oc1zgM1kd/4ZBqW 8NadqiHG7TSzHSVLZcqgAoAn/ZpZ7lRKLcI3zZCbriNO7CgXYaVmqJ8Me5RcSSjX6hiO V5L11s+Xt6u8CFoIz0WHk476hptrnZTb46JMboTEUciTBBGU/8G8RAGmYdpPP4vcARwV z8Pw== 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 gv42si30038201ejc.215.2021.07.22.06.04.12; Thu, 22 Jul 2021 06:04:36 -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 S232071AbhGVMU7 (ORCPT + 99 others); Thu, 22 Jul 2021 08:20:59 -0400 Received: from verein.lst.de ([213.95.11.211]:34079 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232056AbhGVMUw (ORCPT ); Thu, 22 Jul 2021 08:20:52 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 4EF0468BFE; Thu, 22 Jul 2021 15:01:17 +0200 (CEST) Date: Thu, 22 Jul 2021 15:01:17 +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 5/9] csky: use generic strncpy/strnlen from_user Message-ID: <20210722130117.GE26225@lst.de> References: <20210722124814.778059-1-arnd@kernel.org> <20210722124814.778059-6-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210722124814.778059-6-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:10PM +0200, Arnd Bergmann wrote: > From: Arnd Bergmann > > 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