Frans Hendriks has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/40526 )
Change subject: vc/eltan/security/verified_boot/vboot_check.c: Increase wb_buffer size ......................................................................
vc/eltan/security/verified_boot/vboot_check.c: Increase wb_buffer size
Commit aee0baf0690681fae85d24e6887d6cbb9209de83 results in error: VB2:vb2_rsa_verify_digest() ERROR - vboot2 work buffer too small! ERROR: HASH table verification failed!
The actual vboot structures require more space. Workbuffer size needs to be increased.
BUG=N/A TEST=Build and boot Facebook fbg1701
Change-Id: I5caebc643eb493f4285c2f2fc164ff3a5d35e24e Signed-off-by: Frans Hendriks fhendriks@eltan.com --- M src/vendorcode/eltan/security/verified_boot/vboot_check.c 1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/26/40526/1
diff --git a/src/vendorcode/eltan/security/verified_boot/vboot_check.c b/src/vendorcode/eltan/security/verified_boot/vboot_check.c index 174a378..bba7e89 100644 --- a/src/vendorcode/eltan/security/verified_boot/vboot_check.c +++ b/src/vendorcode/eltan/security/verified_boot/vboot_check.c @@ -26,7 +26,7 @@ struct vb2_kernel_preamble *pre; static struct vb2_shared_data *sd; size_t size; - uint8_t wb_buffer[2800]; + uint8_t wb_buffer[3000];
if (vb2api_init(&wb_buffer, sizeof(wb_buffer), &ctx)) { goto fail;
Wim Vervoorn has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/40526 )
Change subject: vc/eltan/security/verified_boot/vboot_check.c: Increase wb_buffer size ......................................................................
Patch Set 1: Code-Review+2
Stefan Reinauer has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/40526 )
Change subject: vc/eltan/security/verified_boot/vboot_check.c: Increase wb_buffer size ......................................................................
Patch Set 1:
(1 comment)
https://review.coreboot.org/c/coreboot/+/40526/1//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/40526/1//COMMIT_MSG@9 PS1, Line 9: aee0baf0690681fae85d24e6887d6cbb9209de83 Are you sure that's the root cause for the error? CB:40323 (which matches above git hash) looks benign wrt vboot
Frans Hendriks has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/40526 )
Change subject: vc/eltan/security/verified_boot/vboot_check.c: Increase wb_buffer size ......................................................................
Patch Set 1:
(1 comment)
https://review.coreboot.org/c/coreboot/+/40526/1//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/40526/1//COMMIT_MSG@9 PS1, Line 9: aee0baf0690681fae85d24e6887d6cbb9209de83
Are you sure that's the root cause for the error? CB:40323 (which matches above git hash) looks beni […]
Not this specific commit is causing the issue. After a while we built and verify the actual sources on the real system. Using this particual commit does not boot.
Did not investigate the root cause, since we have a solution.
Patrick Georgi has uploaded a new patch set (#2) to the change originally created by Frans Hendriks. ( https://review.coreboot.org/c/coreboot/+/40526 )
Change subject: vc/eltan/security/verified_boot/vboot_check.c: Increase wb_buffer size ......................................................................
vc/eltan/security/verified_boot/vboot_check.c: Increase wb_buffer size
Running commit aee0baf0690681fae85d24e6887d6cbb9209de83 on Facebook fbg1701 results in an error: VB2:vb2_rsa_verify_digest() ERROR - vboot2 work buffer too small! ERROR: HASH table verification failed!
The actual vboot structures require more space. Workbuffer size needs to be increased.
We didn't determine the commit causing the issue because this change fixes the issue.
BUG=N/A TEST=Build and boot Facebook fbg1701
Change-Id: I5caebc643eb493f4285c2f2fc164ff3a5d35e24e Signed-off-by: Frans Hendriks fhendriks@eltan.com --- M src/vendorcode/eltan/security/verified_boot/vboot_check.c 1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/26/40526/2
Patrick Georgi has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/40526 )
Change subject: vc/eltan/security/verified_boot/vboot_check.c: Increase wb_buffer size ......................................................................
Patch Set 2:
(1 comment)
https://review.coreboot.org/c/coreboot/+/40526/1//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/40526/1//COMMIT_MSG@9 PS1, Line 9: aee0baf0690681fae85d24e6887d6cbb9209de83
Not this specific commit is causing the issue. […]
I clarified the commit message
Patrick Georgi has submitted this change. ( https://review.coreboot.org/c/coreboot/+/40526 )
Change subject: vc/eltan/security/verified_boot/vboot_check.c: Increase wb_buffer size ......................................................................
vc/eltan/security/verified_boot/vboot_check.c: Increase wb_buffer size
Running commit aee0baf0690681fae85d24e6887d6cbb9209de83 on Facebook fbg1701 results in an error: VB2:vb2_rsa_verify_digest() ERROR - vboot2 work buffer too small! ERROR: HASH table verification failed!
The actual vboot structures require more space. Workbuffer size needs to be increased.
We didn't determine the commit causing the issue because this change fixes the issue.
BUG=N/A TEST=Build and boot Facebook fbg1701
Change-Id: I5caebc643eb493f4285c2f2fc164ff3a5d35e24e Signed-off-by: Frans Hendriks fhendriks@eltan.com Reviewed-on: https://review.coreboot.org/c/coreboot/+/40526 Tested-by: build bot (Jenkins) no-reply@coreboot.org Reviewed-by: Wim Vervoorn wvervoorn@eltan.com --- M src/vendorcode/eltan/security/verified_boot/vboot_check.c 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: build bot (Jenkins): Verified Wim Vervoorn: Looks good to me, approved
diff --git a/src/vendorcode/eltan/security/verified_boot/vboot_check.c b/src/vendorcode/eltan/security/verified_boot/vboot_check.c index ac9d73b..a07b470 100644 --- a/src/vendorcode/eltan/security/verified_boot/vboot_check.c +++ b/src/vendorcode/eltan/security/verified_boot/vboot_check.c @@ -26,7 +26,7 @@ struct vb2_kernel_preamble *pre; static struct vb2_shared_data *sd; size_t size; - uint8_t wb_buffer[2800]; + uint8_t wb_buffer[3000];
if (vb2api_init(&wb_buffer, sizeof(wb_buffer), &ctx)) { goto fail;