lkml.org 
[lkml]   [2020]   [Jul]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] tpm: Define TPM2_SPACE_BUFFER_SIZE to replace the use of PAGE_SIZE
From
Date
On 7/3/20 11:56 PM, Jarkko Sakkinen wrote:
> On Thu, Jul 02, 2020 at 04:55:44PM -0700, Jerry Snitselaar wrote:
>> On Fri Jul 03 20, Jarkko Sakkinen wrote:
>>> The size of the buffers for storing context's and sessions can vary from
>>> 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@linux.ibm.com>
>>> Cc: stable@vger.kernel.org
>>> Fixes: 745b361e989a ("tpm: infrastructure for TPM spaces")
>>> Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
>> Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
> Thank you.
>
> Now only needs tested-by from Stefan.


Tested-by: Stefan Berger <stefanb@linux.ibm.com>


>
> /Jarkko


\
 
 \ /
  Last update: 2020-07-06 20:07    [W:0.141 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site