Attention is currently required from: Andrey Pronin, Aseda Aboagye, Aaron Durbin.
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/52919 )
Change subject: chromeos/Kconfig: Add TPM20_CREATE_FWMP
......................................................................
Patch Set 4:
(1 comment)
File src/security/vboot/secdata_tpm.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-118447):
https://review.coreboot.org/c/coreboot/+/52919/comment/276fd449_f7e6344e
PS4, Line 249: * This scenario is rare as it should only occur if we succeded in
'succeded' may be misspelled - perhaps 'succeeded'?
--
To view, visit https://review.coreboot.org/c/coreboot/+/52919
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I1f566e00f11046ff9a9891c65660af50fbb83675
Gerrit-Change-Number: 52919
Gerrit-PatchSet: 4
Gerrit-Owner: Aseda Aboagye <aaboagye(a)google.com>
Gerrit-Reviewer: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-Reviewer: Andrey Pronin <apronin(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Julius Werner <jwerner(a)chromium.org>
Gerrit-Attention: Andrey Pronin <apronin(a)chromium.org>
Gerrit-Attention: Aseda Aboagye <aaboagye(a)google.com>
Gerrit-Attention: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-Comment-Date: Wed, 05 May 2021 00:00:14 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: Andrey Pronin, Aseda Aboagye, Aaron Durbin.
Hello build bot (Jenkins), Andrey Pronin, Aaron Durbin,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/52919
to look at the new patch set (#4).
Change subject: chromeos/Kconfig: Add TPM20_CREATE_FWMP
......................................................................
chromeos/Kconfig: Add TPM20_CREATE_FWMP
This commit adds a new config option, TPM20_CREATE_FWMP which
instructs coreboot to create the Chrome OS Firmware Management
Parameters space in the TPM. When selected, coreboot will simply
define this space, but not initialize the contents. The space can be
written to by the TPM owner from userspace.
BUG=b:184677625
BRANCH=None
TEST=emerge-keeby coreboot
Signed-off-by: Aseda Aboagye <aaboagye(a)google.com>
Change-Id: I1f566e00f11046ff9a9891c65660af50fbb83675
---
M src/security/vboot/secdata_tpm.c
M src/vendorcode/google/chromeos/Kconfig
2 files changed, 38 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/19/52919/4
--
To view, visit https://review.coreboot.org/c/coreboot/+/52919
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I1f566e00f11046ff9a9891c65660af50fbb83675
Gerrit-Change-Number: 52919
Gerrit-PatchSet: 4
Gerrit-Owner: Aseda Aboagye <aaboagye(a)google.com>
Gerrit-Reviewer: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-Reviewer: Andrey Pronin <apronin(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Julius Werner <jwerner(a)chromium.org>
Gerrit-Attention: Andrey Pronin <apronin(a)chromium.org>
Gerrit-Attention: Aseda Aboagye <aaboagye(a)google.com>
Gerrit-Attention: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-MessageType: newpatchset
Attention is currently required from: Andrey Pronin, Aseda Aboagye, Aaron Durbin.
Julius Werner has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/52919 )
Change subject: chromeos/Kconfig: Add TPM20_CREATE_FWMP
......................................................................
Patch Set 3:
(5 comments)
File src/security/vboot/secdata_tpm.c:
https://review.coreboot.org/c/coreboot/+/52919/comment/739bf9ef_8b1c1449
PS1, Line 111:
I'd put the attribute definition here so we have them all in one place to compare.
https://review.coreboot.org/c/coreboot/+/52919/comment/d7633e7f_01f35a81
PS1, Line 237: .TPMA_NV_OWNERWRITE = 1,
Should we also add PPWRITE just in case the RW firmware ever needs to make modifications there? (Not currently needed but may be useful to keep open as an option for unexpected future requirements.)
https://review.coreboot.org/c/coreboot/+/52919/comment/1292c9a6_6cbefd73
PS1, Line 243: rv = tlcl_define_space(FWMP_NV_INDEX, VB2_SECDATA_FWMP_MAX_SIZE,
Why not reuse set_space()? We should initialize the FWMP with valid data too. You can add a vb2_secdata_fwmp_create() function to vboot to do that. (Also, should probably wrap the set_space() invocation in another set_fwmp_space() just for consistency with the others.)
https://review.coreboot.org/c/coreboot/+/52919/comment/b9eda9a6_ff8d6cbd
PS1, Line 244: pcr0_allowed_policy,
I don't think this has any meaning when POLICY_DELETE isn't set, unless Andrey says otherwise. I think you just want (NULL, 0) here like for set_kernel_space().
File src/vendorcode/google/chromeos/Kconfig:
https://review.coreboot.org/c/coreboot/+/52919/comment/fbc28c9d_bb60bfc1
PS1, Line 95: config TPM20_CREATE_FWMP
Not sure why this should be a Kconfig? Don't we just want to do this unconditionally on all future devices? (I remember discussing this with Andrey but can't find it anymore... basically, I think it would be good to just get off the custom cr50 hacks and do things this way on all devices going forward.)
--
To view, visit https://review.coreboot.org/c/coreboot/+/52919
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I1f566e00f11046ff9a9891c65660af50fbb83675
Gerrit-Change-Number: 52919
Gerrit-PatchSet: 3
Gerrit-Owner: Aseda Aboagye <aaboagye(a)google.com>
Gerrit-Reviewer: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-Reviewer: Andrey Pronin <apronin(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Julius Werner <jwerner(a)chromium.org>
Gerrit-Attention: Andrey Pronin <apronin(a)chromium.org>
Gerrit-Attention: Aseda Aboagye <aaboagye(a)google.com>
Gerrit-Attention: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-Comment-Date: Tue, 04 May 2021 23:59:31 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: Aseda Aboagye, Aaron Durbin.
Aseda Aboagye has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/52919 )
Change subject: chromeos/Kconfig: Add TPM20_CREATE_FWMP
......................................................................
Patch Set 3:
(1 comment)
File src/security/vboot/secdata_tpm.c:
https://review.coreboot.org/c/coreboot/+/52919/comment/2671eb19_0a808720
PS1, Line 246: if (rv == TPM_E_NV_DEFINED) {
> Sorry, I missed this was in _factory_initialized_tpm(). […]
Ah, I see what you mean now. Yes, sorry, we want to continue if we're successful.
--
To view, visit https://review.coreboot.org/c/coreboot/+/52919
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I1f566e00f11046ff9a9891c65660af50fbb83675
Gerrit-Change-Number: 52919
Gerrit-PatchSet: 3
Gerrit-Owner: Aseda Aboagye <aaboagye(a)google.com>
Gerrit-Reviewer: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Aseda Aboagye <aaboagye(a)google.com>
Gerrit-Attention: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-Comment-Date: Tue, 04 May 2021 23:57:52 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Aseda Aboagye <aaboagye(a)google.com>
Comment-In-Reply-To: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-MessageType: comment
Attention is currently required from: Aseda Aboagye.
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/52919 )
Change subject: chromeos/Kconfig: Add TPM20_CREATE_FWMP
......................................................................
Patch Set 3:
(1 comment)
File src/security/vboot/secdata_tpm.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-118445):
https://review.coreboot.org/c/coreboot/+/52919/comment/5dd7b43d_a4f6dea9
PS3, Line 249: * This scenario is rare as it should only occur if we succeded in
'succeded' may be misspelled - perhaps 'succeeded'?
--
To view, visit https://review.coreboot.org/c/coreboot/+/52919
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I1f566e00f11046ff9a9891c65660af50fbb83675
Gerrit-Change-Number: 52919
Gerrit-PatchSet: 3
Gerrit-Owner: Aseda Aboagye <aaboagye(a)google.com>
Gerrit-Reviewer: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Aseda Aboagye <aaboagye(a)google.com>
Gerrit-Comment-Date: Tue, 04 May 2021 23:56:09 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: Aseda Aboagye.
Hello build bot (Jenkins), Aaron Durbin,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/52919
to look at the new patch set (#3).
Change subject: chromeos/Kconfig: Add TPM20_CREATE_FWMP
......................................................................
chromeos/Kconfig: Add TPM20_CREATE_FWMP
This commit adds a new config option, TPM20_CREATE_FWMP which
instructs coreboot to create the Chrome OS Firmware Management
Parameters space in the TPM. When selected, coreboot will simply
define this space, but not initialize the contents. The space can be
written to by the TPM owner from userspace.
BUG=b:184677625
BRANCH=None
TEST=emerge-keeby coreboot
Signed-off-by: Aseda Aboagye <aaboagye(a)google.com>
Change-Id: I1f566e00f11046ff9a9891c65660af50fbb83675
---
M src/security/vboot/secdata_tpm.c
M src/vendorcode/google/chromeos/Kconfig
2 files changed, 38 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/19/52919/3
--
To view, visit https://review.coreboot.org/c/coreboot/+/52919
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I1f566e00f11046ff9a9891c65660af50fbb83675
Gerrit-Change-Number: 52919
Gerrit-PatchSet: 3
Gerrit-Owner: Aseda Aboagye <aaboagye(a)google.com>
Gerrit-Reviewer: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Aseda Aboagye <aaboagye(a)google.com>
Gerrit-MessageType: newpatchset
Attention is currently required from: Aseda Aboagye.
Aaron Durbin has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/52919 )
Change subject: chromeos/Kconfig: Add TPM20_CREATE_FWMP
......................................................................
Patch Set 2:
(1 comment)
File src/security/vboot/secdata_tpm.c:
https://review.coreboot.org/c/coreboot/+/52919/comment/07a50f55_d4d85120
PS1, Line 246: if (rv == TPM_E_NV_DEFINED) {
> Negative. This scenario should be rare (e.g. […]
Sorry, I missed this was in _factory_initialized_tpm(). It might be more self explanatory if I was more perceptive.
My next question is if it wasn't defined we'd return from the function w/o calling set_firmware_space()? Basically if rv == TPM_SUCCESS or (rv != TPM_E_NV_DEFINED) we're returning early. Should the 'else' be 'else if (rv != TPM_SUCCESS)' or whatever the successful return value?
--
To view, visit https://review.coreboot.org/c/coreboot/+/52919
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I1f566e00f11046ff9a9891c65660af50fbb83675
Gerrit-Change-Number: 52919
Gerrit-PatchSet: 2
Gerrit-Owner: Aseda Aboagye <aaboagye(a)google.com>
Gerrit-Reviewer: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Aseda Aboagye <aaboagye(a)google.com>
Gerrit-Comment-Date: Tue, 04 May 2021 23:53:01 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Aseda Aboagye <aaboagye(a)google.com>
Comment-In-Reply-To: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-MessageType: comment
Attention is currently required from: Aaron Durbin.
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/52919 )
Change subject: chromeos/Kconfig: Add TPM20_CREATE_FWMP
......................................................................
Patch Set 2:
(1 comment)
File src/security/vboot/secdata_tpm.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-118443):
https://review.coreboot.org/c/coreboot/+/52919/comment/10415da8_6cbafb0f
PS2, Line 249: * This scenario is rare as it should only occur if we succeded in
'succeded' may be misspelled - perhaps 'succeeded'?
--
To view, visit https://review.coreboot.org/c/coreboot/+/52919
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I1f566e00f11046ff9a9891c65660af50fbb83675
Gerrit-Change-Number: 52919
Gerrit-PatchSet: 2
Gerrit-Owner: Aseda Aboagye <aaboagye(a)google.com>
Gerrit-Reviewer: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-Comment-Date: Tue, 04 May 2021 23:51:24 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: Aseda Aboagye, Aaron Durbin.
Hello build bot (Jenkins), Aaron Durbin,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/52919
to look at the new patch set (#2).
Change subject: chromeos/Kconfig: Add TPM20_CREATE_FWMP
......................................................................
chromeos/Kconfig: Add TPM20_CREATE_FWMP
This commit adds a new config option, TPM20_CREATE_FWMP which
instructs coreboot to create the Chrome OS Firmware Management
Parameters space in the TPM. When selected, coreboot will simply
define this space, but not initialize the contents. The space can be
written to by the TPM owner from userspace.
BUG=b:184677625
BRANCH=None
TEST=emerge-keeby coreboot
Signed-off-by: Aseda Aboagye <aaboagye(a)google.com>
Change-Id: I1f566e00f11046ff9a9891c65660af50fbb83675
---
M src/security/vboot/secdata_tpm.c
M src/vendorcode/google/chromeos/Kconfig
2 files changed, 38 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/19/52919/2
--
To view, visit https://review.coreboot.org/c/coreboot/+/52919
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I1f566e00f11046ff9a9891c65660af50fbb83675
Gerrit-Change-Number: 52919
Gerrit-PatchSet: 2
Gerrit-Owner: Aseda Aboagye <aaboagye(a)google.com>
Gerrit-Reviewer: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Aseda Aboagye <aaboagye(a)google.com>
Gerrit-Attention: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-MessageType: newpatchset