Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check that the program counter is in our archive #396

Open
mkeeter opened this issue Jun 14, 2023 · 0 comments
Open

Check that the program counter is in our archive #396

mkeeter opened this issue Jun 14, 2023 · 0 comments

Comments

@mkeeter
Copy link
Contributor

mkeeter commented Jun 14, 2023

Calling something like

humility -a build-rot-carrier-image-b.zip tasks

will "work" even if Hubris is executing out of slot A, as long as slot B is programmed with the given image. This is because the RoT slots are absolutely addressed in flash, so "check if the image ID at flash location X matches" passes.

Obviously, all Humility results will be wrong when operating in this regime.

We should check the program counter and make sure we're actually in the executable space of our archive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant