]> xenbits.xensource.com Git - xen.git/commit
tools/insn-fuzz: Fix assertion failures in x86_emulate_wrapper()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 7 Mar 2017 16:20:51 +0000 (16:20 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 6 Apr 2017 17:42:50 +0000 (18:42 +0100)
commitdb7b5b0c50b238ca259b83af3aca102701c4abac
tree8ecb0385f33733aed64e82ea7b2884c8df4bf6e6
parent9e9b56fe8aab1f9376acdbbac575b97b7a4e8df9
tools/insn-fuzz: Fix assertion failures in x86_emulate_wrapper()

c/s 92cf67888 "x86/emul: Hold x86_emulate() to strict X86EMUL_EXCEPTION
requirements" was appropriate for the hypervisor, but the fuzzer stubs didn't
conform to the stricter requirements.  AFL is very quick to discover this.

Extend the fuzzing harness exception logic to raise exceptions appropriately.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
tools/fuzz/x86_instruction_emulator/fuzz-emul.c