Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions stage0/jump_stage1.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ void ebldr_stage0_main(void)
if (match1 || match2) {
eos_boot_log_append(EOS_LOG_BOOT_FAIL, EOS_SLOT_NONE, 0xBAD1);
eos_recovery_enter(&bctl);
/* eos_recovery_enter() only returns if it decides to reboot rather
* than halt. Either way, a Stage-1 that just failed its integrity
* check must never be jumped into — return so the corrupted image
* is never entered. */
return;
}
eos_boot_log_append(EOS_LOG_IMAGE_VALID, EOS_SLOT_NONE, 0);
#endif
Expand Down