From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 46141C433EF for ; Mon, 14 Feb 2022 19:40:28 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 65B126B0071; Mon, 14 Feb 2022 14:40:27 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 60A5B6B007B; Mon, 14 Feb 2022 14:40:27 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4AAC96B007D; Mon, 14 Feb 2022 14:40:27 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 382676B0071 for ; Mon, 14 Feb 2022 14:40:27 -0500 (EST) Received: from smtpin19.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id BD719181A254E for ; Mon, 14 Feb 2022 19:40:26 +0000 (UTC) X-FDA: 79142402052.19.27F5277 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf06.hostedemail.com (Postfix) with ESMTP id 2ECE618000C for ; Mon, 14 Feb 2022 19:40:26 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 541A16114B for ; Mon, 14 Feb 2022 19:40:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B30C1C340EF for ; Mon, 14 Feb 2022 19:40:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644867624; bh=5szbHF9etsKpvbwWwwc9H/Y1QakuvzjKYGUIBcYFA80=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=e8SkA3FlLGu70hI/WgHcE1Xcld6ahEqgd/8aP3tnN+Ui+6c+MZmJxArGum1LdtmAc TVm8LqkWXJbpel0WqJluZlN0q2Rc8pObOFXCjWsE1d3haVSN1sOjQ5hKRVHWsZ71lN 9Hnj9zqBHSBBx6qUNlA6sc7rmD8pMbOGHJ9SDDCXuRY9FNQ7binWt4bsfA/Yof8Egb Ksm8rfkNmn9T9/rsBeFI1yBap4xnb6nVmSKUusmotl5Q02Llm+mwF8WcKWget2RALt X3B6AavEfyIeX6XUTomqUIV78jVQAYplU/28sKTs9My6dabsF705ywSdaO+p8h0D4l JZS2fHyItMkuQ== Received: by mail-wm1-f46.google.com with SMTP id d14-20020a05600c34ce00b0037bf4d14dc7so94725wmq.3 for ; Mon, 14 Feb 2022 11:40:24 -0800 (PST) X-Gm-Message-State: AOAM530Cy9pQCGn/kWgujVxVJ/XknXP/5+jsgqb9KJWTRm1jUYnw1nq5 inZPtyT+Ayrh39c1EGQHRHUjRQewDZV4D6cpefE= X-Google-Smtp-Source: ABdhPJzTYqCeBLA8ZZTCXfIkkUBrupnk+RLzKXVQdywxm2I/SfNIqW0R0tvlKvR6EMssd+gXW/CMf7zH4TFa2LGJB14= X-Received: by 2002:a05:600c:1d27:b0:37c:74bb:2b4d with SMTP id l39-20020a05600c1d2700b0037c74bb2b4dmr252362wms.82.1644867623104; Mon, 14 Feb 2022 11:40:23 -0800 (PST) MIME-Version: 1.0 References: <20220214163452.1568807-1-arnd@kernel.org> <20220214163452.1568807-11-arnd@kernel.org> In-Reply-To: From: Arnd Bergmann Date: Mon, 14 Feb 2022 20:40:07 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 10/14] uaccess: remove most CONFIG_SET_FS users To: Christoph Hellwig Cc: Linus Torvalds , Christoph Hellwig , linux-arch , Linux-MM , Linux API , Arnd Bergmann , Linux Kernel Mailing List , Mark Rutland , Rich Felker , linux-ia64@vger.kernel.org, Linux-sh list , Peter Zijlstra , Max Filippov , Guo Ren , sparclinux , "open list:QUALCOMM HEXAGON..." , linux-riscv , Will Deacon , Ard Biesheuvel , linux-s390 , Brian Cain , Helge Deller , "the arch/x86 maintainers" , Russell King - ARM Linux , linux-csky@vger.kernel.org, Ingo Molnar , Geert Uytterhoeven , "open list:SYNOPSYS ARC ARCHITECTURE" , "open list:TENSILICA XTENSA PORT (xtensa)" , Heiko Carstens , alpha , linux-um , linux-m68k , Openrisc , Greentime Hu , Stafford Horne , Linux ARM , Michal Simek , Thomas Bogendoerfer , Parisc List , Nick Hu , "open list:BROADCOM NVRAM DRIVER" , Dinh Nguyen , "Eric W . Biederman" , Richard Weinberger , Andrew Morton , linuxppc-dev , David Miller Content-Type: text/plain; charset="UTF-8" X-Rspam-User: X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 2ECE618000C X-Stat-Signature: nzy3yjaeuiffqqdstrpwuzbq5z4ou54q Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=e8SkA3Fl; spf=pass (imf06.hostedemail.com: domain of arnd@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=arnd@kernel.org; dmarc=pass (policy=none) header.from=kernel.org X-HE-Tag: 1644867626-921796 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Mon, Feb 14, 2022 at 6:06 PM Christoph Hellwig wrote: > > On Mon, Feb 14, 2022 at 05:34:48PM +0100, Arnd Bergmann wrote: > > From: Arnd Bergmann > > > > On almost all architectures, there are no remaining callers > > of set_fs(), so CONFIG_SET_FS can be disabled, along with > > removing the thread_info field and any references to it. > > > > This turns access_ok() into a cheaper check against TASK_SIZE_MAX. > > Wouldn't it make more sense to just merge this into the last patch? Yes, sounds good. I wasn't sure at first if there is enough buy-in to get all architectures cleaned up, and I hadn't done the ia64 patch, so it seemed more important to do this part early, but now it seems that it will all go in at the same time, so doing this as part of a big removal at the end makes sense. Arnd