Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp360545rwb; Wed, 28 Sep 2022 03:52:20 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6JRU21AcG4lJi5ePhaCywOarp4jIt69XNLPgESEKMfCmIXCTS5UBoAoiHNg5WHF8Pu1aLF X-Received: by 2002:aa7:c40e:0:b0:457:d0e0:7ee1 with SMTP id j14-20020aa7c40e000000b00457d0e07ee1mr5462508edq.5.1664362339012; Wed, 28 Sep 2022 03:52:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664362339; cv=none; d=google.com; s=arc-20160816; b=pkkUDvVNDayGKgX5Bow1EYv/zuSsil4DhseX7ClWeYhsWilxsH57SSxoaeneeBn8sf OU/fyZDQI1AByn8/DPQ8seKzSQdTwt8gFyCprQ+5bl7/B8V4W1ATUuU+mLSJHS2Bu+nT 6DHLBZBEIOwOkk1r6/gR+7tPtf2OY0na4QgJBtJEcchD/YiN/2UQD0NINXnEtiHoDgBJ V4CaBqrVnZMWMxfgO4QCF9d+UsJ83cHNTQivm2X/huj6Rc7gPYQcxbrysncH9/42osMR z9pf4/7bGP3HkaWr/i8Zht5XWs/IWrGL3ce3wTyAoN+TR+U7tysOn9Rqb2zE8WSPhNbP wY+w== 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=K8E0FzdNDrn2vBMjfp3h2KajM+B36hLnkhE+pnW7Lb8=; b=yPv+U5D3F/+KvRU6Cme3JOEW6/5Orqmyfmzdmhe4hXAvBpKIYWzsG/oT9yq8i7j4nM p+65TtlheditVH2yXTsk83gSebb+wx6BLv97upf3nAUrScQmd38LMwqLtQ2Uqe+UMQ8/ D0sRdLC9tzST8894S6LycW76XLe8S4YiD7yUXnUoNR9IXUSc2LsDb4zSJ8FfXRxvs2nC yz7b2PKeMWNoWKV1kRHiCwrZrd6JJPSEtUSVwi8QKJXu5UnUs/9uJ7icYICxOzulbfGU 3B/Y7a9F+qeb0QYczdtYXJ9iPw797Zl3BuBkBFcDLnzyqI83aTWwVSFmqMoQaWtnK/O5 Rc1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@earth.li header.s=the header.b=tCA2PesD; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id go30-20020a1709070d9e00b0077cfdda438csi5215364ejc.35.2022.09.28.03.51.52; Wed, 28 Sep 2022 03:52:19 -0700 (PDT) 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=fail header.i=@earth.li header.s=the header.b=tCA2PesD; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233658AbiI1KfQ (ORCPT + 99 others); Wed, 28 Sep 2022 06:35:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233225AbiI1Ke6 (ORCPT ); Wed, 28 Sep 2022 06:34:58 -0400 X-Greylist: delayed 1801 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 28 Sep 2022 03:34:54 PDT Received: from the.earth.li (the.earth.li [IPv6:2a00:1098:86:4d:c0ff:ee:15:900d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0701527B09; Wed, 28 Sep 2022 03:34:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=earth.li; s=the; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject: Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=K8E0FzdNDrn2vBMjfp3h2KajM+B36hLnkhE+pnW7Lb8=; b=tCA2PesD4/l8yPuyvQFPWi3nUi WDiKR+zssEkSliDYZ2hVjvPR+Szf1TApxTmnbwAMxTf915JhbObbstSRCUc3Lic1QeEwgzYvP6EUh E+HrV3DixfeX4F/TNF1TquUoGGA7VNn4gpom38VrTloH1m/goBh/WB+YNyX0rzeKf4R7ZOmEuRTQq lxlpOgRJ9U+4WI4L3QATPubbUcrIrhQwb8gpqlPOzRG+HOU3PdSCpGjYJYaw9s2blFvl7wHvDk+oK d2JJV692QJh++TV62L7H/y3y9vcbNIISAmJth+4tutxt0bYuboCfAsbkpf0eT1Ca0q8XXzh87UJ/D yV6o44QQ==; Received: from noodles by the.earth.li with local (Exim 4.94.2) (envelope-from ) id 1odTaO-00Gcuf-D2; Wed, 28 Sep 2022 10:42:36 +0100 Date: Wed, 28 Sep 2022 10:42:36 +0100 From: Jonathan McDowell To: Evan Green Cc: Jarkko Sakkinen , Mimi Zohar , Matthew Garrett , Ken Goldman , LKML , Daniil Lunev , "James E.J. Bottomley" , linux-integrity@vger.kernel.org, Jonathan Corbet , "Rafael J. Wysocki" , Gwendal Grignou , Linux PM , Len Brown , Pavel Machek , "Rafael J. Wysocki" Subject: Re: TPM: hibernate with IMA PCR 10 Message-ID: References: <96360ec16b21d8b37461a5de083ff794f3604300.camel@linux.ibm.com> <96cfd1f3f084f6d145bd22e0989dc046fe15b66a.camel@linux.ibm.com> <2bc656bf67af52e0b9a68e91c5b574e0ab4ffa8e.camel@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Tue, Sep 27, 2022 at 09:03:21AM -0700, Evan Green wrote: > On Fri, Sep 23, 2022 at 6:30 AM Jarkko Sakkinen wrote: > > > > On Wed, Sep 21, 2022 at 04:15:20PM -0400, Mimi Zohar wrote: > > > > > Enabling hibernate or IMA shouldn't be an either-or decision, if at all > > > possible. The main concern is that attestation servers be able to > > > detect hibernation and possibly the loss of measurement > > > history. Luckily, although the PCRs are reset, the TPM > > > pcrUpdateCounter is not. > > > > > > I would appreciate including a "hibernate" marker, similar to the > > > "boot_aggregate". > > > > Yeah, I guess that would not do harm. > > I think I understand it. It's pretty much exactly a boot_aggregate > marker that we want, correct? > > Should it have its own name, or is it sufficient to simply infer that > a boot_aggregate marker that isn't the first item in the list must > come from hibernate resume? I think it should have its own name, because a subsequent boot_aggregate is inserted when we kexec into a new kernel. J. -- "Why? - because it's f***ing there!" -- Edmund Hilary This .sig brought to you by the letter I and the number 30 Product of the Republic of HuggieTag