Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp564434pxv; Thu, 22 Jul 2021 07:06:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyt/5AYTBgbLzDqV+HiPo2iFY6Br+lejbjjOv2t95UffACND0scDv7JmxEF7RFlqH2nhw/r X-Received: by 2002:a17:907:3e02:: with SMTP id hp2mr102520ejc.4.1626962766300; Thu, 22 Jul 2021 07:06:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626962766; cv=none; d=google.com; s=arc-20160816; b=D4oJ4cufiDx2jEwBEKlT0feYFcPsEpYBd29B89BEfH7LVMjDEGcdINrRfVG1Svjju7 9AhoWZcG3WApdJKdoR6JZlUwMXfmYo3S6eITBjWZF1jk5Ws7Kjvcqp20EFGx+yjO2PG3 0ttRBYAavT9GhjJb3zIsHHEzqqn4fTq0Z4OkAuyLzyENt/9GpvtEf+6FoKD/y5AB8X3w PaVYMn53zi0JWMG7AmyIRFAKnKhTRE3WbzyGZtR/PJ0fy5cfcOiEPkLu26ZswEPTOMVZ thaf1/EroG14ymCDfJVStj/L9u4tIGFtlsgk5EDhuQqQwVOtLCoOgWvx7BmRe08hN3kC fLxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=xFD79Sn4KWdJOonaSwemYkgk+mZFA+sfVN2bpeyZ2BA=; b=BDiDMUbAYjP5Ei6Vy56OiVAYt7+I8tAgxHUabykzkTsxYCPKr+MVfzq0fa5pHCUEuK jhk7UjjJa6EtREWwrPWdD1PMA9XVr10azKLJWQP38nCPjU9PvCXmdWopeePKVrmWKY9c mf9kU5aV+s8hMezlLzqAgGSVn3wGEFFFIVhULAe77sQVOAdX5AhbfE0qPoWR/t5ZWooO q2LfFOQqGThBFL37GXrmTy1CdCP/LJYzfjq7yS6p1SthOB5M+FlPsZeb46qrOeL7fibG 2Tryh8tAw8KvM+pQUgsgP1eJ3XIFg8RFRWm8YTA8kJ5qTvbk+Y5cQ0FdI4VA1c8wlGIR bEFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FAJNHnFo; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s11si31999364edd.46.2021.07.22.07.05.41; Thu, 22 Jul 2021 07:06:06 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FAJNHnFo; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232227AbhGVNVY (ORCPT + 99 others); Thu, 22 Jul 2021 09:21:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:37064 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231925AbhGVNVX (ORCPT ); Thu, 22 Jul 2021 09:21:23 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2101B6128A; Thu, 22 Jul 2021 14:01:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626962518; bh=RmFOlaV6cy8f6I9NP3ukwHIYeNH7OwEP2FaF3KMVtFM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=FAJNHnFo1L7vDVOiC5UpRkaDx4pid4TNdNlKZLrXeCR+FFSWM3S5SOfKHU3NBCcgi x/mbKRZuCP5sBZWLRH0QyC3jTezIcTdgPNuJkn722HgIPBdCNBSTL40ELD6XBnTs/y 1ZjVc7/Oq6j6jnQceie9Da0nul67XzXgLTZj2GmS3GDKLgwa7unHRN+n/B9s9iygfR gHGpjMzt0PFMYc3FrdBQF57NRhZXStlwHBGM47znuAnJK24bV4xEdnVgYTuM2O9Q9l cPPu7vcO0sT3ruel4hr978oxdF6OQbMo96r5w0ZtG5V3ocVCUbJ85hWT9lKdyIIY8o uhvj1YnfZDenA== Received: by mail-wr1-f42.google.com with SMTP id c15so6078609wrs.5; Thu, 22 Jul 2021 07:01:58 -0700 (PDT) X-Gm-Message-State: AOAM531dTsLBoyXY46jXwvz5czFANrce3/1ohs2mSfcIRgYYh2V2YWfX anOKN93+gKWUubFcGJ5kbFbKeL8DFH7/BeQeBE0= X-Received: by 2002:a5d:438c:: with SMTP id i12mr49853wrq.99.1626962516717; Thu, 22 Jul 2021 07:01:56 -0700 (PDT) MIME-Version: 1.0 References: <20210722124814.778059-1-arnd@kernel.org> <20210722124814.778059-10-arnd@kernel.org> <29adc1c164805e355b37d1d4668ebda9fb7fa872.camel@sipsolutions.net> In-Reply-To: <29adc1c164805e355b37d1d4668ebda9fb7fa872.camel@sipsolutions.net> From: Arnd Bergmann Date: Thu, 22 Jul 2021 16:01:39 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 9/9] asm-generic: reverse GENERIC_{STRNCPY_FROM, STRNLEN}_USER symbols To: Johannes Berg Cc: linux-arch , 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, "open list:QUALCOMM HEXAGON..." , linux-ia64@vger.kernel.org, Linux Kernel Mailing List , "open list:BROADCOM NVRAM DRIVER" , Parisc List , linux-s390 , "open list:SYNOPSYS ARC ARCHITECTURE" , linux-um , "open list:TENSILICA XTENSA PORT (xtensa)" , "moderated list:H8/300 ARCHITECTURE" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 22, 2021 at 3:57 PM Johannes Berg wrote: > > > > > The remaining architectures at the moment are: ia64, mips, parisc, > > s390, um and xtensa. We should probably convert these as well, but > > I'm not sure it makes sense to convert um, the implementation uses > strncpy(), and that should use the libc implementation, which is tuned > for the actual hardware that the binary is running on, so performance > wise that might be better. > > OTOH, maybe this is all in the noise given the huge syscall overhead in > um, so maybe unifying it would make more sense. Right, makes sense. I suppose if we end up converting mips and s390, we should just do arch/um and the others as well for consistency, even if that adds some overhead. Arnd