Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp3065699rwb; Sat, 6 Aug 2022 11:49:05 -0700 (PDT) X-Google-Smtp-Source: AA6agR4KP23r8eCvsz6UmUN7P21vjC8EElrssJA1mRP5ESbaRTnKZvzvGPc1kdHAinfK+iO7EY2c X-Received: by 2002:a17:907:a427:b0:72b:8cc5:5487 with SMTP id sg39-20020a170907a42700b0072b8cc55487mr8745185ejc.354.1659811733988; Sat, 06 Aug 2022 11:48:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659811733; cv=none; d=google.com; s=arc-20160816; b=RsQjrY+254ZMcVOjZxCibLBbnvTS6MBvl7NQk3MFd0V7Jz6c1nTBTPuyun9u4hxTVW MqAWz0t6/ibp8b7LaSLLAE3+dIIvNO/x2rxSmofImum37xb9yN2Ja5weM6EXvHWOKOLL 0MjsJD8ofozQNSzQH+A/q5tE3akJhaC1OmAWFeUTa261R0hUoALkaNsTSHUapCeqoB06 VyKrjZmaAHPqbX7pHucHD1ulh9duLkTddaPeIfvQvgWW1D/Sa0/O7FCa+aEfZVvi35dL 9KSxAF6Yp7OK+2LxojMYwVgMzBsZPXyYhgkz/ikeRaJE2RKiqud6zIEnpOBVWi0gkv6B reOg== 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=sfle5c79n7Fd/q86qprybzi713nV7N5IazB28TZZ+js=; b=PP+8ofXbuZcRLB5KCLVrWHJrPHPgYA6LUaIU1I/Y11lj9cvNFa7OQAyvct2YXFDs4m oA43TibG2l1Bhiic/ddHb95Vf8m/xB+dTgk4XLj6IwHjoaPaGrdglxCSMLq4GHdHwHY+ uirlw6PL4DqNDt9zgLvJ88QGrBnxec7fELMbJf7c4LLIUh8px9tkiDFBW1Dci0GUN35q sJJ8yQQ8u8aWWLWD4fuH+tpzJlE6FvyQWzZigOLzRkvy7cvTTzB0PxPyxLxw5OlouQqK ZI6j9tqKJvMwHZwdhBdZF8llmid8kRBAjyzLTvvqV9VLYvDB9WpsS7j+TA5lTfIojtBi FwKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FWMhuXFJ; 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 ne21-20020a1709077b9500b0072ee27ef788si2982878ejc.838.2022.08.06.11.48.27; Sat, 06 Aug 2022 11:48:53 -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=pass header.i=@kernel.org header.s=k20201202 header.b=FWMhuXFJ; 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 S233819AbiHFSVz (ORCPT + 99 others); Sat, 6 Aug 2022 14:21:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241657AbiHFSVk (ORCPT ); Sat, 6 Aug 2022 14:21:40 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A74D1E25; Sat, 6 Aug 2022 11:21:05 -0700 (PDT) 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 42BC461221; Sat, 6 Aug 2022 18:21:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 271BAC433C1; Sat, 6 Aug 2022 18:21:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1659810064; bh=orcjVHFk4lFBov1ujUSmqLHsLoO2iIvfGgGHJHlIh7A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FWMhuXFJSleNWQKkiPFl4VU6fLgJgg6NLKSQrAlEY/EFTQ9ut+LINlEq4+P8A76ir IvyBzut+gNS7PLgDqedD3Lom2EzymAV2djRK1XpPyawrVNmOacohakfCykPAhI8xbb Y8SnjOMZWNinwDaIqEUVGkxQlmlIciOCeYQ/r4VeVn/N/FXRdtUd3W1fJGX7qUfjvG eSMWVoal7Q1bqcQbqRZCy3pbAPd90fAtGG81LEqp8ofNdOI3Y9onRrpPZEvacpHvDJ Hl38QHCxXBh3JLj/eY20OJYs7ADgNsiFMtAyfyJW2Ne2V3Pii9H1HZAHJJLRXJACXZ dDFGHS6h1Yfdw== Date: Sat, 6 Aug 2022 21:21:01 +0300 From: Jarkko Sakkinen To: Evan Green Cc: Matthew Garrett , "Rafael J. Wysocki" , Pavel Machek , LKML , Daniil Lunev , zohar@linux.ibm.com, "James E.J. Bottomley" , linux-integrity@vger.kernel.org, Jonathan Corbet , "Rafael J. Wysocki" , Gwendal Grignou , Linux PM , David Howells , Hao Wu , James Morris , Jason Gunthorpe , Len Brown , Peter Huewe , "Serge E. Hallyn" , axelj , keyrings@vger.kernel.org, "open list:DOCUMENTATION" , linux-security-module@vger.kernel.org Subject: Re: [PATCH 00/10] Encrypted Hibernation Message-ID: References: <20220504232102.469959-1-evgreen@chromium.org> <20220506160807.GA1060@bug> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.7 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 Thu, Aug 04, 2022 at 02:55:35PM -0700, Evan Green wrote: > On Wed, Aug 3, 2022 at 5:59 PM Jarkko Sakkinen wrote: > > > > On Tue, Aug 02, 2022 at 11:36:43AM -0700, Matthew Garrett wrote: > > > On Mon, Aug 1, 2022 at 3:33 PM Evan Green wrote: > > > > > > > One more bump here, as we'd really love to get encrypted hibernation > > > > to a form upstream would accept if at all possible. We were > > > > considering landing this in our Chrome OS tree for now, then coming > > > > back in a couple months with a "we've been baking this ourselves and > > > > it's going so great, oooh yeah". I'm not sure if upstream would find > > > > that compelling or not. But in any case, some guidance towards making > > > > this more upstream friendly would be well appreciated. > > > > > > > > One thing I realized in attempting to pick this myself is that the > > > > trusted key blob format has moved to ASN.1. So I should really move > > > > the creation ticket to the new ASN.1 format (if I can figure out the > > > > right OID for that piece), which would allow me to drop a lot of the > > > > ugly stuff in tpm2_unpack_blob(). Maybe if I get no other comments > > > > I'll work on that and resend. > > > > > > I've been revamping my TPM-backed verified hibernation implementation > > > based on this work, so I'd definitely be enthusiastic about it being > > > mergeable. > > > > BTW, is it tested with QEMU + swtpm? > > For myself, so far I've been testing on a recent Intel Chromebook. The > H1 (aka cr50) security chip on modern chromebooks implements a subset > [1] of TPM2.0, and is exposed through the standard TPM APIs in the > kernel. I can make sure to test on Qemu as well, is there anything in > particular I should look out for? I was just thinking what I could use for testing BR, Jarkko