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

Ptrace issues #239

Open
rdbo opened this issue Jun 19, 2024 · 0 comments
Open

Ptrace issues #239

rdbo opened this issue Jun 19, 2024 · 0 comments

Comments

@rdbo
Copy link
Owner

rdbo commented Jun 19, 2024

These issues were mentioned by @d0ubleday
image
image

TLDR:

  • The ptrace impl doesn't check why the process stopped; it just assumed it was part of the regular execution (which it may not have been)
  • Threads should be frozen to prevent race conditions on the target process
  • The first 128-bytes above RSP could be used for temporary data in leaf functions, according to the ABI showed in the image above, so writing the custom stack on that area may be a bad idea
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