Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp895782pxb; Thu, 17 Feb 2022 17:51:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJz+dD46ULenjSghabYw87KCXFxREeIwzHkNXf0H1nlxcvk6f/SvhfL9qQ0aR3ed9TsKQPWn X-Received: by 2002:a17:903:11c6:b0:14f:4686:e262 with SMTP id q6-20020a17090311c600b0014f4686e262mr5467802plh.15.1645149072972; Thu, 17 Feb 2022 17:51:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645149072; cv=none; d=google.com; s=arc-20160816; b=D7gr0DYJkrC9hS5wRKxJlDeeC88Q/ib+Q3wcevdg8BG+gqXmcN2AKQ0/H+uGs1ZVn8 j7Kg1OTKQ97lYJPcgBLCO2mIj5vgiIjJUyygd4+vEfpzQXnn1kC0X/vbQ9i5PgayJbvh ox7ipWOL4c1J1hIrsE+uRXqpbHG3y/P8oowRX9n5rsi7A9/TSyIYJzYx6FfDhQWNHKDz 5O5MGeCuge9S9ozuk1AYHXDwmYdn2legm0GRZpq3ky28G4JMQ7Fn4SbAqbdK4tvJU2/h Q6cTwDL9zCqlrfhRx9JUyvwBUEHpOl9dtFw6riJ84Pdj6TDdgS34Jq8scB57ouS8WBrm g71A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=A1TM+JUA6j0YK99Li6L6jAjOVikkBDSgf2tTyPG4418=; b=eyFJe3mfk6reoHXdHXl6eV7xmBWjsW1eh+CU6lAl4r7mSjuyZTXuG9p4ivCJhOs+PI tbdKsKU5HsF7eVjnMydrqd4o3sXhrTltm8ZpkceBNVF6KNkvhsu+7wLnbruLqu4HioTa rpTQK0PLxJ2q2yS888ADEvXhwHlVrvPIM7Uj4ATYtOluwjaTW2WG8MnGxF8boIoDBhvJ fToZPboVke/wVsA1r73lw4ZcA1lXGB5hvTTDN5BAlpAlCMrAi2BmJcm1vNeM2Odwvd3K k/YufbLFIq+rFR8Ynmfk6OLhSjhCvvOs0v7eLsr51n/UKw12H60Cmu4nYkd+OreaAM15 EuJQ== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id c21si9779458pgj.291.2022.02.17.17.51.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Feb 2022 17:51:12 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6233A19E0A0; Thu, 17 Feb 2022 17:50:51 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231376AbiBRBvE (ORCPT + 99 others); Thu, 17 Feb 2022 20:51:04 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:54026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231344AbiBRBvC (ORCPT ); Thu, 17 Feb 2022 20:51:02 -0500 Received: from zeniv-ca.linux.org.uk (zeniv-ca.linux.org.uk [IPv6:2607:5300:60:148a::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07B7653E3F; Thu, 17 Feb 2022 17:50:46 -0800 (PST) Received: from viro by zeniv-ca.linux.org.uk with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nKsPs-002csm-Jn; Fri, 18 Feb 2022 01:50:36 +0000 Date: Fri, 18 Feb 2022 01:50:36 +0000 From: Al Viro To: Christophe Leroy Cc: Arnd Bergmann , Linus Torvalds , Christoph Hellwig , "linux-arch@vger.kernel.org" , "linux-mm@kvack.org" , "linux-api@vger.kernel.org" , "arnd@arndb.de" , "linux-kernel@vger.kernel.org" , "mark.rutland@arm.com" , "dalias@libc.org" , "linux-ia64@vger.kernel.org" , "linux-sh@vger.kernel.org" , "peterz@infradead.org" , "jcmvbkbc@gmail.com" , "guoren@kernel.org" , "sparclinux@vger.kernel.org" , "linux-hexagon@vger.kernel.org" , "linux-riscv@lists.infradead.org" , "will@kernel.org" , "ardb@kernel.org" , "linux-s390@vger.kernel.org" , "bcain@codeaurora.org" , "deller@gmx.de" , "x86@kernel.org" , "linux@armlinux.org.uk" , "linux-csky@vger.kernel.org" , "mingo@redhat.com" , "geert@linux-m68k.org" , "linux-snps-arc@lists.infradead.org" , "linux-xtensa@linux-xtensa.org" , "hca@linux.ibm.com" , "linux-alpha@vger.kernel.org" , "linux-um@lists.infradead.org" , "linux-m68k@lists.linux-m68k.org" , "openrisc@lists.librecores.org" , "green.hu@gmail.com" , "shorne@gmail.com" , "monstr@monstr.eu" , "tsbogend@alpha.franken.de" , "linux-parisc@vger.kernel.org" , "nickhu@andestech.com" , "linux-mips@vger.kernel.org" , "dinguyen@kernel.org" , "ebiederm@xmission.com" , "richard@nod.at" , "akpm@linux-foundation.org" , "linuxppc-dev@lists.ozlabs.org" , "davem@davemloft.net" Subject: Re: [PATCH v2 00/18] clean up asm/uaccess.h, kill set_fs for good Message-ID: References: <20220216131332.1489939-1-arnd@kernel.org> <00496df2-f9f2-2547-3ca3-7989e4713d6b@csgroup.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <00496df2-f9f2-2547-3ca3-7989e4713d6b@csgroup.eu> Sender: Al Viro X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 17, 2022 at 07:20:11AM +0000, Christophe Leroy wrote: > And we have also > user_access_begin()/user_read_access_begin()/user_write_access_begin() > which call access_ok() then do the real work. Could be made generic with > call to some arch specific __user_access_begin() and friends after the > access_ok() and eventually the might_fault(). Not a good idea, considering the fact that we do not want to invite uses of "faster" variants...