Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp2882601rwb; Fri, 20 Jan 2023 08:27:49 -0800 (PST) X-Google-Smtp-Source: AMrXdXtSpOsZUyCatC1bMCIme+hRNu0gXQOFYheDNG4/9DjuDuYr+4r50zDUoimSSN2zJAfcgsM8 X-Received: by 2002:a17:906:b004:b0:872:aa82:ac56 with SMTP id v4-20020a170906b00400b00872aa82ac56mr14380346ejy.47.1674232069419; Fri, 20 Jan 2023 08:27:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674232069; cv=none; d=google.com; s=arc-20160816; b=P/7WrPapRa3ViNj/uIRM9shIzdbMk7/7Tz4X5lz41xmw7/gXJadaQkg4CEG2LSsrh7 EEm+eBi5xwGmNv1CN1wszdGaTh/RTFnFe09gte8t0QYhyIiEZ/+l57AUaOMlqvljx6pz FtTZa7YrSju5gUT2u7jXO1fOwnAWQxf2mMSOpNkBYKzzenbJ0Dq+CRjfERko6K8i04pT 3BkO6ZRck8FxuLbslb5d54QY3RcGFm9KMI58AZF2tmsHjQ0IZhdq0qY94U0cy/PITcXQ Ptve8Cc+HV5BN1p8W9NYYMAI1h63Rr5ZRwv4s8AN3rKX6bjcWILHKuB/JomArRbh4csN bI6Q== 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:dkim-signature; bh=ab6X1HMr5aXChOwz28pzwqKxRMyU+gheYbyQX6iT30c=; b=wC7inJfImtSqaNTPpq7hFsuTlAPshBVmXRzcDPZ9IGvxtWsu3OVDpD5Rt2DcS8wdBa pzd5h5KKXeuoIyicQqklmWAEMrhSvs3u1Ey8wHKujriMjP355uxZhQBrNbFKLIoYsdO1 gEwmnHpLLIkqRjlF2IQzhgTbBJO+4scO+ttezYGCr1ysLG+xliB7kzezDle96a22rh1b JJiHCUL1htccSxVAynos3B5CN7op5gcmtjfKL7fI2jeKs1F50BxukpzpJb2VJMnjhwTG 5EnkGEh9qN+UQm55fHZxnxsCar+8JKH+kcJqaQ+ajPk2fN5Gy1+EIT8oVTfOwTHT1vqb +q2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rEoxzo6a; 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 xd12-20020a170907078c00b0083bb359db7dsi45983178ejb.115.2023.01.20.08.27.37; Fri, 20 Jan 2023 08:27:49 -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=rEoxzo6a; 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 S230449AbjATQEb (ORCPT + 50 others); Fri, 20 Jan 2023 11:04:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230415AbjATQEa (ORCPT ); Fri, 20 Jan 2023 11:04:30 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4294737F29; Fri, 20 Jan 2023 08:04:30 -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 AFCE461FD8; Fri, 20 Jan 2023 16:04:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 13B2DC433D2; Fri, 20 Jan 2023 16:04:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674230669; bh=Ec4H1FXPr6bovVxs4vc810kRh1msVN4iB85TbOfb4ec=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rEoxzo6adt5Ed6rCJIuoSySpq1ZPl7v5+teYwR3RfNP/H7oyumltXJUdDjvJia+m0 G4DTKete4ggG3ww2DJ5vcFJDTO+TfYdcX/3iybFNBuVkOg+FcIX/lM32qmwd1HZtMB o4BV1i2VJOAUkzB+n62e5zfYY92PX9ZY+fNjwuoxWujAVyBsWlY7wt8slGtJ15kz37 5xVBfgXNpKR3CUT8Egin490uUkm2luvme5s3oEUg4vkuyZXjEpy6bADaCpe/7GIBc1 TuiR9dB3uVGDEgEzTd7Jgr4HqAcdgRS11fH9amLTjabQP/MXwAbecIVJk4Abv1EHMC BHIhzYlMokYLQ== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1pItsx-0008Ih-TV; Fri, 20 Jan 2023 17:04:59 +0100 Date: Fri, 20 Jan 2023 17:04:59 +0100 From: Johan Hovold To: Ard Biesheuvel Cc: Johan Hovold , Peter Jones , Heinrich Schuchardt , Matthew Garrett , Jeremy Kerr , Maximilian Luz , linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/4] efivarfs: always register filesystem Message-ID: References: <20230119164255.28091-1-johan+linaro@kernel.org> <20230119164255.28091-3-johan+linaro@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 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, Jan 20, 2023 at 10:23:18AM +0100, Ard Biesheuvel wrote: > (cc Peter, Heinrich) > > On Thu, 19 Jan 2023 at 17:45, Johan Hovold wrote: > > > > The efivar ops are typically registered at subsys init time so that > > they are available when efivarfs is registered at module init time. > > > > Other efivars implementations, such as Google SMI, exists and can > > currently be build as modules which means that efivar may not be > > available when efivarfs is initialised. > > > > Move the efivar availability check from module init to when the > > filesystem is mounted to allow late registration of efivars. > > > > Signed-off-by: Johan Hovold > > I think this change is fine in principle, but I 'm not sure if there > is user space code that the distros are carrying that might get > confused by this: beforehand, efivarfs would not exist in > /proc/filesystems and now, it will but trying to mount it might fail. User space must already handle mount failing since commit 483028edacab ("efivars: respect EFI_UNSUPPORTED return from firmware") so that should not be an issue. Johan