From: Jason Gunthorpe <jgg@nvidia.com>
To: Jiri Pirko <jiri@resnulli.us>
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
Date: Mon, 30 Nov 2026 16:35:38 -0400 [thread overview]
Message-ID: <20261130203538.GB114472@nvidia.com> (raw)
In-Reply-To: <aw16t1hwXcT89wRd@FV6GYCPJ69>
On Mon, Nov 30, 2026 at 03:00:38PM +0100, Jiri Pirko wrote:
> Nothing in this series takes a GUID. The referenced github all_2
> branch does, for now: its evidence-get carries over configfs-tsm's three
> attributes as optional request fields,
>
> service-provider?: string(1..128)
> service-guid?: binary(16)
> service-manifest-version?: uint(..u32-max)
>
> all three or none, taken only by a device whose evidence caps have
> the service flag. That is the GUID from userspace selecting an
> opaque blob that you doubt. Perhaps we can do this differently:
I would like this mess to either all be in the AMD YAML, probably
in a form like this
Or somehow more directly standardized into something actually usable
by a generic collector.
> As I understand the SVSM side, a guest under an SVSM has two
> reports. The PSP's has the challenge as REPORT_DATA. The SVSM's has
> SHA-512(challenge || manifest) there, the manifest being either the
> table of all services or one service's own, which is what the GUID
> selects. Same structure, different binding, so two formats, as you
> say.
Yeah, since the nonce calculation changes it fails my proposed test of
'can check the signature' because you can't validate the nonce without
knowing about the ||
> For a guest under an SVSM that has a vTPM, device-get would list:
>
> id class
> 0 signed the PSP's report
> 1 signed the SVSM's report over all services
> 2 auxiliary the services manifest, which 1 binds
> 3 signed the SVSM's report over the vTPM
> 4 auxiliary the vTPM's manifest, its EK public area,
> which 3 binds
> 5 cert-chain the certificate table
OK, it seems reasonable and this gets rid of the GUIDs right? We
basically hard wire a couple of the choices into the kernel and offer
them as id #?
> each with its format; the last two classes are on the branch, not
> in this series. The caller names a report and its manifest by ID in
> one evidence-get. The kernel maps GUIDs to formats and learns which
> services are there from the services manifest, so no GUID crosses
> the uAPI and a new service is a line in the kernel's table.
How does userspace understand which ID is which of the three signed
evidences? I don't think we should make ID uABI?
> For the default I'd say the objects come in the provider's order of
> preference, so generic userspace takes the first signed one whose
> format it knows. Would that do, or do you want it explicit?
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.
> >> + # The longest the object gets; a blob this long always holds it.
> >> + max-length: uint
> >> + # A signed object's challenge lengths: each entry is one length,
> >> + # or a range from min-length to max-length.
> >> + challenge-lengths[8]?:
> >> + # A single length.
> >> + length?: uint(1..4K, bytes)
> >> + # The shortest of a range.
> >> + min-length?: uint(1..4K, bytes)
> >> + # The longest of a range.
> >> + max-length?: uint(1..4K, bytes)
> >
> >The comments should be more prescriptive on how userspace has to
> >handle this. I guess if length appears then that length must be used,
> >otherwise within the range described by min/max length
> >
> >But I wonder if this is worth some additional schema support to define
> >a tagged union?
>
> What if we just simply drop length and just have min-length and
> max-length? Then min-length==max-length is just a special case.
Makes sense to me
> >> + # Extends banks of the MR by digests, as TPM2_PCR_Extend.
> >> + mr-extend:
> >> + type: action
> >> + fd-access: read-write
> >> + optional: true
> >> + request:
> >> + # The MR to extend, by the ID mr-get lists.
> >> + id: uint(..u32-max)
> >> + # For the banks to extend, each once, in any order.
> >> + mr-values: record
> >> + reply:
> >> + mr-generation: record
> >
> >The comment should say that mr-values must include exactly every bank
> >inside the MR, not more or less.
>
> A subset is meant. v1 wanted every bank, and review of it brought up
> DRTM, which may extend only one bank while several are active:
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?
> >But AMD seems to pass them through 'auxblob' in tsm_report, so there
> >should be a certificates API here to get them. SPDM also has them
> >detached from the evidence.
>
> I'd not add an op for them. An evidence object has a class, and the
> full branch adds cert-chain beside signed and event-log, so certificates
> could be listed by device-get and read by evidence-get like the log is.
OK
Jason
next prev parent reply other threads:[~2026-11-30 20:35 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-13 16:08 [PATCH RFC v2 0/9] attestation: Add a common subsystem and TDX support Jiri Pirko
2026-11-13 16:08 ` [PATCH RFC v2 1/9] attestation: Add the base family specification and generated files Jiri Pirko
2026-11-27 0:25 ` Jason Gunthorpe
2026-11-27 12:54 ` Jiri Pirko
2026-11-30 20:25 ` Jason Gunthorpe
2026-11-30 14:00 ` Jiri Pirko
2026-11-30 20:35 ` Jason Gunthorpe [this message]
2026-11-13 16:08 ` [PATCH RFC v2 2/9] Documentation: attestation: Add userspace ABI Jiri Pirko
2026-11-13 16:08 ` [PATCH RFC v2 3/9] attestation: Prepare provider and instance core Jiri Pirko
2026-11-27 0:25 ` Jason Gunthorpe
2026-11-30 14:19 ` Jiri Pirko
2026-11-30 20:37 ` Jason Gunthorpe
2026-11-13 16:08 ` [PATCH RFC v2 4/9] attestation: Prepare measurement registers Jiri Pirko
2026-11-13 16:08 ` [PATCH RFC v2 5/9] attestation: Add CTLV operation handling Jiri Pirko
2026-11-13 16:08 ` [PATCH RFC v2 6/9] Documentation: attestation: Describe how to write a provider Jiri Pirko
2026-11-13 16:08 ` [PATCH RFC v2 7/9] tdx-guest: Expose the native attestation service API Jiri Pirko
2026-11-13 16:08 ` [PATCH RFC v2 8/9] attestation: Add the TDX family specification and generated files Jiri Pirko
2026-11-13 16:08 ` [PATCH RFC v2 9/9] attestation: Add the TDX family implementation Jiri Pirko
2026-11-23 9:09 ` Yeoreum Yun
2026-11-23 12:38 ` Jarkko Sakkinen
2026-11-23 15:11 ` Jason Gunthorpe
2026-11-23 15:15 ` Jarkko Sakkinen
2026-11-23 15:24 ` Jarkko Sakkinen
2026-11-23 15:40 ` Jason Gunthorpe
2026-11-23 15:42 ` Jarkko Sakkinen
2026-11-24 12:13 ` Jiri Pirko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261130203538.GB114472@nvidia.com \
--to=jgg@nvidia.com \
--cc=James.Bottomley@hansenpartnership.com \
--cc=aik@amd.com \
--cc=alistair.francis@wdc.com \
--cc=aneesh.kumar@kernel.org \
--cc=ankita@nvidia.com \
--cc=cedric.xing@intel.com \
--cc=dave.hansen@linux.intel.com \
--cc=dave.jiang@intel.com \
--cc=david.quigley@intel.com \
--cc=drdeeglaze@gmail.com \
--cc=elena.reshetova@intel.com \
--cc=jarkko@kernel.org \
--cc=jic23@kernel.org \
--cc=jiri@resnulli.us \
--cc=jpiotrowski@nvidia.com \
--cc=kas@kernel.org \
--cc=ksinyuk@kernel.org \
--cc=kvm@vger.kernel.org \
--cc=linux-api@vger.kernel.org \
--cc=linux-coco@lists.linux.dev \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lukas@wunner.de \
--cc=nik.borisov@suse.com \
--cc=peter.fang@intel.com \
--cc=pgonda@google.com \
--cc=qinkun@google.com \
--cc=rick.p.edgecombe@intel.com \
--cc=rodrigo.vivi@intel.com \
--cc=sameo@meta.com \
--cc=sathyanarayanan.kuppuswamy@linux.intel.com \
--cc=sergii.dmytruk@3mdeb.com \
--cc=suzuki.poulose@arm.com \
--cc=x86@kernel.org \
--cc=yeoreum.yun@arm.com \
--cc=zohar@linux.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.