summaryrefslogtreecommitdiff
path: root/src/lib/prog_ops.c
diff options
context:
space:
mode:
authorJulius Werner <jwerner@chromium.org>2023-10-27 15:55:17 -0700
committerJulius Werner <jwerner@chromium.org>2023-11-22 01:50:47 +0000
commit943a2c90d827ede0ae64f1518d39a381c69ff698 (patch)
tree3b3701106630d4228c1487b0839be970cc93998d /src/lib/prog_ops.c
parent0712851ca313e0b8ae70d06d7792e97c8e0c5c3b (diff)
vboot: Add catchall recovery reason for unspecified phase 4 errors
The code for "phase 4" of firmware verification currently only sets a recovery reason when there's an actual hash mismatch detected in vb2api_check_hash_get_digest(). This is the most likely way how this section of code can fail but not the only one. If any other unexpected issue occurs, we should still set a recovery reason rather than just reboot and risk an infinite boot loop. This patch adds a catchall recovery reason for any error code that falls out of this block of code. If a more specific recovery reason had already been set beforehand, we'll continue to use that -- if not, we'll set VB2_RECOVERY_FW_GET_FW_BODY. Change-Id: If00f00f00f00aa113e0325aad58d367f244aca49 Signed-off-by: Julius Werner <jwerner@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/78866 Reviewed-by: Yu-Ping Wu <yupingso@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/lib/prog_ops.c')
0 files changed, 0 insertions, 0 deletions