Re: [PATCH] RDMA/erdma: Prevent use-after-free in erdma_accept_newconn()
From: Leon Romanovsky
Date: Thu Mar 06 2025 - 03:48:20 EST
On Wed, Mar 05, 2025 at 03:20:41PM +0100, Markus Elfring wrote:
> From: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
> Date: Wed, 5 Mar 2025 15:07:51 +0100
>
> The implementation of the function “erdma_accept_newconn” contained
> still the statement “new_cep->sock = NULL” after
> the function call “erdma_cep_put(new_cep)”.
> Thus delete an inappropriate reset action.
>
> Reported-by: Cheng Xu <chengyou@xxxxxxxxxxxxxxxxx>
Cheng, please resubmit this patch, I'm experiencing the same issues as
Christophe has here https://lore.kernel.org/all/20a1a47c-8906-44e8-92e6-9b3e698b1491@xxxxxx
and it looks like Markus continues do not listen to the feedback.
Thanks