Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp1112868pxb; Wed, 16 Feb 2022 11:17:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJzrgVtUOfs3UVVDFZBDyLbMbi+4brJkOeZYjtmxhmzbqM6BLBMnhC2hv2m5p98Yned/K2TK X-Received: by 2002:a17:902:bb89:b0:14d:85a7:6eea with SMTP id m9-20020a170902bb8900b0014d85a76eeamr4031615pls.158.1645039079119; Wed, 16 Feb 2022 11:17:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645039079; cv=none; d=google.com; s=arc-20160816; b=DlciAVD6/oXkwIXOUNZX2XKA+xjVsFlQTGIYMZ9gbk/Mv7p7BX3Ec/jm/Jma0JgMu1 SDkfTxkZNe8aDpaJ+ESr4iCRyK4+hYz2RZmUAhTJsEEO9g3B80tmUcJkF9fpsBm+IDWL LQN7BNvqlsvSPgX0Y9B7B/jesG3rfzzhssP6E2J4RM0S6GOsB5EDsGCofvI1/CFtqMCh boXA9kN9Nn+iPrA2TC3v631RjcC2PfghnmZWMYWawe9w2ifzQdNvL87KLANaIHq5TIDh 2DFwTKCYje2QCpQstctYv2GQiSLcPdn9lpOp4REfCfuY+LN22gjBIlusSNzKKwdKKz88 iw7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=01Od8ZpF2H6YWUZ83RrMXE2stMCmS7mYnLGzHEZ8Y+I=; b=NmRna5m1CPLzksGeLU170s3eexWfjp+dLIgFVzpWJ3fmrpt4yDe2Mn4Up3TeUHLLUt ZhVLz4aNZGJrVHZl9KHDT1ueppzVEg+qsCMdpMUeCITrVd3Tmp/TT8lRa/ZZAThlHVmT nUvINTFe+uBBLWq1cH5a+dU/oo3wrNweK8d+LPWDtEjcRMDBG+imADXNNfAQJNVaFMjJ Qp8Aj7YZ4fhL9Ff4gNOANOFnT2ref04fJ1/foWytaEAGlpN1Ji23DivqmKfQmVvcbSpb Zj0nCKLx+4MCZBHhTWI7Seqptw7RkQNFRl7ParSWnrR2sAlFznzsZN3sNHCBCsPbPS73 MHXw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n6si17901020plh.104.2022.02.16.11.17.41; Wed, 16 Feb 2022 11:17:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237665AbiBPSfc (ORCPT + 99 others); Wed, 16 Feb 2022 13:35:32 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:35406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237660AbiBPSfb (ORCPT ); Wed, 16 Feb 2022 13:35:31 -0500 Received: from mx2.smtp.larsendata.com (mx2.smtp.larsendata.com [91.221.196.228]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 312672AB523 for ; Wed, 16 Feb 2022 10:35:16 -0800 (PST) Received: from mail01.mxhotel.dk (mail01.mxhotel.dk [91.221.196.236]) by mx2.smtp.larsendata.com (Halon) with ESMTPS id 36dbd7e5-8f57-11ec-b2df-0050568cd888; Wed, 16 Feb 2022 18:35:28 +0000 (UTC) Received: from ravnborg.org (80-162-45-141-cable.dk.customer.tdc.net [80.162.45.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: sam@ravnborg.org) by mail01.mxhotel.dk (Postfix) with ESMTPSA id 10F5F194B3E; Wed, 16 Feb 2022 19:35:03 +0100 (CET) Date: Wed, 16 Feb 2022 19:34:59 +0100 X-Report-Abuse-To: abuse@mxhotel.dk From: Sam Ravnborg To: Arnd Bergmann Cc: 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, viro@zeniv.linux.org.uk, linux@armlinux.org.uk, will@kernel.org, guoren@kernel.org, bcain@codeaurora.org, geert@linux-m68k.org, monstr@monstr.eu, tsbogend@alpha.franken.de, nickhu@andestech.com, green.hu@gmail.com, dinguyen@kernel.org, shorne@gmail.com, deller@gmx.de, mpe@ellerman.id.au, peterz@infradead.org, mingo@redhat.com, mark.rutland@arm.com, hca@linux.ibm.com, dalias@libc.org, davem@davemloft.net, richard@nod.at, x86@kernel.org, jcmvbkbc@gmail.com, ebiederm@xmission.com, akpm@linux-foundation.org, ardb@kernel.org, linux-alpha@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-csky@vger.kernel.org, linux-hexagon@vger.kernel.org, linux-ia64@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, openrisc@lists.librecores.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-um@lists.infradead.org, linux-xtensa@linux-xtensa.org Subject: Re: [PATCH v2 15/18] sparc64: remove CONFIG_SET_FS support Message-ID: References: <20220216131332.1489939-1-arnd@kernel.org> <20220216131332.1489939-16-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220216131332.1489939-16-arnd@kernel.org> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Hi Arnd. On Wed, Feb 16, 2022 at 02:13:29PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > sparc64 uses address space identifiers to differentiate between kernel > and user space, using ASI_P for kernel threads but ASI_AIUS for normal > user space, with the option of changing between them. > > As nothing really changes the ASI any more, just hardcode ASI_AIUS > everywhere. Kernel threads are not allowed to access __user pointers > anyway. > > Signed-off-by: Arnd Bergmann > --- > arch/sparc/include/asm/processor_64.h | 4 ---- > arch/sparc/include/asm/switch_to_64.h | 4 +--- > arch/sparc/include/asm/thread_info_64.h | 4 +--- > arch/sparc/include/asm/uaccess_64.h | 20 +------------------- > arch/sparc/kernel/process_64.c | 12 ------------ > arch/sparc/kernel/traps_64.c | 2 -- > arch/sparc/lib/NGmemcpy.S | 3 +-- > arch/sparc/mm/init_64.c | 7 ++++--- > 8 files changed, 8 insertions(+), 48 deletions(-) I think you somehow missed the Kconfig change, and also the related sparc32 change which continue to have set_fs() after this patch. I did not manage to review the patch - as I am too unfamiliar with the code paths and the set_fs() removal changes. Sam