Re: [PATCH] tpm: fix response size validation in tpm_get_random()

2018-09-05 Thread Stefan Berger
On 09/02/2018 09:10 PM, Jarkko Sakkinen wrote: When checking whether the response is large enough to be able to contain the received random bytes in tpm_get_random() and tpm2_get_random(), they fail to take account the header size, which should be added to the minimum size. This commit fixes this

Re: [PATCH] tpm: fix response size validation in tpm_get_random()

2018-09-05 Thread Jarkko Sakkinen
On Mon, Sep 03, 2018 at 04:10:04AM +0300, Jarkko Sakkinen wrote: > When checking whether the response is large enough to be able to contain > the received random bytes in tpm_get_random() and tpm2_get_random(), > they fail to take account the header size, which should be added to the > minimum size

[PATCH] tpm: fix response size validation in tpm_get_random()

2018-09-02 Thread Jarkko Sakkinen
When checking whether the response is large enough to be able to contain the received random bytes in tpm_get_random() and tpm2_get_random(), they fail to take account the header size, which should be added to the minimum size. This commit fixes this issue. Cc: sta...@vger.kernel.org Fixes: c659af