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

Re: [Xen-devel] [PATCH] x86emul/fuzz: add a state sanitization function



>>> On 29.03.19 at 16:10, <George.Dunlap@xxxxxxxxxx> wrote:
>> On Mar 29, 2019, at 2:54 PM, Jan Beulich <JBeulich@xxxxxxxx> wrote:
>> @@ -424,8 +426,19 @@ static int fuzz_write_segment(
>>     rc = maybe_fail(ctxt, "write_segment", true);
>> 
>>     if ( rc == X86EMUL_OKAY )
>> +    {
>>         c->segments[seg] = *reg;
>> 
>> +        if ( !sanitize_state(ctxt) )
>> +        {
>> +            struct segment_register old = c->segments[seg];
> 
> I think you have this in the wrong place.

Ouch. Thanks for noticing.

Jan



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

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