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

Re: [Xen-devel] [PATCH] libxl: don't segfault when creating domain with invalid pvusb device



On 07/02/17 19:36, Ian Jackson wrote:
> Juergen Gross writes ("[PATCH] libxl: don't segfault when creating domain 
> with invalid pvusb device"):
>> Creating a domain with an invalid controller specification for a pvusb
>> device will currently segfault.
>>
>> Avoid this by bailing out early in case of a mandatory xenstore path
>> not existing.
> 
> This should be done by adding a test of tmp for NULL.  libxl__xs_read
> does no logging so is not really an improvement.
> 
> If you felt like inventing libxl__xs_read_must or something (maybe Wei
> has a suggestion for a better name) that calls ENOENT a failure
> instead, I'd be happy with that.

Okay. I think I'll name it libxl__xs_read_mandatory().


Juergen


_______________________________________________
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®.