[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20181130194149.GA18584@linux.intel.com>
Date: Fri, 30 Nov 2018 11:41:49 -0800
From: Jarkko Sakkinen <jarkko.sakkinen@...ux.intel.com>
To: Roberto Sassu <roberto.sassu@...wei.com>
Cc: zohar@...ux.ibm.com, david.safford@...com, monty.wiseman@...com,
linux-integrity@...r.kernel.org,
linux-security-module@...r.kernel.org,
linux-kernel@...r.kernel.org, silviu.vlasceanu@...wei.com
Subject: Re: [PATCH v5 2/7] tpm: remove definition of TPM2_ACTIVE_PCR_BANKS
On Thu, Nov 29, 2018 at 01:04:40PM +0100, Roberto Sassu wrote:
> > > > + struct tpm2_digest digests[0];
> > > > struct tcg_event_field event;
> > > > } __packed;
> > > > --
> > > > 2.17.1
> > > >
> > >
> > > NAK for the same reason as last time.
> >
> > I added this comment to include/linux/tpm_eventlog.h:
> >
> > /*
> > * http://www.trustedcomputinggroup.org/tcg-efi-protocol-specification/
> > *
> > * Set the size of 'digest_sizes' and 'digests', members of
> > tcg_efi_specid_event
> > * and tcg_pcr_event2, to zero. Structures with variable-sized arrays
> > placed
> > * midway are not suitable for type casting.
> > */
> >
>
> If this comment is ok, I will send a new version of the patch set.
>
> Roberto
Even after looking at the spec the last field does not make sense as the
event after digests and digests are not in union. It is just not right.
The comment does not fix that.
/Jarkko
Powered by blists - more mailing lists