On Thu, Jul 02, 2020 at 04:55:44PM -0700, Jerry Snitselaar wrote:
On Fri Jul 03 20, Jarkko Sakkinen wrote:Thank you.
The size of the buffers for storing context's and sessions can vary fromReviewed-by: Jerry Snitselaar <jsnitsel@xxxxxxxxxx>
arch to arch as PAGE_SIZE can be anything between 4 kB and 256 kB (the
maximum for PPC64). Define a fixed buffer size set to 16 kB. This should be
enough for most use with three handles (that is how many we allow at the
moment). Parametrize the buffer size while doing this, so that it is easier
to revisit this later on if required.
Reported-by: Stefan Berger <stefanb@xxxxxxxxxxxxx>
Cc: stable@xxxxxxxxxxxxxxx
Fixes: 745b361e989a ("tpm: infrastructure for TPM spaces")
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@xxxxxxxxxxxxxxx>
Now only needs tested-by from Stefan.
/Jarkko