Re: [PATCH 6/9] vfio-pci/zdev: fix possible segmentation fault issue

From: Cornelia Huck
Date: Tue Feb 02 2021 - 03:01:08 EST


On Mon, 1 Feb 2021 13:47:57 -0700
Alex Williamson <alex.williamson@xxxxxxxxxx> wrote:

> On Mon, 1 Feb 2021 12:08:45 -0500
> Matthew Rosato <mjrosato@xxxxxxxxxxxxx> wrote:
>
> > On 2/1/21 11:52 AM, Cornelia Huck wrote:
> > > On Mon, 1 Feb 2021 16:28:25 +0000
> > > Max Gurtovoy <mgurtovoy@xxxxxxxxxx> wrote:
> > >
> > >> In case allocation fails, we must behave correctly and exit with error.
> > >>
> > >> Signed-off-by: Max Gurtovoy <mgurtovoy@xxxxxxxxxx>
> > >
> > > Fixes: e6b817d4b821 ("vfio-pci/zdev: Add zPCI capabilities to VFIO_DEVICE_GET_INFO")
> > >
> > > Reviewed-by: Cornelia Huck <cohuck@xxxxxxxxxx>
> > >
> > > I think this should go in independently of this series. >
> >
> > Agreed, makes sense to me -- thanks for finding.
> >
> > Reviewed-by: Matthew Rosato <mjrosato@xxxxxxxxxxxxx>
>
> I can grab this one, and 5/9. Connie do you want to toss an R-b at
> 5/9? Thanks,
>
> Alex

Yes, makes sense to grab these two. R-b added.