Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp13644455rwb; Sun, 27 Nov 2022 08:56:32 -0800 (PST) X-Google-Smtp-Source: AA0mqf6/RXZEhKdTUNcl0wkqePvZNCwVumCD55Mx5tJQHaZBbgbCRU8kiP7cs+GjwTspOL0+UCgB X-Received: by 2002:a65:6702:0:b0:478:42f:5ac0 with SMTP id u2-20020a656702000000b00478042f5ac0mr4974554pgf.375.1669568191793; Sun, 27 Nov 2022 08:56:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669568191; cv=none; d=google.com; s=arc-20160816; b=i/FyCbMtEM0EZczYASQKKUtPP80VgqORAt7K70x3g4jgizN7YvG9AQcH9LRZG1Oq3s pkrlZUCd22yDvfQfdyRWPnvFa5wnjAU7xZkc9k4p2jvPSnvGjXNTPC4+e6DyqOdB5oDA YWuCMdQxuBmyZUtgGks1u0h01ChWSzi1bQNS2BE2NoSC4GkLGAsTpWca88qRZVo5WoaM tiu5/+OQiU9ch9AWrX+D73RMKf75FRSQmk4q+qA29RLYjemhdSs2xYkI7ozVEACNJNbM xwP+egOvGmnhmu/QWxv78oi9vCmPM0RV4YELnyG4of2JnsWs+LY+l6D/5og6V8pZAGpD UHtA== 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=kN4IYnt9upFIbDuXgc0iG/8A+mGd5RplaNpEJM/s87k=; b=YewxZjsXCamAePyD050CNi9dULm8J1VAZa71V9p07c6snhHjfZUfnFcJ/PgGyT5iXl VnVKnbxiYDBH4MQ9YuzoDtcYo+JaYgr2VYekt0e2Vx0X2RbQ2S5u8ewP9Hcgx3Z9X2Or CYvF1OCTSfPPLZhuyU5DnGrgiWugkcS9l9LOs/28gx5YXHVHHqmAEkQUUzC7EpTTX6p2 pdG+N/2N8ZRiW9hcSfR2oQnYh+rXwswFo+pd0xCKdjJAQSSJr/Z9sHdLqaTgFbO8qwHi DIU9kZXDQNgizvnqMYRk5QLou4277dU1H/NIVi8Myowlstbe3PoK6W2u+W6DLavcjMuA 2ZIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KrQXtGKO; 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 b14-20020a056a000cce00b005627f4b21absi10693642pfv.296.2022.11.27.08.56.19; Sun, 27 Nov 2022 08:56:31 -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=KrQXtGKO; 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 S229515AbiK0Qdu (ORCPT + 85 others); Sun, 27 Nov 2022 11:33:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbiK0Qds (ORCPT ); Sun, 27 Nov 2022 11:33:48 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AEDF115E; Sun, 27 Nov 2022 08:33:47 -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 ams.source.kernel.org (Postfix) with ESMTPS id 83523B80AFD; Sun, 27 Nov 2022 16:33:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D8273C433D6; Sun, 27 Nov 2022 16:33:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669566825; bh=O1C8cypGcMBwJKOESk6VxY/nmfSMo8T0mND3k3/mp5I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KrQXtGKOuCSQwoUxLn1hmE+D7u/ZHAllH4T3+MrdsNCGImgRixFMzSEvLEfFeaM24 eV7Xcsb30Q7Uc0zPTTYm+lOCmDA8Mp/XAWU3FUxelu3ZDsDqbrZQl4glm+17SDPM7Q +y2Wlc7Nv/LcR/GMUukZphSxBa3fdGjVvrA70yjUbwXgzC5Lyx8s3LKyXiAmHURxBr q+axbaEwG7u78j/NZmCPI/RsYScNVYWSjM9m3M65gVon68HyT++SxgZnT5767CeALT YAjkBzYK0V2mmIuO+5IG9eR9G3zti3BuuxJya/v9Jh3XnGe1W/3ANyygmFGUgxA+96 Ldsxp77QHkmog== Date: Sun, 27 Nov 2022 18:33:41 +0200 From: Jarkko Sakkinen To: James Bottomley Cc: Evan Green , linux-kernel@vger.kernel.org, corbet@lwn.net, linux-integrity@vger.kernel.org, Eric Biggers , gwendal@chromium.org, dianders@chromium.org, apronin@chromium.org, Pavel Machek , Ben Boeckel , rjw@rjwysocki.net, Kees Cook , dlunev@google.com, zohar@linux.ibm.com, Matthew Garrett , linux-pm@vger.kernel.org, Matthew Garrett , Jason Gunthorpe , Peter Huewe Subject: Re: [PATCH v5 03/11] tpm: Allow PCR 23 to be restricted to kernel-only use Message-ID: References: <20221111231636.3748636-1-evgreen@chromium.org> <20221111151451.v5.3.I9ded8c8caad27403e9284dfc78ad6cbd845bc98d@changeid> <8ae56656a461d7b957b93778d716c6161070383a.camel@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8ae56656a461d7b957b93778d716c6161070383a.camel@linux.ibm.com> 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 Mon, Nov 14, 2022 at 12:11:20PM -0500, James Bottomley wrote: > On Fri, 2022-11-11 at 15:16 -0800, Evan Green wrote: > > Introduce a new Kconfig, TCG_TPM_RESTRICT_PCR, which if enabled > > restricts usermode's ability to extend or reset PCR 23. > > Could I re ask the question here that I asked of Matthew's patch set: > > https://lore.kernel.org/all/b0c4980c8fad14115daa3040979c52f07f7fbe2c.camel@linux.ibm.com/ > > Which was could we use an NVRAM index in the TPM instead of a PCR? The > reason for asking was that PCRs are rather precious and might get more > so now that Lennart has some grand scheme for using more of them in his > unified boot project. Matthew promised to play with the idea but never > got back to the patch set to say whether he investigated this or not. Even for PCR case it would be better to have it configurable through kernel command-line, including a disabled state, which would the default. This would be backwards compatible, and if designed properly, could more easily extended for NV index later on. BR, Jarkko