commit | 41c26ad5f6a50d36c9b9c8b54cf7bdb4d8f8da4f | [log] [tgz] |
---|---|---|
author | Hung-Te Lin <hungte@chromium.org> | Tue Jan 15 18:07:23 2019 +0800 |
committer | Hung-Te Lin <hungte@chromium.org> | Mon May 06 03:23:38 2019 +0000 |
tree | 846f028f32ad366809f3555d3c72b8d34aa9624c | |
parent | fca74dbb3afd99c3857d4888b3ca97ad9ddbcc48 [diff] |
futility: updater: Correct HWID digest when preserving HWID Starting from GBB 1.2, a digest is stored in GBB and must be updated whenever the HWID string is changed. In shell script version of updater, the digest is automatically updated when we do "futility gbb -s --hwid=XXX", but in native updater implementation we only updated the HWID string and left digest unchanged, this leaves devices generating wrong PCR1 values. `cmd_gbb_utility` updates the digest by calling `update_hwid_digest` using vboot1 structure, so we should introduce a new vboot2 friendly function, `vb2_change_hwid`, which changes both HWID string and digest at same time. Note this has no impact for end user's devices with write protection enabled. Only changes dogfood units AU results. BUG=b:122248649 TEST=make futil; tests/futility/run_test_scripts.sh $(pwd)/build/futility BRANCH=none Change-Id: I6ad2754e6df3c9dd66d71c560a2afc26d14eae33 Signed-off-by: Hung-Te Lin <hungte@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/1411949 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1588018 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1593204