On 11.07.2022 17:35, G.R. wrote:
> On Mon, Jul 11, 2022 at 7:03 PM Juergen Gross <[email protected]> wrote:
>>
>> On 11.07.22 12:38, Anthony PERARD wrote:
>>> libxl__xs_directory() can potentially return NULL without setting `n`.
>>> As `n` isn't initialised, we need to check libxl__xs_directory()
>>> return value before checking `n`. Otherwise, `n` might be non-zero
>>> with `bdfs` NULL which would lead to a segv.
>>>
>>> Reported-by: "G.R." <[email protected]>
>>> Fixes: 57bff091f4 ("libxl: add 'name' field to 'libxl_device_pci' in the 
>>> IDL...")
>>> Signed-off-by: Anthony PERARD <[email protected]>
>>
>> Reviewed-by: Juergen Gross <[email protected]>
> 
> I can confirm that the change fixed the segment fault issue I observed
> on 4.16.1 release.

I'll take the liberty and transform this into a Tested-by:.

Jan

Reply via email to