Message ID | 20170110191554.17359-13-bart.vanassche@sandisk.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show
Return-Path: <linux-rdma-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E9F4360231 for <patchwork-linux-rdma@patchwork.kernel.org>; Tue, 10 Jan 2017 19:16:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DD57D27F89 for <patchwork-linux-rdma@patchwork.kernel.org>; Tue, 10 Jan 2017 19:16:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CC3A7284EA; Tue, 10 Jan 2017 19:16:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 18F3128595 for <patchwork-linux-rdma@patchwork.kernel.org>; Tue, 10 Jan 2017 19:16:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S941887AbdAJTQQ (ORCPT <rfc822;patchwork-linux-rdma@patchwork.kernel.org>); Tue, 10 Jan 2017 14:16:16 -0500 Received: from mail-bl2nam02on0056.outbound.protection.outlook.com ([104.47.38.56]:36401 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S940379AbdAJTQA (ORCPT <rfc822;linux-rdma@vger.kernel.org>); Tue, 10 Jan 2017 14:16:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sandiskcorp.onmicrosoft.com; s=selector1-sandisk-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=agSEDdYNRs+BXX5Br6rtVxYpPLkhvEAaj6Lk1BeQlkI=; b=dKS0KqdWHM4HXITZtRBx9b4eFwwbZ7OWhnPP6tQSlws7s+fObpbbY0qcSbdzAcJ9zcGfeoRNtEZ8TAOyqAcGNQB3I1XxWsLaShw3IWAdvsGj39wFHpyezEv0YD7hOAnaYnFDH7US9A0kU68HMLrolbRZUYavSkMBOvHxSXPbhyI= Received: from BLUPR02CA060.namprd02.prod.outlook.com (10.160.23.178) by SN1PR02MB1421.namprd02.prod.outlook.com (10.162.0.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.829.7; Tue, 10 Jan 2017 19:15:59 +0000 Received: from BN1AFFO11FD011.protection.gbl (2a01:111:f400:7c10::194) by BLUPR02CA060.outlook.office365.com (2a01:111:e400:8ad::50) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.817.10 via Frontend Transport; Tue, 10 Jan 2017 19:15:57 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.225) smtp.mailfrom=sandisk.com; redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.225 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.225; helo=milsmgep14.sandisk.com; Received: from milsmgep14.sandisk.com (63.163.107.225) by BN1AFFO11FD011.mail.protection.outlook.com (10.58.52.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.803.8 via Frontend Transport; Tue, 10 Jan 2017 19:15:57 +0000 Received: from MILHUBIP03.sdcorp.global.sandisk.com (Unknown_Domain [10.201.67.162]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by (Symantec Messaging Gateway) with SMTP id 68.87.01420.2D035785; Tue, 10 Jan 2017 11:06:58 -0800 (PST) Received: from milsmgip11.sandisk.com (10.177.8.100) by MILHUBIP03.sdcorp.global.sandisk.com (10.177.9.96) with Microsoft SMTP Server id 14.3.319.2; Tue, 10 Jan 2017 11:15:54 -0800 X-AuditID: 0ac94371-47fff7000001058c-59-587530d29584 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 9E.48.16817.AE235785; Tue, 10 Jan 2017 11:15:54 -0800 (PST) From: Bart Van Assche <bart.vanassche@sandisk.com> To: Doug Ledford <dledford@redhat.com> CC: <linux-rdma@vger.kernel.org>, Moni Shoua <monis@mellanox.com> Subject: [PATCH v2 12/15] IB/rxe: Fix a MR reference leak in check_rkey() Date: Tue, 10 Jan 2017 11:15:51 -0800 Message-ID: <20170110191554.17359-13-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170110191554.17359-1-bart.vanassche@sandisk.com> References: <20170110191554.17359-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrNLMWRmVeSWpSXmKPExsXCddJ5ke4lg9IIgyO7+Sxenv/AavHsUC+L xYb3a9gdmD2eTT/M5PF+31U2j8+b5AKYo7hsUlJzMstSi/TtErgy7j27xVKwS6Di86dd7A2M R3i6GDk5JARMJB5POsHcxcjFISSwlEmic+8yRghnB6PEk4Pv2GGqpj76wg6R2Mgo8XLNHrAE m4CRxLf3M1lAbBEBNYlNrxaBxZkFHCUuTfvEBGILC3hKnJ58k62LkYODRUBV4mM3H0iYV8BB Yv+TaawQ8+UldrVdBLM5geIfFtxnAikXErCXmLLKGGSthMBzFolDPe+YIHoFJU7OfMICsUpC 4uCLF8wgtpCAusTJJfOZJjAKzUJSNgtJ2QJGplWMYrmZOcW56akFhiZ6xYl5KZnF2XrJ+bmb GCFBXLiD8fVt70OMAhyMSjy8Hc9KIoRYE8uKK3MPMUpwMCuJ8KbqlUYI8aYkVlalFuXHF5Xm pBYfYpTmYFES570Y/TFMSCA9sSQ1OzW1ILUIJsvEwSnVwLhe+snBeVkx34wDC3/tcXzIUKe1 /IbY16m38u43t0z26XG85i2Q3qJwvONspuUzE9WjXmfOHLj/+mLwqpB/c2OuLp3+NfxTVeKn mne2f906p2+965eT0CvIKymyqGZTVHnyXc8dRc8PnDSaaFSvn/a0zOCpyV9t95kzL54MP2f8 SvZts/6qHdpKLMUZiYZazEXFiQBDAbw6XgIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupnkuLIzCtJLcpLzFFi42Lh2sjJpvvKqDTCYOtvDYuX5z+wWjw71Mti seH9GnYHZo9n0w8zebzfd5XN4/MmuQDmKC6blNSczLLUIn27BK6Me89usRTsEqj4/GkXewPj EZ4uRk4OCQETiamPvrB3MXJxCAmsZ5SY9fUbE0iCTcBI4tv7mSwgtoiAmsSmV4uAijg4mAUc JW6fDwEJCwt4SpyefJMNJMwioCrxsZsPJMwr4CBx/lYPO8R4eYldbRdZQWxOoPiHBfeZQMqF BOwlpqwynsDIvYCRYRWjWG5mTnFuemaBoaFecWJeSmZxtl5yfu4mRoiXI3cwPp1ofoiRiYNT qoGRVW6L2+OWHN/KZtH9dz0+F2xWDv/9f0Vb6sufjquDoiZNLD3u81TnKo/Ly1Pas3k4Frxu UGBt7NMJXmIdfX/aSlkrbrcbekYp/v0cib3x/wuurGVMa/ypJizp4Nw4617DJDmLF0Xs9xvM K78Fr9j7fu6eO2wLzv6ffdF4QqabzpH+OZ1863KUWIozEg21mIuKEwGpVSvYogEAAA== MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.225; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(39860400002)(39840400002)(39850400002)(39450400003)(39410400002)(2980300002)(438002)(199003)(189002)(36756003)(6916009)(50226002)(8936002)(2950100002)(81166006)(81156014)(5660300001)(8676002)(6666003)(33646002)(69596002)(626004)(68736007)(77096006)(356003)(86362001)(189998001)(5003940100001)(97736004)(54906002)(38730400001)(76176999)(50466002)(50986999)(305945005)(48376002)(110136003)(92566002)(2906002)(106466001)(4326007)(2270400002)(47776003)(1076002); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR02MB1421; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD011; 1:LjA2JF0JCWV0krK6VYV59OzVyaTBkZZ6dLI3lDe72WJIlF59HHexMJqk5SV3tvm5wV7ANimNtEA2/KuOaxgAPb3AGYqH7nQVXtHg4WJqkTiwmZJQcdFm95grS/qOIIiqTtg48f+lNvw5FQ9wgLNmOuoK3QfSUwZfAvX/DvgwCDBzAf28MkBQUg3GbiZ2w86+0Tk9GRGFefxx8m9VYlToA3Ns6H/O+GBFO5XcN+E7x2oiaVErr28Q2+/eQtcsqC30Y2YYVp9jU3Fz6Kb1v4z+l0BnhNLvlarZjOggoNJmyyYKPH69buTiv2S4vBjOJoZKPJvMeFK6CfZkEqg0YWGf9tX2lPQNKxjY95Iv1XQ1dVa8eL6o9Fme/XkArM71CZWq7CCptFVuS2XXqh/AvAWqJY4+TR5Hb/vNojpBIV60QBUPriYdGiCCLQBkTEy9zimTP5nS8CE0qIhrBj9NyRP3qJ3SFfflW/qn5oZlDAOAr4M= X-MS-Office365-Filtering-Correlation-Id: 2ee49c7a-4518-4839-4831-08d4398d1ba2 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:SN1PR02MB1421; X-Microsoft-Exchange-Diagnostics: 1; SN1PR02MB1421; 3:lLI5qMeov65oNowC2pAJl6oSGlKrfyffplthH9qrGq8GW6LZAhI/9HOl6Xce0uD3yeJX7l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yancfoOH0cywR0jRIBP88pCxJKSsTYp7ziB97i6l7CuugZPsZoqaWxDUnTVX4+IGbTEt1fEUs06VJA52/36V5iPoKPfi6SMZ1DCTE7mT4JjS9kRtwo9H0od1L9WjhwYMl9 X-Microsoft-Exchange-Diagnostics: 1; SN1PR02MB1421; 31:yGxZ2AasSDN7OByrFzE+JGlGddcmjNuIRF2nu0Dfg6GUn7oBP5K8oujKT5CtvMnncqkl3JqDAkBxoW3/+kqNKjH4/tlJodf7ZxftaUUPhx34GJaubtgKuNKe5N05v68v6T0UvjV/ZRsy/yWtU2LbsMLM0ZMVK5ek08ingoLRO3VR6b77MHtDGwMBChiamxirDyczz6kT4hdLyFHt4Vmvbh7wn8+JUeQ/5VU4AKgv2FmmIjOpzoKad2zLeuHdZO1k2VImtUszInbQfO/KNJOlZ9IrnywFeID+a5SX4nzofsk=; 20:MrOMSDpWsIcNoy3yVcMD9CE6fa08qW3ZRqVRlyoO6browvOGaTOvV+GEyAo6VY/kjyp4CQvCwoJOJslFNNBxcPJuw95dw8vJ9AnNOSS/Yy+orUkEMWGnnaPDfUpoesEjnpsBWS6RHX9ZMKalg7+lu1l5/JMLftjqHJFaKfI5orANUMg7G5OYEa6m48a/Wa1bMEr1k42YfrxVWp7blM3RD2XNv76jT7DN2qLLraoIJPIahDjiXnsnpX6sxLF4XNNeTb5vwNPdemuFB95RAAbR1X+GjnhZ+5EKbUH74p4iv06x0d6BSUDeG3w+VvzegdAEcK7GkwfpVThTtS1rCmvVkRU592wbDVENAiecqObZnvlaXGEEWbJB1EMlHSayFTz/59Eva1wKMkiPlFsV301N69t+J5Ak8msY0ihNafvlWTQaQPYEKk6GF96MDhxbF5/T52uwJpexC2Xd5F+eB8i6/N4yreVWWcxng6/Y8o0dX2lXhXUSYe3Eg0hJioiwtbTi X-Microsoft-Antispam-PRVS: <SN1PR02MB14212873F819D08918A20FAE81670@SN1PR02MB1421.namprd02.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(56004941905204)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(13016025)(13018025)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6041248)(20161123562025)(20161123555025)(20161123564025)(20161123560025)(6072148); SRVR:SN1PR02MB1421; BCL:0; PCL:0; RULEID:; SRVR:SN1PR02MB1421; X-Microsoft-Exchange-Diagnostics: 1; SN1PR02MB1421; 4:N3dDoM3VoUn1K4SIpTEZcS4KSHi4ff8gJEjgOeUb8i8Q3tsdjH54h8K0e8kafF/FnxOKW1f9sVyu6vcYkL7lmCcfRLvlQVwcwo0au3awL/0V/wbbYQb/Pno0S08o4M/ewDzHpU5weSQ+5n4DDG51RiEbqrx2niamqOVNixRd5PLrHrzhn9zq3qLMHFmPpeNC9LCrd0SKSpRahTSMzpA331k1LgrdHZdaf1rKHepp3Kd42Y9Os+9v7q41fj2czarrtP8P9oY1V1J5RNjhvjx2skpx+FP9oXaHOVAlvFcu8JJCdQdhnH/5chXn94zslUiYHrn7eEp7Xtzq2jPPl3kfa2mJ0+wIzoGQBGRp6IiLCHlxhDhyMmTfFu0GplkyhpPTBpcrCkvbKdBEjN0TugMzSYz/+xGBU4gGYlz1TtTMxNNrf50zCa67y1Wmy86TE96ZWPEW5g1RVVj9hIRiuLg6teAiL1V3plRi5vOcbXryClnu4KWNB4tkGTTyzpUsiSNgUCg2oEvwg55i+8J8s4y25eYJnPSp3CeAtyGNG2inPusw2dbEA5JeCZbLgvPyXKlIepWHEgpMUZm/p//jFEGGasizP8y+9OjpDpswAskc6Lnm+wT4G8cvdnh9AbOlh5/YntcwMgVj8a9yGAcM9IDm1RBotHYFj2SH9cZLq7Du9in4RAJi5DxyWOgxoIlN8BkF1BZnzE2nq2hbygJVGutx1g== X-Forefront-PRVS: 01834E39B7 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR02MB1421; 23:eXCUrk4eVRZqRgjgKP1bHZmMby6s4zil9hT0YRwtY?= =?us-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DT4paQqC62z73aQLSxnZT10= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN1PR02MB1421; 7:JCuO3EHK62mq7WQ/wQaq/gXUa9nReMOaQt2BCOwSu58V2kPivgp2UGK0/EpynXlrphzOHvyDzBXK5HPFVPOBiiCotnnmeGz8zU4GjODmht2xwNdn2tEQIbRD9sG9jiUCld83eRFKT4eok7Ict4PVJkBXvAk+HnxlgB+vvFPjrb08rXwqQkOVXIH1fL/ZhBJvoeHv+t1Ag11Zj29M4AXStr3b5j93H4FOynk+7w7ccDUb1bZuFAPpK5fyJxYVeSuKVC1q+gGyBgKeX1yAhFgpiyibBA1+s16n/JzOD8yp/sI8sJ7bUlRmdkq3FEP99kHMX+IDIHaj5dsf41CPetf4Oj+SCxo199/vtaYIHn01RFwZ0p97larhpT9hJUlfDona9+CWROBrd6WBnIhXHgTB9cDgXuevTjY2ltlbw8pwajWerTliC5CLDTbBJkCrrEoDyZPMlIoCMB3tapXW6Xh4Mg== X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jan 2017 19:15:57.9130 (UTC) X-MS-Exchange-CrossTenant-Id: fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d; Ip=[63.163.107.225]; Helo=[milsmgep14.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR02MB1421 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: <linux-rdma.vger.kernel.org> X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/infiniband/sw/rxe/rxe_resp.c b/drivers/infiniband/sw/rxe/rxe_resp.c index 33defaddc000..60d78f45aa04 100644 --- a/drivers/infiniband/sw/rxe/rxe_resp.c +++ b/drivers/infiniband/sw/rxe/rxe_resp.c @@ -418,7 +418,7 @@ static enum resp_states check_length(struct rxe_qp *qp, static enum resp_states check_rkey(struct rxe_qp *qp, struct rxe_pkt_info *pkt) { - struct rxe_mem *mem; + struct rxe_mem *mem = NULL; u64 va; u32 rkey; u32 resid; @@ -459,38 +459,38 @@ static enum resp_states check_rkey(struct rxe_qp *qp, mem = lookup_mem(qp->pd, access, rkey, lookup_remote); if (!mem) { state = RESPST_ERR_RKEY_VIOLATION; - goto err1; + goto err; } if (unlikely(mem->state == RXE_MEM_STATE_FREE)) { state = RESPST_ERR_RKEY_VIOLATION; - goto err1; + goto err; } if (mem_check_range(mem, va, resid)) { state = RESPST_ERR_RKEY_VIOLATION; - goto err2; + goto err; } if (pkt->mask & RXE_WRITE_MASK) { if (resid > mtu) { if (pktlen != mtu || bth_pad(pkt)) { state = RESPST_ERR_LENGTH; - goto err2; + goto err; } resid = mtu; } else { if (pktlen != resid) { state = RESPST_ERR_LENGTH; - goto err2; + goto err; } if ((bth_pad(pkt) != (0x3 & (-resid)))) { /* This case may not be exactly that * but nothing else fits. */ state = RESPST_ERR_LENGTH; - goto err2; + goto err; } } } @@ -500,9 +500,9 @@ static enum resp_states check_rkey(struct rxe_qp *qp, qp->resp.mr = mem; return RESPST_EXECUTE; -err2: - rxe_drop_ref(mem); -err1: +err: + if (mem) + rxe_drop_ref(mem); return state; }