[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 04/10] tools/insn-fuzz: Avoid making use of static data



>>> On 27.03.17 at 11:56, <andrew.cooper3@xxxxxxxxxx> wrote:
> AFL has a measure of stability, where it passes the same corpus into the
> fuzzing harness and observes whether the execution path changes from before.
> Any instability in the fuzzing harness reduces its effectiveness, as an
> observed crash may not reliably be caused by the original corpus.
> 
> In preparation to fix a stability bug, introduce struct fuzz_state, 
> allocated
> on the stack and passed around via struct x86_emulate_ctxt's data parameter.
> Propagate ctxt into the helpers such as maybe_fail(), so the state can be
> retrieved.
> 
> Move the previously-static data_{index,num} into struct fuzz_state.
> 
> Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>

Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.