Re: [Xen-devel] [PATCH v3 09/11] fuzz/x86emul: update fuzzer

2017-02-03 Thread Wei Liu
On Fri, Feb 03, 2017 at 12:04:04AM -0700, Jan Beulich wrote: > >>> On 02.02.17 at 18:12, wrote: > > On Thu, Feb 02, 2017 at 10:01:46AM -0700, Jan Beulich wrote: > >> >>> On 02.02.17 at 17:50, wrote: > >> > On Thu, Feb 02, 2017 at 05:20:56AM -0700, Jan Beulich wrote: > >> >> >>> On 01.02.17 at 13:

Re: [Xen-devel] [PATCH v3 09/11] fuzz/x86emul: update fuzzer

2017-02-02 Thread Jan Beulich
>>> On 02.02.17 at 18:12, wrote: > On Thu, Feb 02, 2017 at 10:01:46AM -0700, Jan Beulich wrote: >> >>> On 02.02.17 at 17:50, wrote: >> > On Thu, Feb 02, 2017 at 05:20:56AM -0700, Jan Beulich wrote: >> >> >>> On 01.02.17 at 13:02, wrote: >> >> > +static int _fuzz_read_msr( >> >> > +unsigned i

Re: [Xen-devel] [PATCH v3 09/11] fuzz/x86emul: update fuzzer

2017-02-02 Thread Wei Liu
On Thu, Feb 02, 2017 at 10:01:46AM -0700, Jan Beulich wrote: > >>> On 02.02.17 at 17:50, wrote: > > On Thu, Feb 02, 2017 at 05:20:56AM -0700, Jan Beulich wrote: > >> >>> On 01.02.17 at 13:02, wrote: > >> > +static int fuzz_read_segment( > >> > +enum x86_segment seg, > >> > +struct segment

Re: [Xen-devel] [PATCH v3 09/11] fuzz/x86emul: update fuzzer

2017-02-02 Thread Jan Beulich
>>> On 02.02.17 at 17:50, wrote: > On Thu, Feb 02, 2017 at 05:20:56AM -0700, Jan Beulich wrote: >> >>> On 01.02.17 at 13:02, wrote: >> > +static int fuzz_read_segment( >> > +enum x86_segment seg, >> > +struct segment_register *reg, >> > +struct x86_emulate_ctxt *ctxt) >> > +{ >> > +

Re: [Xen-devel] [PATCH v3 09/11] fuzz/x86emul: update fuzzer

2017-02-02 Thread Wei Liu
On Thu, Feb 02, 2017 at 05:20:56AM -0700, Jan Beulich wrote: > >>> On 01.02.17 at 13:02, wrote: > > @@ -16,26 +17,78 @@ > > > > #include "x86_emulate.h" > > > > -static unsigned char data[4096]; > > +#define MSR_INDEX_MAX 16 > > + > > +#define SEG_NUM x86_seg_none > > + > > +struct input_stru

Re: [Xen-devel] [PATCH v3 09/11] fuzz/x86emul: update fuzzer

2017-02-02 Thread Jan Beulich
>>> On 01.02.17 at 13:02, wrote: > @@ -16,26 +17,78 @@ > > #include "x86_emulate.h" > > -static unsigned char data[4096]; > +#define MSR_INDEX_MAX 16 > + > +#define SEG_NUM x86_seg_none > + > +struct input_struct { > +unsigned long cr[5]; > +uint64_t msr[MSR_INDEX_MAX]; > +struct

Re: [Xen-devel] [PATCH v3 09/11] fuzz/x86emul: update fuzzer

2017-02-01 Thread Wei Liu
This patch will be squashed in. From 4990d760f900223e32cb800e7374ee45d357081b Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Wed, 1 Feb 2017 16:54:58 + Subject: [PATCH] fixup! fuzz/x86emul: update fuzzer --- .../x86-insn-emulator-fuzzer.c | 18 -- 1 fil

[Xen-devel] [PATCH v3 09/11] fuzz/x86emul: update fuzzer

2017-02-01 Thread Wei Liu
Provide the fuzzer with more ops, and more sophisticated input structure. Based on a patch originally written by Andrew and George. Signed-off-by: Andrew Cooper Signed-off-by: George Dunlap Signed-off-by: Wei Liu --- Cc: Ian Jackson Cc: Jan Beulich Cc: Andrew Cooper Cc: George Dunlap v3: