Re: [Xen-devel] [PATCH v3 06/12] fuzz/x86_emulate: Take multiple test files for inputs

2017-10-10 Thread Andrew Cooper
On 10/10/17 17:58, George Dunlap wrote: > On 10/10/2017 05:56 PM, Andrew Cooper wrote: >> On 10/10/17 17:20, George Dunlap wrote: >>> @@ -65,12 +68,15 @@ int main(int argc, char **argv) >>> #ifdef __AFL_HAVE_MANUAL_CONTROL >>> __AFL_INIT(); >>> >>> -while ( __AFL_LOOP(1000) ) >>> +

Re: [Xen-devel] [PATCH v3 06/12] fuzz/x86_emulate: Take multiple test files for inputs

2017-10-10 Thread Andrew Cooper
On 10/10/17 17:20, George Dunlap wrote: > @@ -65,12 +68,15 @@ int main(int argc, char **argv) > #ifdef __AFL_HAVE_MANUAL_CONTROL > __AFL_INIT(); > > -while ( __AFL_LOOP(1000) ) > +for( count = 0; __AFL_LOOP(1000); ) > +#else > +for( count = 0; count < max; count++ ) > #endif >

Re: [Xen-devel] [PATCH v3 06/12] fuzz/x86_emulate: Take multiple test files for inputs

2017-10-10 Thread George Dunlap
On 10/10/2017 05:56 PM, Andrew Cooper wrote: > On 10/10/17 17:20, George Dunlap wrote: >> @@ -65,12 +68,15 @@ int main(int argc, char **argv) >> #ifdef __AFL_HAVE_MANUAL_CONTROL >> __AFL_INIT(); >> >> -while ( __AFL_LOOP(1000) ) >> +for( count = 0; __AFL_LOOP(1000); ) >> +#else >>

[Xen-devel] [PATCH v3 06/12] fuzz/x86_emulate: Take multiple test files for inputs

2017-10-10 Thread George Dunlap
Finding aggregate coverage for a set of test files means running each afl-generated test case through the harness. At the moment, this is done by re-executing afl-harness-cov with each input file. When a large number of test cases have been generated, this can take a significant amonut of time;