Re: [PATCH RFC v3 7/8] attestation: providers: introduce CCA Guest attestation provider

From: Yeoreum Yun

Date: Fri Nov 27 2026 - 14:13:23 EST


On Fri, Nov 27, 2026 at 07:11:33PM +0000, Yeoreum Yun wrote:
> > On Fri, Nov 27, 2026 at 06:24:25PM +0000, Yeoreum Yun wrote:
> > > > > +static const struct attestation_evidence_format cca_attestation_token_formats[] = {
> > > > > + { .vendor = true, .value = CTLV_ATTESTATION_CCA_GUEST_EVIDENCE_VENDOR_FORMAT_CCA_ATTESTATION_TOKEN },
> > > > > +};
> > > >
> > > > should be the generic EAT token type
> > >
> > > Is there?
> >
> > That's the idea. TDX uses EAT as well.
> >
> > > but the content seems to be different according to vendor, So would
> > > it be better to keep it as vendor type format?
> >
> > EAT is intended to be self describing, so if you parse the EAT then
> > you should understand what the vendor and content is.
> >
> > Knowing the EAT came from RMM won't even tell you which ARM profile
> > version it follows, so I'm feeling like maybe we just need to tell
> > userspace it is an EAT and then userspace can parse it deeply to learn
> > exactly what it is??
>
> Okay. might this would be applied in the FIRME too for PAT once the
> attestation patchset is updated.
> >
> > > > What is this and the related work? That isn't making sense to
> > > > me. If the token size is not absolutely fixed when the driver starts
> > > > then it should be fully dynamic and this just streams the variable
> > > > sized token.
> > > >
> > > > Ideally directly into user memory so we don't need to allocate a kvmalloc.
> > >
> > > In case of live-activation. I think in that case CCA-Realm token could be
> > > different by activating the new RMM.
> >
> > Then the size isn't static and you need to just stream it to userspace
> > whatever you have.
> >
> > I'm expecting these unsized tokens to work by streaming them into a
> > memfd so that userspace doesn't have to try to guess how much space is
> > required.
> >
> > I also think it is pretty broken if LFA is changing the token for
> > realms that are already running. How is that even going to work with
> > an RSI API like that gets the length then tries to fetch into the
> > allocated buffer? Token silently truncates? You need to loop?
>
> I think the problem is the *max-token-size* could be changed.
> once the LFA updates the Realm definitely the contents of hash of
> firmware binary can be changed. this means the token's content could be
> change including the *max-token-size*.
>
> For this, the RSI host call interface has the way to get LFA eventlog.
> IOW, after LFA, there will be LFA log is genreated and then for the
> time of re-attestation, it should deliver the LFA logs together.
>
> And userspace to get a token, it'll check the *max-token-size*,
> So I think it's enough with virtual address not needing streaming.
>
> IOW, after LFA, the max-token-size can be changed and it should
> re-attestat, get new token and sent with LFA eventlog.

But, currently the LFA eventlog spec quite ambiguous for LFA eventlog.
So, It could be discussed later and for this RFC i think dropping this
is enough.

--
Sincerely,
Yeoreum Yun