RE: [PATCH] iser-target: Fix possible use-after-free in connection establishment error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> On 11/26/2017 03:31 PM, Sagi Grimberg wrote:
> > In case we fail to establish the connection we must drain our pre-posted
> > login recieve work request before continuing safely with connection
> > teardown.
> >
> > Reported-by: Amrani, Ram <Ram.Amrani@xxxxxxxxxx>
> > Signed-off-by: Sagi Grimberg <sagi@xxxxxxxxxxx>
> > ---
> >   drivers/infiniband/ulp/isert/ib_isert.c | 1 +
> >   1 file changed, 1 insertion(+)
> >
> > diff --git a/drivers/infiniband/ulp/isert/ib_isert.c b/drivers/infiniband/ulp/isert/ib_isert.c
> > index ceabdb85df8b..9d4785ba24cb 100644
> > --- a/drivers/infiniband/ulp/isert/ib_isert.c
> > +++ b/drivers/infiniband/ulp/isert/ib_isert.c
> > @@ -741,6 +741,7 @@ isert_connect_error(struct rdma_cm_id *cma_id)
> >   {
> >   	struct isert_conn *isert_conn = cma_id->qp->qp_context;
> >
> > +	ib_drain_qp(isert_conn->qp);
> >   	list_del_init(&isert_conn->node);
> >   	isert_conn->cm_id = NULL;
> >   	isert_put_conn(isert_conn);

With this patch our test behaves as expected.

Thanks,
Ram

��.n��������+%������w��{.n�����{���fk��ܨ}���Ơz�j:+v�����w����ޙ��&�)ߡ�a����z�ޗ���ݢj��w�f




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux