Re: [PATCH v3] KEYS: trusted: correctly initialize digests and fix locking issue

2019-09-10 Thread Jarkko Sakkinen
On Sun, Sep 08, 2019 at 07:45:42PM +0200, Roberto Sassu wrote: > diff --git a/drivers/char/tpm/tpm-interface.c > b/drivers/char/tpm/tpm-interface.c > index 1b4f95c13e00..1fffa91fc148 100644 > --- a/drivers/char/tpm/tpm-interface.c > +++ b/drivers/char/tpm/tpm-interface.c > @@ -316,14 +316,14 @@ in

[PATCH v3] KEYS: trusted: correctly initialize digests and fix locking issue

2019-09-08 Thread Roberto Sassu
Commit 0b6cf6b97b7e ("tpm: pass an array of tpm_extend_digest structures to tpm_pcr_extend()") modifies tpm_pcr_extend() to accept a digest for each PCR bank. After modification, tpm_pcr_extend() expects that digests are passed in the same order as the algorithms set in chip->allocated_banks. This