-
Notifications
You must be signed in to change notification settings - Fork 99
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
[WIP] Frontends synchronization, resuming and statistics #326
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…te into frontend_sync_resume
This was referenced Feb 19, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR:
compiler
(like "dotnet") torunner
(not to mixup with compilators like clang)--fuzzer_out
for fuzzer output, by defaultpopulate_stats
andprint_stats
is called that ideally should print statistic in uniform fashion)run
method (deepstate-*
runs and manages one fuzzer process in (possibly infinite) loop: communicate/sleep forsync_cycle
seconds, then do stats printing and syncing, repeat)For fuzzer syncing and resuming it's important to find out how each of them handle input and output directories. Once known, we may make it uniform as much as possible.
Now each fuzzer instance uses
output_test_dir
as workspace. It should be either empty directory or the same dir as used by previous fuzzing run. So for resuming, we can rundeepstate-afl -o out
, stop fuzzer and then againdeepstate-afl -o out
. Note that we may resume only from exactly the same frontend.Inside workspace frontends automatically create required dirs as described below. This way it should be easier to handle different fuzzers (as opposed to one, shared directory) since some of the fuzzers implements auto-syncing and some not (require restart). Also, this way we know exactly where to push or from where pull testcases.
Frontends may use this variables:
afl
output stats
parallel
output_dir/the_afl/queue/*
to each instanceoutput_dir/some_tool/queue/
(files must be sequentially numbered id:nnnnnn)proposed dir structure
resume
post_exec
libfuzzer
output stats
parallel
proposed dir structure
resume
honggfuzz
output stats
GUI + stdout incremental stats
HONGGFUZZ.REPORT.TXT, not too much info
--verbose: simpler incremental stdout
--logfile: write output to this file (disables --verbose)
parallel
dir structure
resume
angora
output stats
GUI stdout
parallel
dir structure (with --sync_afl)
resume (with --sync_afl)
output_dir/angora/queue/*
intosync_dir/queue/
eclipser
output stats
parallel
dir structure
--outputdir
option)resume