Re: [PATCH] RDMA/cache: fix invalid-free of flex-array data_vec in release_gid_table

From: Jason Gunthorpe

Date: Fri Apr 10 2026 - 17:50:15 EST


On Fri, Apr 10, 2026 at 05:22:54PM +0530, Deepanshu Kartikey wrote:
> > diff --git a/drivers/infiniband/core/cache.c b/drivers/infiniband/core/cache.c
> > index 896486fa6185..647a547e2d7f 100644
> > --- a/drivers/infiniband/core/cache.c
> > +++ b/drivers/infiniband/core/cache.c
> > @@ -801,7 +801,6 @@ static void release_gid_table(struct ib_device *device,
> > }
> >
> > mutex_destroy(&table->lock);
> > - kfree(table->data_vec);
> > kfree(table);
> > }
> >
> >
>
> Gentle ping on this patch. Please let me know the status of this patch.

Oh, I think a different version was picked up

Thanks,
Jason