On Wed, Nov 18, 2026 at 06:45:33PM +0200, Jarkko Sakkinen wrote:
> On Wed, Nov 18, 2026 at 06:44:35PM +0200, Jarkko Sakkinen wrote:
> > On Wed, Nov 18, 2026 at 06:30:56PM +0200, Jarkko Sakkinen wrote:
> > > On Wed, Nov 18, 2026 at 11:06:55AM -0500, James Bottomley wrote:
> > > > The better mechanisms to address this are probably:
> > > > 
> > > >    1. Detect that PCR5 has been disrupted (get the kernel to store the
> > > >       on-boot value and check they match) and if so refuse signed
> > > >       suspend to disk with a message (this is easy).
> > > >    2. Capture the additional writes to PCR5 and store them as part of
> > > >       the attestation so the resuming system can prove the current boot
> > > >       value of PCR5 matches the attested one when the additional
> > > >       extends are replayed (this is a bit more complex).
> > > 
> > > (2) is a great suggestion IMHO; did not cross my mind.
> > > 
> > > That approach would also help to debug any possible issues.
> > > 
> > > I think it also might make sense to drift away from kernel config flag
> > > to kernel-command line parameter when it comes to pre-existing integrity
> > > code. It's time consuming to test and improve right now.
> > 
> > The problem with it is probably the indefinite growth. I.e. despite the
> > log won't likely be that large it has no theoretically maximum  number
>                                            theoretical

Hey, what if this resolved with a combination of your suggestions:

1. Fixed amount of memory for storing event long entries. It does not
   have to be huge in order to be unlikely to end up.
2. However, if this does happen, kernel marks PCR5 as "distrupted",
   and semantics go according to your first proposal.

I think this would be pretty good and totally doable approach.

What do you think?

Br, Jarkko



Reply via email to