Received: by 10.223.164.202 with SMTP id h10csp213417wrb; Mon, 13 Nov 2017 05:22:53 -0800 (PST) X-Google-Smtp-Source: AGs4zMZEh6jS/VmQe9LxAUeSsgGexMgS9PIpW6ldaB9T1NdMZCPa6uQqZu8ca4/Jn0PmvU1m6JiU X-Received: by 10.84.235.137 with SMTP id p9mr8519181plk.291.1510579373889; Mon, 13 Nov 2017 05:22:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510579373; cv=none; d=google.com; s=arc-20160816; b=ptVOdDxeVjo9cvQePq1AM5368QhMi53xOdOvkNmFaNYaCtVUpOxRrK3hyiokOan+qm Qx+yDpSOzXpHeYjlc1C0Xliz9FCBWeOVYTrb9+ooZVh00qz7UiuEFK8PKuqMac2QfEBo rwMRP49wQMjIenEiKhgOVqxyj+NEz8GE7iNlsEI/iCDXAVlBRQRDWgNSj2NamPqrRYwf Do7r3t8HPPflFDbOMd1xtSb/RGGM2DLE+I8zr5Frpo5/yg7l7Jqt9nxoalXP57kcH/ez aTv36pLvnMg+KG9fRLCHYAGDbfIie5UiiAuUirAIdrKEdbk9N0Zx5/92VpzMFI3MZ+u+ S4Sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=2pz0nyYHL54v7IXU0xMVh7eVldwMaO/gRCNPmpxNDY8=; b=yAiRbweurm437Tp/WJ9WLnJrRfXiJTVafcw3/nbCdvwe8hKAFP9mOpnjMkEEiMQ7uB oFebTPeMxKv1jjKMKna/C2cwR9WdIkrzyLCDdzQFoxZVb2IBrORBOm7IgJI5NiJ1bTJK cEn7/rTP0dGxpnTnGGf7ruJoHdqG6YleeEUHSbOGbabyT6i7SNx0m7bQd2F8zB7Lt0Cu dqfB64d/knLybRP0eLNYJiSeTwOvgAc0WHj5Y9R3FLLvsB0EqjMy33ANwm+3XpGRSRGh zf0saMUqgK2IKbiy0B88E1gno5q3firO0Sb00LRuowEgVWkzqlIRLf7NgEhsyeDFWfKU arSg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w19si15182862pfa.59.2017.11.13.05.22.40; Mon, 13 Nov 2017 05:22:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753680AbdKMNBX (ORCPT + 95 others); Mon, 13 Nov 2017 08:01:23 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:50156 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754598AbdKMNBP (ORCPT ); Mon, 13 Nov 2017 08:01:15 -0500 Received: from localhost (LFbn-1-12253-150.w90-92.abo.wanadoo.fr [90.92.67.150]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id E55FFAA5; Mon, 13 Nov 2017 13:01:14 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bart Van Assche , Leon Romanovsky , Andrew Boyer , Moni Shoua , Doug Ledford , Sasha Levin Subject: [PATCH 4.9 46/87] IB/rxe: Fix reference leaks in memory key invalidation code Date: Mon, 13 Nov 2017 13:56:03 +0100 Message-Id: <20171113125619.603147763@linuxfoundation.org> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20171113125615.304035578@linuxfoundation.org> References: <20171113125615.304035578@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Bart Van Assche [ Upstream commit ab17654476a11a1ed7d89f1104e2acdb7ed1c9ed ] Signed-off-by: Bart Van Assche Reviewed-by: Leon Romanovsky Reviewed-by: Andrew Boyer Cc: Moni Shoua Signed-off-by: Doug Ledford Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/infiniband/sw/rxe/rxe_req.c | 1 + drivers/infiniband/sw/rxe/rxe_resp.c | 1 + 2 files changed, 2 insertions(+) --- a/drivers/infiniband/sw/rxe/rxe_req.c +++ b/drivers/infiniband/sw/rxe/rxe_req.c @@ -633,6 +633,7 @@ next_wqe: goto exit; } rmr->state = RXE_MEM_STATE_FREE; + rxe_drop_ref(rmr); wqe->state = wqe_state_done; wqe->status = IB_WC_SUCCESS; } else if (wqe->wr.opcode == IB_WR_REG_MR) { --- a/drivers/infiniband/sw/rxe/rxe_resp.c +++ b/drivers/infiniband/sw/rxe/rxe_resp.c @@ -893,6 +893,7 @@ static enum resp_states do_complete(stru return RESPST_ERROR; } rmr->state = RXE_MEM_STATE_FREE; + rxe_drop_ref(rmr); } wc->qp = &qp->ibqp; From 1583951717915792761@xxx Mon Nov 13 11:54:31 +0000 2017 X-GM-THRID: 1583574498172796721 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread