Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5827369pxb; Mon, 14 Feb 2022 08:30:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJwk0vKB5wNdCrRZ7QUxgqtI3LCv16PyxLG23RxY9kTGESbB5xyy7Rv68l+NjBeySlkd8lRQ X-Received: by 2002:a05:6402:5243:: with SMTP id t3mr431019edd.260.1644856242504; Mon, 14 Feb 2022 08:30:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644856242; cv=none; d=google.com; s=arc-20160816; b=YgUbZr39G16ucwf9WTUU7oUAmgrTmHOaJNWWfycLSEn0+VV7p3LkNtH6w+6IOvEKDA qfjAvTfUc9YR/Iqsm1J8TV6dLyAqu295TG41qoBkjzUg4QGTAXuwRbBRiVf7OUlKUoRj xX6q5tBb+PTG5nOddWGQRZlCbLavmN60iWRmxX6naRoEtAPiEN5kXuHVwTHyEsd5RDpl dUXTrusYpzkWccSwO/dfB7zD5JQ4rXdqBzwfz6jC13DQnCdT0hK1ZXH//hLJTOr6RWAM JNs8V0G+mymW9cjnAwCYRPOkovb4Ny8crRkTkRBNVTU2wPYLGEF59/i/NDpfS1f5b1qb M4AQ== 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=/6mphvz3wJr1g67XiUwoTHkT/17A3c8YI/Pv9f3ZCng=; b=inCFpxg9uTeFLRi/RbhMwqmozZS0FH/bhgLxqVCDPEVxyOm8vwHnXxExcXXkJsE1yy /r1tHqw5L5mVEDDYwWr7ojqTq3buQjb9LCvc55CYRZqKaUugdUIt+lRDKkhaZwUuD4o+ caQ0KE+67cM2F/a+CP8G60/R5DxMD8iBYcXnU1H//D6WDEBUQp4vtrYzln3M5ySZKg9K OOCwTZE8pi460a5UUp4zIb+Kb2SK1U9FdUq327ROfgSo5yWhVQALO9f/s0Kh5bx8N9Rs qTqz9Bky5bq5HVeR7js5UfkOKcwXJXLPDSwxwgjDNbZiAzCxQgyKuXpLQabP0PPUquTV bWLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ajgwkdmn; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gb24si16184259ejc.347.2022.02.14.08.30.18; Mon, 14 Feb 2022 08:30:42 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ajgwkdmn; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353725AbiBKU6h (ORCPT + 93 others); Fri, 11 Feb 2022 15:58:37 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:50220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353913AbiBKU6Y (ORCPT ); Fri, 11 Feb 2022 15:58:24 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A97DD86; Fri, 11 Feb 2022 12:58:05 -0800 (PST) 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 sin.source.kernel.org (Postfix) with ESMTPS id 8F9D7CE2C05; Fri, 11 Feb 2022 20:58:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D9FB0C340F7; Fri, 11 Feb 2022 20:58:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644613081; bh=DhXPhCALScf4UQ/shTnyxSV9qJWuG4YeZkIXRRWBEVw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ajgwkdmnZO9Y7MRwNsIt1ZG9/Z6LGtc+CmxUJxPxIyF8iWukb3cmoHlHk9+e7iZcY Gj8X8uV0uW2d4zO2mlY2nGDYRqsch9PLEDry8XYx33hz9eJ59u1V4dn9CpRYlNY24H YpvYHDCgR2Vb9B9VYi0pQ0HBPtioYjV/TLpoz/88Cn/XfsPeOCmkLja9io9/XV9xC/ dGxOCeUo6tD0vH3ywGGbpEUXFYdCj8feF4MhVPoshpMFhs09YeOKHwWW2TZcitERvP sW/xOJ+URxZvb0WcWzPLsfzQ5CPk41AQfSZBtVmTQSbULE0s1HuIzKk0iI6wHmKHWp +iLESXEOHYYTw== Received: by mail-wm1-f46.google.com with SMTP id i19so4763054wmq.5; Fri, 11 Feb 2022 12:58:01 -0800 (PST) X-Gm-Message-State: AOAM531z6xupWMzYO7pLqDe9aQo5Y9Y973smxWUGlGI683SJH4SAnOCz f4g5Auo2qoFIRaPGlXZPpotvCGCEQNFBgrIr09k= X-Received: by 2002:a05:600c:1f06:: with SMTP id bd6mr1769956wmb.98.1644613079976; Fri, 11 Feb 2022 12:57:59 -0800 (PST) MIME-Version: 1.0 References: <20220117132757.1881981-1-arnd@kernel.org> <126ae5ee-342c-334c-9c07-c00213dd7b7e@xilinx.com> In-Reply-To: From: Arnd Bergmann Date: Fri, 11 Feb 2022 21:57:43 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] microblaze: remove CONFIG_SET_FS To: Linus Torvalds Cc: Stafford Horne , Michal Simek , Linux-Arch , LKML , Christoph Hellwig , "Eric W . Biederman" , Al Viro , Arnd Bergmann , Geert Uytterhoeven , "Peter Zijlstra (Intel)" , Catalin Marinas , Mark Rutland Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,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 On Fri, Feb 11, 2022 at 6:46 PM Linus Torvalds wrote: > On Fri, Feb 11, 2022 at 9:00 AM Arnd Bergmann wrote: > > > > I have now uploaded a cleanup series to > > https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git/log/?h=set_fs > > > > This uses the same access_ok() function across almost all > > architectures, with the exception of those that need something else, > > and I then I went further and killed off set_fs for everything other > > than ia64. > > Thanks, looks good to me. > > Can you say why you didn't convert ia64? I don't see any set_fs() use > there, except for the unaligned handler, which looks trivial to > remove. It looks like the only reason for it is kernel-mode unaligned > exceptions, which we should just turn fatal, I suspect (they already > get logged). > > And ia64 people could make the unaligned handling do the kernel mode > case in emulate_load/store_int() - it doesn't look *that* painful. > > But maybe you noticed something else? > > It would be really good to just be able to say that set_fs() no longer > exists at all. I had previously gotten stuck at ia64, but gave it another go now and uploaded an updated branch with ia64 taken care of and another patch to clean up bits afterwards. I only gave it light testing so far, mainly building the defconfig for every architecture. I'll post the series once the build bots are happy with the branch overall. Arnd