Re: [PATCH RFC v2 1/9] attestation: Add the base family specification and generated files
From: Jason Gunthorpe
Date: Wed Dec 02 2026 - 10:08:35 EST
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?
If the tpm-ek isn't signed I wonder why it should come out here?
> >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..
> >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.
Jason