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

Broken autoexec.elf will also break IPL #62

Closed
Roger-random opened this issue Nov 6, 2019 · 2 comments
Closed

Broken autoexec.elf will also break IPL #62

Roger-random opened this issue Nov 6, 2019 · 2 comments

Comments

@Roger-random
Copy link
Contributor

Roger-random commented Nov 6, 2019

If there is an autoexec.elf present, IPL will try to run it on startup. If the autoexec.elf is bad (with an infinite loop) it also freezes up IPL. While in this state, the badge will not work as a USB mass storage device.

If the user reboots the badge, they're back in the same place and they can't access flash to delete the bad autoexec.elf.

How to get out of it: Modify IPL source code so it looks for some file name other than autoexec.elf. (Preferably an elf that will exit properly, or one that does not exist.) Flash that IPL and reboot the badge to restore access to USB mass storage.

Do we care about putting in any additional mitigation? It is certainly an option for us to say "Yep, it'll happen, and that's how you get out of it."

@Roger-random
Copy link
Contributor Author

Chat discussion says to address this by adding an option for the user to skip autoexec by holding down a button. An implementation that responds to holding down START has been implemented and awaiting review as PR #65

@Roger-random
Copy link
Contributor Author

Fix has been merged!

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