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

backdoor.asm neglects to push lr #2

Open
four0four opened this issue Mar 22, 2024 · 0 comments
Open

backdoor.asm neglects to push lr #2

four0four opened this issue Mar 22, 2024 · 0 comments

Comments

@four0four
Copy link

Currently, the local backdoor.asm will just crash when returning to userspace, by loading some random nonsense into pc.


elevate:
    stmfd   sp!,{r0-r12}

should be

elevate:
    stmfd   sp!,{r0-r12, lr}

...Or similar. gcc complained about compiling this, but it works just fine on my target, so 🤷
The kernel presumably works around this by manually making space and then using a non-updating store/load.

This seems fixed in the remote example by push lr

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