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

aarch64_be SIGILL in resume_until_execution_reaches() #491

Open
forky2 opened this issue Oct 30, 2023 · 1 comment
Open

aarch64_be SIGILL in resume_until_execution_reaches() #491

forky2 opened this issue Oct 30, 2023 · 1 comment

Comments

@forky2
Copy link

forky2 commented Oct 30, 2023

At the following place:

https://github.com/frida/frida-core/blob/535bb66d6355c5bba5dfdc412af2130c4863bba2/src/linux/frida-helper-backend.vala#L1938C36-L1938C36

uint32 breakpoint_val = 0xd4200000U; needs byte order reversed for aarch64_be as instructions are always little endian. Any idea how to do this elegantly from frida-helper-backend.vala? Before this code was moved to vala I might have tried GUINT32_TO_LE() but I don't know if there's a useful equivalent in vala.

@forky2
Copy link
Author

forky2 commented Nov 2, 2023

FYI arm (32-bit) BE8 is broken for similar reasons. I'm patching an internal fork for now so I can get things working for our targets.

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