From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.47 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796289280; b=HmPkLNXJq5p8UDu1WXENTw/OhaLmR1xAffJ5YIRWWcmme8XUmzYbZF7x7YTWV/tFRyez izWHm3fBjqHnDDM8kc7xJtY0x0rQ2hJ9Om1v0k4MADqdduYoQVYRdG6LhCucUwbjF6rNc t1Bxn5SgbzBtbHmPf0eLME6HH4yrBL26s3UUzSmC/yACUhtonrZ+dh4a0Dksx6J1uuIIT j7ikCfdeRe789czTjFqfpbCzklctyaKdbgvtZ9HN2NStfM5bOypdMoWkZHWt9R5Xg9ZJU C2hmiLx92ASBKJMnJAGr4mVGOdCofQrD5mCNgGu8s4CXyWbcw8QoWGgbqsZgANe1jbQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796289280; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Gm-Gg:X-Received:Received:Date:From:To:Cc: Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; bh=KfBIwEW3tUEBIz0d8pZR/bFuXAm36Cc2Xf61TVbEKt0=; b=DfEU0RkMv1CnBwWKneU/7JCRJ038sORhUA8DrsnqdVTyXLnexDTyXusdP/u0l12Rl5xZ YaHiaXFUq+hpKsx4fWBU4KEj00IB85OsfeG9uCilglUnPqKeyFc9PROSJkiT53uHISWdT 5HNrES5KEtnteMpAhfHDjv8rOJlZ6o1FJh4aX8IhYb3ZF8AwELSSM6R+lC4ztiCbs1OhE MaqxE0UnMFeM1dCsGdwxXhGewueb8AaoJ8157APEchATsu3RLGU8leLL4Jotdfyw4+ZSH guP8CF28PzoJ5NS/mJj7oZiCZmhocAOiGHHJ6/qdwiM3QkJSGV99eP6MVzaMeoztEng== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=resnulli.us; spf=pass smtp.mailfrom=resnulli.us; dkim=pass header.d=resnulli.us header.i=@resnulli.us header.a=rsa-sha256 header.s=google header.b=MtJRfYuR; arc=none smtp.remote-ip=209.85.128.47 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4A122606A32D for ; Thu, 3 Dec 2026 09:14:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4A122606A32D Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=resnulli.us Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=resnulli.us Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=resnulli.us header.i=@resnulli.us header.a=rsa-sha256 header.s=google header.b=MtJRfYuR Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-4a207b02a2cso101539425e9.1 for ; Thu, 03 Dec 2026 01:14:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli.us; s=google; t=1796289277; x=1796894077; darn=lists.linux.dev; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=KfBIwEW3tUEBIz0d8pZR/bFuXAm36Cc2Xf61TVbEKt0=; b=MtJRfYuRsKzC90IkuuLc9bjFCDAm5EYs9KJbiBDnXVjOXVzEkDiMBqhT7GnELnBD4g XFFFwspgdNekaZjhVtfwc4bXmxhrP91bMMJuUaUm6gowpDOx6WLmnc/sGKUoofsOKucZ fufPwY2uvsYAs1+9mJ0TnVIzVPqiqsdrrZWiCyDLDdiD+7f4hUwkqt8CkeTX7Jm+omuS /7V500YhFFUqQMMT3bOXFtWtdX751Wxa8afpxJUh496tonj+R9M7jBLJ1Vyl4lHCe/2m AUUqWGpoMfKm0tGIQQ4b7Lx1Z7hJ6+jKc3TIYbrJBTnJiEORSb9nAhsvvwL73pea5ni1 LPJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796289277; x=1796894077; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=KfBIwEW3tUEBIz0d8pZR/bFuXAm36Cc2Xf61TVbEKt0=; b=FEHjpJn0CwLEPp7K8tMts836AKk9Ii0LvzErig/+eBtWL5Xwq2wj56D+TW0BYrdnCU mrE8sQZPc+3MKlEc73H/KNoSO0zakEGPP02O5kSLCG7XrCBKmOKEP+Cj/6e1n2u/v5oK ncKXN16JK6Zc/LczcgYo7mKtYOhqAIeCq96PECF3gdWUq62WrWbTSpWPuJonNv63eUzN gTOyIyJgV53otiVH3qW3gK+ZUuHNqcUmOUyiP/IuFWxMfSBZwsTUwYZHwJMwH6W3RIKM V4G0WcNCmbK5W/k9t1LPqfG2MpXqMT84F1Fq5Mzkc2AAO//SiD8pVa8ACAPKQP43z1yF tL9A== X-Gm-Message-State: APuU4Z9xK9E76fwxRAKB+BQbrw9vJ3+qbfqoTBt1TlE34kSpY7K4Q/TE iZBTGNns6zrot1jqmGR55sTXDzaPY+8t/Ue6VvyATsuThbwlKq+HZhIIMQuDH2N2Ln8= X-Gm-Gg: AZFdTZdmdmajOmu824n69qUeioi1GSHtvtsucHc5ZOPClDd9loZH7q2XHb0bql8btT/ N0eiorv2EEGOoIU+DXB9SwG9emmDlp3QftHzzs6ZSdUOCtRsEoKR8DhwNQ1meAh3yz1g33j2DR6 neMX0VC5pnNlNsTnyAfYSKitayZdcXtDsP2UWNNHG0Ht1LzIwczsfPmnZUi87ch/ZJjUypZ9j4c ygDH0NfgteG4bAZfY/0dgPYUme6jRhSqgTkwP4OEkKmGLXEPf5NIwB3EwZ9w4zUQ8zQ7Zwdi6SR d1qh37qu24qwPL6SFvjnZ/A8XREQ0HWB4RSx64+R83pLuafhfvFFchVCqTmnqq2J1Ovh6EUvx1T TmHWUblHPxGoQhkjHeX2EHYsBf1qSb2V9UKGMYb9b3iL6WoFYPQjwHnaV/Xm5VVVkcdyS9smvDH SfRr+Nk/taU4YZ0Dl3GWZrfnznH2K+QuAjFg63ZE4PR62JkFIcxMIK3bQMbiMl0vEdnMpOkD/SS 2FhNPAYsUtIOfV3KGt0kkB+olTMJRwyD+K0CmA/2siDOO7qy5DsvG7ErTwgMeNDHvndm/CblyYa DxXls9FobQ8WJDjhBPal8igaajKmDxSIeKVLfME= X-Received: by 2002:a05:600c:3555:b0:4a1:9663:7639 with SMTP id 5b1f17b1804b1-4bb8882907fmr876442805e9.34.1796289277416; Thu, 03 Dec 2026 01:14:37 -0800 (PST) Received: from localhost ([140.209.217.212]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bbe00792besm56091625e9.4.2026.12.03.01.14.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2026 01:14:36 -0800 (PST) Date: Thu, 3 Dec 2026 10:14:32 +0100 From: Jiri Pirko To: Jason Gunthorpe Cc: linux-coco@lists.linux.dev, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, x86@kernel.org, kvm@vger.kernel.org, linux-doc@vger.kernel.org, david.quigley@intel.com, lukas@wunner.de, ksinyuk@kernel.org, rodrigo.vivi@intel.com, cedric.xing@intel.com, sameo@meta.com, drdeeglaze@gmail.com, James.Bottomley@hansenpartnership.com, aik@amd.com, jpiotrowski@nvidia.com, qinkun@google.com, pgonda@google.com, jic23@kernel.org, alistair.francis@wdc.com, ankita@nvidia.com, suzuki.poulose@arm.com, kas@kernel.org, rick.p.edgecombe@intel.com, elena.reshetova@intel.com, dave.hansen@linux.intel.com, sathyanarayanan.kuppuswamy@linux.intel.com, peter.fang@intel.com, jarkko@kernel.org, zohar@linux.ibm.com, yeoreum.yun@arm.com, aneesh.kumar@kernel.org, dave.jiang@intel.com, nik.borisov@suse.com, sergii.dmytruk@3mdeb.com Subject: Re: [PATCH RFC v2 1/9] attestation: Add the base family specification and generated files Message-ID: References: <20261113160838.2512652-1-jiri@resnulli.us> <20261113160838.2512652-2-jiri@resnulli.us> <179573913907.519186.8407997114208887089.b4-review@b4> <20261130203538.GB114472@nvidia.com> <20261202150802.GC868208@nvidia.com> X-Mailing-List: linux-coco@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261202150802.GC868208@nvidia.com> Wed, Dec 02, 2026 at 04:08:02PM +0100, jgg@nvidia.com wrote: >On Wed, Dec 02, 2026 at 03:55:52PM +0100, Jiri Pirko wrote: >> You are right that my listing does not say enough, though. The PSP's >> report differs by format, but the SVSM's two reports have the same >> class and the same format. I would let a report name the object it >> binds: >> >> id class format binds >> 0 signed snp-report >> 1 signed snp-svsm-report 2 >> 2 auxiliary svsm-services-manifest >> 3 signed snp-svsm-report 4 >> 4 auxiliary tpm-ek-public >> 5 cert-chain snp-cert-table > >Did we gain class recently? It is in this RFC v2: evidence-class: # Made by evidence-get over its challenge, and signed by the root of # trust. - signed # The platform's log of what firmware and the boot chain measured into # the MRs. Later extends, through mr-extend or otherwise, are not in it. - event-log > >If the tpm-ek isn't signed I wonder why it should come out here? It is what the report signs, one step removed. REPORT_DATA of the SVSM's report is SHA-512(challenge || manifest), and for the vTPM service the manifest is the EK's public area. The verifier cannot recompute REPORT_DATA without those bytes, so the report does not verify without them. They are also the point of that report: it tells the verifier which EK the attested SVSM stands behind. configfs-tsm hands them out as manifestblob for the same reason. So it is unsigned evidence that one signed object covers, and "binds" says which one. tpm-ek-public was a poor placeholder, it is the vTPM service's manifest. > >> >That seems OK, as long as we can manage that code wise. The reason I >> >suggested offering a default is so the driver can have some kind of >> >natural order defining all the evidence it supports and not contort >> >itself into a specific ordering to make id 0 something particular. >> >> Code wise it is the order of the provider's object table, nothing >> more. The rule is "the first signed object whose format you know", >> not "ID 0", so a provider only has to put its signed objects in >> order of preference among themselves and is free with the rest. If >> some provider cannot live with that, a flag on one object can be >> added then. But is it needed? > >I'm worried things like AMD want the snp-report to be the default >unless snp-svsm-report is available. That isn't quite so easy to >express in a static const array.. It is not a static array any more in my working branch. Now a provider adds each object by a call before it registers the device: attestation_evidence_object_add(att, &props, &ops, priv); and the order of the calls is the order of the listing. The SNP provider probes for the SVSM first and adds the reports in the order that fits what it found.. > >> >That sounds aweful, I suppose the issue is DRTM/IMA may not have the >> >loadable modules for every algorithm till after the initrd starts. >> > >> >But how does the verifier make any sense of this when there is a gap >> >in the extension? Does the TCG log include the hash algorithms that >> >succeeded? >> >> The verifier replays each bank on its own. An extend entry of the >> journal carries the digests of exactly the banks it extended, so a >> bank's replay takes the entries that name it and skips the others. >> A bank that was left out of an extension therefore has no gap in >> its own sequence, it just has fewer entries than another bank. >> >> Sergii, feel free to jump in here as this was your suggestion. Thanks! > >DRTM would be using the kernel interface so it is a bit different > >But OK, just make the comment clear. Done. Thanks! > >Jason