Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5945570pxb; Mon, 14 Feb 2022 11:21:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJxThMBr2LIuky6KSUAN/4AUKcN6+22LcAydSjHIAcQnuv+pUHWDyR3crgVjckocHDIscsGg X-Received: by 2002:a17:90a:3484:: with SMTP id p4mr111414pjb.91.1644866471618; Mon, 14 Feb 2022 11:21:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644866471; cv=none; d=google.com; s=arc-20160816; b=IURySFk3cEd+YcpwG/axIh4xAijDhyYG1sv9nQyl33VF0fKHwl5kn/hlkafvoeu2Yb r+NweVttOFJuOL00JA+4GoIRwSdCxbbhjzoYMIdQXhml4l+2f+EJG1yVuEEtiKHwsoEn pxqrBVIaBK+XEwVkEhfrY13t251f2DR2ax28S71xKrKU5cKr2t7GJwkXaYkSNmQuDEb8 AJYJoV6+QB9WE4fEhdgYWTbb+dpdtOIysILQ8685P1Y/VikJA/XyZVb86TLTIrTKW49m uaudgh4bj71ff9850ec27SmEXwiHEViTXJ0j2jeytmcerokNFF129zZUWcFih7gwk8jz IJUw== 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=/CrH4U+WueLEhUAkWucjvBiDQoqT0EasJyD2efMVU/Y=; b=qi2vWawVq/EOJYgdl9LLNlqNmYENgIb+PWU+kHkJJl5gmmxCYyK/Ulxs2JnSce4Z28 W7x2h1KoGwjV3Zfi328+koJ8YKihE3lMLpiNdgE0bnbBV35NIvluBCmr+AbD9vws0Xft Uk/uBD8e1y6Zcg/+C4Qc5iEHpj5P5jGP06IvBxM046xjauaElhp6tm7+lUwRRr37WXAq 6Ldp8Wy2osaQwpZ82c/cY/hgS1d6PdtSKse5qiMhPM4mX8c9xwu62za5qTCYtnhQZpiy nOQ4+MMhRJJe1ALbo+otYEpOtCbvBr1Coo+vkQm3akpB1to7Ju340+2hSKrTwaLEFdgy 1vcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ltnHtQW8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id r20si543382pgv.717.2022.02.14.11.21.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 11:21:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ltnHtQW8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CB124BE1F4; Mon, 14 Feb 2022 11:12:21 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356278AbiBNQUi (ORCPT + 99 others); Mon, 14 Feb 2022 11:20:38 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:33266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241001AbiBNQUh (ORCPT ); Mon, 14 Feb 2022 11:20:37 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C42B34DF73; Mon, 14 Feb 2022 08:20:29 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 62DBF614BA; Mon, 14 Feb 2022 16:20:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6933C340F6; Mon, 14 Feb 2022 16:20:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644855628; bh=0diHmmQT77HOp7spZ5bl7kXENb4/oqBcrfTkEBf0+KE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ltnHtQW8UODVcbRMxfeH0pjfsB6mZbvTWWp0n7uBuix6juCh0Dt0mG4fJgneXn6ds 77tKZK1oEZvOOmrVURM5yLRhobYSeQPo5wq96H1tG4B1571TaxHXSZ0d8F2H1sByUw RqLQc83ug3nKZXLFI3YoHS4PA/VDGtc7OKardneIRkHN5nmYjb2X+6URwyKsyFQa5a crNzw9+0hV9u9bJOtQjlyTjzmniJgUNwxR5H0fLaqgMXQ29EIccEYyw+MBI/91Qdnm P/DqXod7LbLQk+vzwufsUfX70l3T1TbBpgs/eYwZy9Hbw2E8vXRN4RL8RlUhhQ3/PE le+orCl5zwOLA== Received: by mail-wm1-f51.google.com with SMTP id bg19-20020a05600c3c9300b0034565e837b6so167157wmb.1; Mon, 14 Feb 2022 08:20:28 -0800 (PST) X-Gm-Message-State: AOAM531pGuwcK+uBOrzklt8WDW/pwjT69zZUw3i3vEDZ0TN/AK5ObHrq snuovgCjCev0zsgbf7q5/DhrspVb1xuF60sQceY= X-Received: by 2002:a05:600c:19c7:: with SMTP id u7mr9492360wmq.82.1644855626961; Mon, 14 Feb 2022 08:20:26 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Arnd Bergmann Date: Mon, 14 Feb 2022 17:20:10 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] microblaze: remove CONFIG_SET_FS To: Christoph Hellwig Cc: Stafford Horne , Michal Simek , Linux-Arch , LKML , "Eric W . Biederman" , Al Viro , Linus Torvalds , Arnd Bergmann , Geert Uytterhoeven , "Peter Zijlstra (Intel)" , Catalin Marinas , Mark Rutland , Nick Hu , Greentime Hu , Vincent Chen Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Mon, Feb 14, 2022 at 8:50 AM Christoph Hellwig wrote: > > I like the series a lot. > > Superficial comments: > > for nds32 is there any good reason why __get_user / __set_user check > the address limit directly? Maybe we should unify this and make it work > like the other architectures. I've done that now, and am glad I did, because I uncovered that put_user() was actually missing the check that got added to __get_user() by accident. > With "uaccess: add generic __{get,put}_kernel_nofault" we should be able > to remove HAVE_GET_KERNEL_NOFAULT entirely and just check if the helpers > are already defined in linux/uaccess.h. Good idea, changed now as well. > The new generic __access_ok, and the 3 fixed up version early on > have a whole lot of superflous braces. I'd prefer to leave those in, the logic is complex enough that I'd rather make sure this is completely obvious to readers. I got a few built bot reports about missing __user annotations that were uncovered by the added type checking in access_ok, fixed those as well. I'm doing another test build after the last changes, will send it out in a bit if there are no further regressions. Arnd