Hey all,
Sorry for taking forever to get to this. Busy with real life :-(
Question for kcc - have you been seeing major coverage improvements
against real-world targets with that cmp instrumentation?
I've been playing with your trace-cmp feature with djpeg and readpng,
but in my admittedly crappy benchmarks, they go neck-to-neck in AFL,
at least for the first several hours. Tracing comparisons has a
noticeable perf impact (~15%), so I guess it actually gives us
something, but just enough to cancel out the drop? Or maybe I'm
testing wrong =)
It gets slightly ahead in some experiments, such as seeding djpeg /
readpng with a dummy (non-image) file in the starting corpus.
I'm compiling with -fsanitize-coverage=bb,trace-pc,trace-cmp. I'm
hooking all callbacks to code that compares every byte of the
parameters separately, and if the byte matches, sets some distinct
offset in the map. It does work with a sample puzzle program, and
afl-showmap is showing trace changes depending on how many bytes in a
32-bit cmp match.
The changes I made are based on the assumption that fuzzers don't have
a particularly hard time solving one-byte comparisons, and that it
keeps the bitmap density low (whereas popcnt or its positional
equivalent is more noisy). Maybe that's a bad assumption.
/mz
>> >> email to
afl-users+...@googlegroups.com.
>> >> For more options, visit
https://groups.google.com/d/optout.
>> >
>> >
>> > --
>> > You received this message because you are subscribed to the Google Groups
>> > "afl-users" group.
>> > To unsubscribe from this group and stop receiving emails from it, send an
>> > email to
afl-users+...@googlegroups.com.
>> To unsubscribe from this group and stop receiving emails from it, send an email to
afl-users+...@googlegroups.com.
> To unsubscribe from this group and stop receiving emails from it, send an email to
afl-users+...@googlegroups.com.