[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20211207175056.GA70682@nvidia.com>
Date: Tue, 7 Dec 2021 13:50:56 -0400
From: Jason Gunthorpe <jgg@...dia.com>
To: Shiraz Saleem <shiraz.saleem@...el.com>
Cc: linux-rdma@...r.kernel.org, linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org, dan.carpenter@...cle.com,
christophe.jaillet@...adoo.fr
Subject: Re: [PATCH for-rc] RDMA/irdma: Fix a user-after-free in add_pble_prm
On Tue, Dec 07, 2021 at 09:21:36AM -0600, Shiraz Saleem wrote:
> When irdma_hmc_sd_one fails, 'chunk' is freed while its still on the PBLE
> info list.
>
> Add the chunk entry to the PBLE info list only after successful setting of
> the SD in irdma_hmc_sd_one.
>
> Fixes: e8c4dbc2fcac ("RDMA/irdma: Add PBLE resource manager")
> Reported-by: Dan Carpenter <dan.carpenter@...cle.com>
> Signed-off-by: Shiraz Saleem <shiraz.saleem@...el.com>
> ---
> drivers/infiniband/hw/irdma/pble.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied to for-rc, thanks
Jason
Powered by blists - more mailing lists