On Wed, May 04, 2022 at 04:21:01PM -0700, Evan Green wrote: > + /* TPML_PCR_SELECTION.count */ > + if (be32_to_cpu(*(int *)payload->creation) != 1) { > + ret = -EINVAL; > + goto out; > + } Make sure to run sparse by passing C=1 to make. It will find bugs like this where the wrong type is being used (int instead of __be32 here). - Eric