LibAFL icon indicating copy to clipboard operation
LibAFL copied to clipboard

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

Open s1341 opened this issue 4 years ago • 0 comments

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 avatar Apr 30 '21 04:04 s1341