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

frida-asan: Crash the target at the actual error instruction #71

Open
s1341 opened this issue Apr 30, 2021 · 0 comments
Open

frida-asan: Crash the target at the actual error instruction #71

s1341 opened this issue Apr 30, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@s1341
Copy link
Collaborator

s1341 commented Apr 30, 2021

frida-asan should crash the target at the actual error instruction location instead of panicking from the error reporting function.

This can probably be most easily achieved by:

  1. mprotecting the page being accessed to remove read/write permissions.
  2. Jumping back to the error instruction with restored state by (ab)using either longjmp or sigreturn.

This will make triaging bugs much easier, as they will die e.g. when run under gdb at the actual 'fault' location.

@s1341 s1341 added the enhancement New feature or request label Apr 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant