diff mbox series

[v2,1/6] efi_loader: increase eventlog buffer size

Message ID 20210714130006.17837-2-masahisa.kojima@linaro.org
State Accepted, archived
Commit d934ed577e9257e64e08bc722a7715e586c4a2bc
Delegated to: Heinrich Schuchardt
Headers show
Series add measurement support | expand

Commit Message

Masahisa Kojima July 14, 2021, 1 p.m. UTC
TCG PC Client PFP spec says "The Log Area Minimum Length
for the TCG event log MUST be at least 64KB." in ACPI chapter.
This commit increase the buffer size to 64KB.

Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org>
---

Changes in v2:
- increase buffer size to 64KB, it follows the minimum size
  requirement stated in TCG spec

 lib/efi_loader/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Heinrich Schuchardt July 15, 2021, 6:32 a.m. UTC | #1
On 7/14/21 3:00 PM, Masahisa Kojima wrote:
> TCG PC Client PFP spec says "The Log Area Minimum Length
> for the TCG event log MUST be at least 64KB." in ACPI chapter.
> This commit increase the buffer size to 64KB.
>
> Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org>

Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>

> ---
>
> Changes in v2:
> - increase buffer size to 64KB, it follows the minimum size
>    requirement stated in TCG spec
>
>   lib/efi_loader/Kconfig | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lib/efi_loader/Kconfig b/lib/efi_loader/Kconfig
> index 156b391521..20edac6932 100644
> --- a/lib/efi_loader/Kconfig
> +++ b/lib/efi_loader/Kconfig
> @@ -326,7 +326,7 @@ config EFI_TCG2_PROTOCOL
>   config EFI_TCG2_PROTOCOL_EVENTLOG_SIZE
>   	int "EFI_TCG2_PROTOCOL EventLog size"
>   	depends on EFI_TCG2_PROTOCOL
> -	default 4096
> +	default 65536
>   	help
>   		Define the size of the EventLog for EFI_TCG2_PROTOCOL. Note that
>   		this is going to be allocated twice. One for the eventlog it self
>
diff mbox series

Patch

diff --git a/lib/efi_loader/Kconfig b/lib/efi_loader/Kconfig
index 156b391521..20edac6932 100644
--- a/lib/efi_loader/Kconfig
+++ b/lib/efi_loader/Kconfig
@@ -326,7 +326,7 @@  config EFI_TCG2_PROTOCOL
 config EFI_TCG2_PROTOCOL_EVENTLOG_SIZE
 	int "EFI_TCG2_PROTOCOL EventLog size"
 	depends on EFI_TCG2_PROTOCOL
-	default 4096
+	default 65536
 	help
 		Define the size of the EventLog for EFI_TCG2_PROTOCOL. Note that
 		this is going to be allocated twice. One for the eventlog it self