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

Fast Analyzer #2

Open
OleksiiOleksenko opened this issue Mar 10, 2020 · 0 comments
Open

Fast Analyzer #2

OleksiiOleksenko opened this issue Mar 10, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@OleksiiOleksenko
Copy link
Owner

One of the major performance bottlenecks when fuzzing with SpecFuzz is the speed of processing the detected bounds violations.

Currently, it is implemented in a very dumb way: Every violation is printed into stderr and we have a python script (postprocessing/analyzer.py) that collects and aggregates the results.

It has several major consequences:

  1. We cannot fuzz on multiple threads - otherwise, the output may get corrupted.
  2. Reporting a vulnerability involves calling fprintf, which is slow when executed hundreds of times per second
  3. Processing every violation requires parsing a string - again, slow
  4. All processing is implemented in python, which is not exactly the fastest language

On top of it, the analyzer itself is not very optimized, which slows down the processing even further.

To deal with these issues, the processing should be completely re-written. The best would if all this functionality becomes a part of our HonggFuzz patch. Then, reporting would be similar to how coverage is implemented right now: SpecFuzz would report the violations through shared memory and a module in HonggFuzz would do the processing.

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