Message ID | 20a1a47c-8906-44e8-92e6-9b3e698b1491@web.de (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | RDMA/erdma: Prevent use-after-free in erdma_accept_newconn() | expand |
On Wed, Mar 05, 2025 at 03:20:41PM +0100, Markus Elfring wrote: > From: Markus Elfring <elfring@users.sourceforge.net> > 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@linux.alibaba.com> 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@web.de and it looks like Markus continues do not listen to the feedback. Thanks
On 3/6/25 4:47 PM, Leon Romanovsky wrote: > On Wed, Mar 05, 2025 at 03:20:41PM +0100, Markus Elfring wrote: >> From: Markus Elfring <elfring@users.sourceforge.net> >> 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@linux.alibaba.com> > > 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@web.de > and it looks like Markus continues do not listen to the feedback. > Hi Leon, Sure, I just resubmitted the patch, please review and apply. Thanks, Cheng Xu > Thanks
diff --git a/drivers/infiniband/hw/erdma/erdma_cm.c b/drivers/infiniband/hw/erdma/erdma_cm.c index 1b23c698ec25..e0acc185e719 100644 --- a/drivers/infiniband/hw/erdma/erdma_cm.c +++ b/drivers/infiniband/hw/erdma/erdma_cm.c @@ -709,7 +709,6 @@ static void erdma_accept_newconn(struct erdma_cep *cep) erdma_cancel_mpatimer(new_cep); erdma_cep_put(new_cep); - new_cep->sock = NULL; } if (new_s) {