Message ID | 20170110190822.16953-13-bart.vanassche@sandisk.com (mailing list archive) |
---|---|
State | Superseded |
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 8363D6075C for <patchwork-linux-rdma@patchwork.kernel.org>; Tue, 10 Jan 2017 19:12:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7772428553 for <patchwork-linux-rdma@patchwork.kernel.org>; Tue, 10 Jan 2017 19:12:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 63B832859E; Tue, 10 Jan 2017 19:12:32 +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 E58BA28553 for <patchwork-linux-rdma@patchwork.kernel.org>; Tue, 10 Jan 2017 19:12:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756613AbdAJTKV (ORCPT <rfc822;patchwork-linux-rdma@patchwork.kernel.org>); Tue, 10 Jan 2017 14:10:21 -0500 Received: from mail-co1nam03on0058.outbound.protection.outlook.com ([104.47.40.58]:52219 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932784AbdAJTIe (ORCPT <rfc822;linux-rdma@vger.kernel.org>); Tue, 10 Jan 2017 14:08:34 -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=mmaUIay8oWldUn+zPHgc5WTVlp/BvU593CqxAmcFyGNyIEFLjnYYAwtAPSvsYmCAqjql2xv//4n/j7jaNWQ482G0lyZ4mU9yNAEfzGIu1AHAza/8spxr3R8yFAniMEqENbB5QvkC1lhjfvXFGbTxdmbNzl0cd5cwM8WNFufHttc= Received: from BN6PR02CA0056.namprd02.prod.outlook.com (10.175.94.146) by BN1PR02MB038.namprd02.prod.outlook.com (10.242.210.152) 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:08:31 +0000 Received: from BN1BFFO11FD004.protection.gbl (2a01:111:f400:7c10::1:155) by BN6PR02CA0056.outlook.office365.com (2603:10b6:404:f9::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.829.7 via Frontend Transport; Tue, 10 Jan 2017 19:08:31 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) 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.21 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.21; helo=milsmgep15.sandisk.com; Received: from milsmgep15.sandisk.com (63.163.107.21) by BN1BFFO11FD004.mail.protection.outlook.com (10.58.144.67) 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:08:30 +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 E7.A9.65426.98E25785; Tue, 10 Jan 2017 10:57:13 -0800 (PST) Received: from milsmgip11.sandisk.com (10.177.9.6) by MILHUBIP03.sdcorp.global.sandisk.com (10.177.9.96) with Microsoft SMTP Server id 14.3.319.2; Tue, 10 Jan 2017 11:08:24 -0800 X-AuditID: 0ac94369-b62949800001ff92-cb-58752e893098 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id E9.38.16817.82135785; Tue, 10 Jan 2017 11:08:24 -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:08:19 -0800 Message-ID: <20170110190822.16953-13-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170110190822.16953-12-bart.vanassche@sandisk.com> References: <20170110190822.16953-1-bart.vanassche@sandisk.com> <20170110190822.16953-2-bart.vanassche@sandisk.com> <20170110190822.16953-3-bart.vanassche@sandisk.com> <20170110190822.16953-4-bart.vanassche@sandisk.com> <20170110190822.16953-5-bart.vanassche@sandisk.com> <20170110190822.16953-6-bart.vanassche@sandisk.com> <20170110190822.16953-7-bart.vanassche@sandisk.com> <20170110190822.16953-8-bart.vanassche@sandisk.com> <20170110190822.16953-9-bart.vanassche@sandisk.com> <20170110190822.16953-10-bart.vanassche@sandisk.com> <20170110190822.16953-11-bart.vanassche@sandisk.com> <20170110190822.16953-12-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrDLMWRmVeSWpSXmKPExsXCddJ5kW6nXmmEwcbX8hYvz39gtXh2qJfF YsP7NewOzB7Pph9m8ni/7yqbx+dNcgHMUVw2Kak5mWWpRfp2CVwZ957dYinYJVDx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lCwCitQ4qg9xf9uzvp72xd472ZSuL095s/zlwwPAvaJ1hyc56PksSjk +5qPc2J3hppy8u21Wqa1lvmpp6v7CpMi5YcfptYIlCuxFGckGmoxFxUnAgCUzb5howEAAA== 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.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(39850400002)(39860400002)(39840400002)(39410400002)(39450400003)(2980300002)(438002)(189002)(199003)(106466001)(5003940100001)(8676002)(305945005)(81156014)(50986999)(38730400001)(626004)(76176999)(47776003)(81166006)(189998001)(69596002)(2270400002)(36756003)(92566002)(8936002)(97736004)(50226002)(68736007)(2906002)(4326007)(48376002)(50466002)(1076002)(33646002)(356003)(93886004)(77096006)(86362001)(6666003)(2950100002)(6916009)(110136003)(5660300001)(54906002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1PR02MB038; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD004; 1:btX25A2sR1QzelmRVaFOK6fKkYjQJA5EvIBH/cJhGWyt6e2+DvfL+CkebvVLm6qD5lYMVhnm1TGnZChonS1bBMtaIlEBym7ZXxBBp+EjrUlLHs32sazaNW/YMx0Krv5DAJ8wKq2lFmgyssxqFmrD3asXIwqIP58hwzMcFDyU8ClhOY+2j8s4WYSe3rr8ija7t6dJYtdlly5Iq1I55bMjBTCo+HqU2iQ+/kLHGKnvf4WYzhbXchmWNf5MkCYVKXRsjRwXo1+ln6HADqynydf35nAoluoFThzr56XhCT7F1WxNcrwh7fHhQWB3GPVsRA06ItkLcUPzD60tVGqT4CuVzEBKvAO3huEsttUbXkbdcgNv6XNx0cmEjT+HyRKuyItNaPmx09hxmdjmJozkS5AEqjwrHjeslLnt4KugQprk0nisaloQY83xcfmSCAJAHGicucQ07sJkZ2ER4CA8wbPAgUrQRSdto6renu3Y+ZyC16w= X-MS-Office365-Filtering-Correlation-Id: 51f40b82-5690-4c99-f795-08d4398c1137 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:BN1PR02MB038; X-Microsoft-Exchange-Diagnostics: 1; BN1PR02MB038; 3:AfangscddfHEwsq7srw7gWMrLFKtZjK9vSHabdc1QRGDVUgK1b4+trzDXlVA3vulplRkVsRLSOIwJKOXt+4rmZMi3lSN+1U57pKGrlI2od5GpfP5TwTUYIC6uXCINzlKlb2tTUulU09VdjaPl9mEt0ADeWN5Cmjtr1uOJrJ43i/9n1jZGeVJEIWQ1M1gE47mm0Q+PNno6bvns+SkzKw6ODeUPKa/YKiyCr8rv7zmPvBg4JBLfCde8bbk/HIayA3Lt6hEBHKhlYCxpdzSkhNP99xI9ZBgN2vyJJw4s38eYdIA+f8d4BQIHvA5K5HoOYrr16d9PDgLJWh1K+rJPdxQ5ArSEhqXH5j7yF5ejEIwuyd7+HeHnf9lxXlZ0kb/l4uQ1CqJHKniLuiaqPYkMIlotQ==; 25:0Nu4jUtHbBe00/XuMFM+uN7+8sQiVC5q4zBLBWqHlJrUl2bLvq8v6t2APx8m/dmSOvO7+q3WnUy8DA4MfpuPYEeWXlalUAEwe+/J2Q9MZTGSyhEh97kwsMjbWAJ6J8W47+CDr4/ykZp04uwYLOinrCnxb91nPu5HiIRsvHrET8yDwTzbOLXjCqG6Gu+P9fbqDSN5N6u0geRANcezwLCKZweMMApQ32oqSY2xc/uyFSuufhAb9tof2Sw1rIUjGwafSYowCmILYkXQjIi1d1CWCgTtMSGNqlh3dL4j0hiv0vMEIZocrxwboYyEPpW0nnM00qxbzbpxZ3ONlSDV/Dq08OgSczw9JisyJZnP4hINaDc8cY78QDcUZnVzw4dnjpSvp/GZt0H9FyY9x7hldk9l6nzUOZDqXQf8ORcjMnt0hUVsPhQZ0ropv6m+u8JaRbMYN6AS3J05koze3IRz7DbwSw== X-Microsoft-Exchange-Diagnostics: 1; BN1PR02MB038; 31:95uQRwAoe9rcPweTcK0Irsc9BCtnwAW7tVwsI0jTAt3R8sXxpvPKGtslNMAONOCH5K83fJi+FCNV7fEY2Nh4ywfzeAYuqZDih5s9ft/2+dhuhBFMd56FYEhYKnwNSoCPE224L3LtI8ZoOP+WsD5qe51dulBCokCBPtz1h5Np7iIAXWKfAVmQphgEsRq/vrQKo1dJ8CrsyCE5upZLIXg4QhAl9/iPeH/Nkbqc0GLPnOr30HYQ3l0DyL7/Dota41piN/1LyHmSscmJfQPZWyJaJUTj7bE1OAj/ATzhFbrNDBg=; 20:AmoGry9rAstJY7hqET5cvwqU0Q4LcAEPEI4j39N5Nfrps9VR/sABTxiFGgww34un5UTjXls+5wAXKInPvF2Ck0bznuLywf3WjciLrAEyRf/d6nSWhcMrx2Am+H6u6wwWDruNkJ7AnXdMx6iU2lBA9dJnzAUO9snraCa7sCs7+pBw9Mbc4BOFFkQdgFcAIoI2UzGASFgTVBRoYKW0a77t18Z4uUMkoqI24bFNmmwNW4+7Iui68ITPb7orHtcGl1ob8XHIU4+HvmB45d1m1Uy6NQF8Y15NXPmVw1uk7QpqTN2PQ2vjAfLeS+U1wuSWI9axtW+9V3tBygjijmxyCtltAS4+M5KUSTeSA0W3WFnLPFvU8rH1BBVXXl+PBCli8wtlFQDZFJpERQNlBKd3URNMkBkwD2rBnid7QBac4rAyqYs7qI3bMwP9Xdx1/OZvJOhOxfbO9Vvtfa6XbEYYRolNK4o09xNvkQv4SYSai6pvYWCi/ejEI3cgoENzPtVMcA9o X-Microsoft-Antispam-PRVS: <BN1PR02MB038588175AA00D26DE55C2181670@BN1PR02MB038.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:BN1PR02MB038; BCL:0; PCL:0; RULEID:; SRVR:BN1PR02MB038; X-Microsoft-Exchange-Diagnostics: 1; BN1PR02MB038; 4:KhfAzrQR7l4+8UXzi6neIO8BJoC/Eu7dgCTZS3NTVZBpgVSY9gevAGSCOOIrCfgjzKXNheILHUQRq672Eqcjz8HAt9psao/yByMhSiZygVv5+xu2YxFhAU2onpfiEw3/vudG8fwWN4fBfQWMECnWTAmO15Ao1PYIVvDVgF4NJ3J2CSNRU3WveYb7gASQpPnUqX6L0uF01u9kYG2448+T1LQRNks1ek2HITQXJt9wb+Pi6hrNuT+4WhyGpHTAjw4pT4WfOwqDMRkx41oW52i3qGO5qD6HrkpAkUkzP8odIXrajJB/giOQxrdckniCZeWZSyvRBBj5PBLupK0Uq+sLfa/PYjx6Wy7LHovlXWCQUoRzehzMkTjKtHaIfsszIX6Vszc4M6XC7zoCRLsHYSAm62VjI+ntcbi6We6aZuG9fW26OAQ3YE3tYqxFX+OD+qmwYF8pprKS7nprFBB8oKkQ7xzri1PsRk2bNE6KXMAarvQR5F0Mw1/uHIrfFoDBhZp1x0uSWvkPiOXZgod4EFUYJOBGb2a/UQMjXBPwRYZ4IhA7JQdEBQCft+24Ug0/4bPTmv0I7KwK5wPX5jPJxqmvTco4jWJ89cH/14jzJx1JtjlPuUGyiIi2afz/mKnkVlW9jCrQEKRUW+r/SwRq/QGbInHC2KeYNNSV0jdAv/R75F8jlABRQCHxQLp6+Ig/1K8TcfqdAZgEwea5M6hvA8Wsmw== X-Forefront-PRVS: 01834E39B7 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1PR02MB038; 23:+3jVJtaVsnKE+7d1uSbnlWhWFh5aWdZZjLV9wgr4J6?= =?us-ascii?Q?Kc38pFL4KHtDdOrFb6IxkaRsYGkmscu1k5MnfChaPreiF0igiAmMf8wcioB5?= =?us-ascii?Q?k9yMob6Y7EOdXM/kmcLPZMBcw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bnD3?= =?us-ascii?Q?kdlws/Tdz2isuG04zPtT2XrAd22J9HdHKWxVl17EQ/9o6CrucdfTpOYlKBZx?= =?us-ascii?Q?/Nivler5IqCSl1VYbAwoJ9a2KQFqTiRVj49+dGNcm3arvf05lrYHXhXMjWbu?= =?us-ascii?Q?i5BWihv+IJAuTGkRBCHGHCdsPKMl5t2FRSPBPyZJjDtc4Up4J97A=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN1PR02MB038; 6:7h/SxX/kDnYzSZtrSZuFm4uVaoTZasJQSxL1Q+TuIufF4L+4Uo36BAtDiwXRemhSkjdbZgUhusxt2SkC4EDFqeEmXP0pZWYW+/yc6bcBapczYf1pYRqhCZ3TLOgbCvU1GuLyNinJMGZRc7mK5IJVWQjCx0kN9rF2BRSzPZtt4NBJ3e7NT6l278wdz3VtKMWDjEaeRzq4Ea+L9yB2C95PC34SFyBbrGCuCC3Egx6+cUod14aSpkCEKqAp1wMqe+hKrULTVHUusLLb8CDo4sQZnyL7HoabangZnmK265ZGZn3JLbFp1U/pf6fh//ix111KLupdvRtlSY4LE13QHI+lDWhDTX3z7elVUoDqHx4yK8b24TmUoHOfdQ52Q0ad3jBZAXGirxz7GAYyWEED+5n4ndiNOuGmfRoYr+r0raTKGOb0AmkgW1H4qvtxLsmp+tSlprFtnGnwt/F8nRejv0bsZw==; 5:DdqL8CUhe0xUyY5BliV9hq8omZwMeaIoj7TVNfhV62ok7M7gWWR44VKPZ32iGCLMwbSm6MvNbnOhom3HemkGsttExl25+C70REQQDaCHE6wuKbpoI0ooSYgIKZIm8UmdRyiD66ZptpOFzBn+78v/BvBXhIF9e47mAx1pucqX+ac=; 24:6Z5nVvGJs6dKi3AxVGreK3WoHBmHPcXNjHHjV7CWDvdWn+87amAX9iZ28/1qcsUW6JQiR7qo+HK7l0v/qn5D4jpMpVdK6UZ4vfWKzOPiNOg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN1PR02MB038; 7:syLeDJhL/jw7pw/7R82WgF2RUb6K4DZKKJDNN2z9NM4BG9PGfsJs+aNzzC6UTmIOkYs6vBisFQyV26CyEm5MSBzVl85f/lMRFulbd70g98vWtdUgaK4k89qK7nMlHFmerEmHXMYW+q8zWap0tdukLWnW6Lh08KyPgghoV8uAbYYMRm5unZikBfvZrImdOZv8M0E03efm2rgjyUhQn1Ag4ixp5rxnrSwZweqKVtqgO7GB9Hwi3oNQVefy1b4aMoptP7f+ajgeNSTSs71aZJxhtxfSIaM3WeSsSoNrgv4wQeWJ1Ib9hOUy+K2x8vEbrvRgFTkdCkZXjeS8hWlAWwIIGbNJWwIAdzz3w6v836VuRvOVqIXN68qXcXGstWRgbUhd13rXkM7FCF42UR0OsUwGGNayoSK8Ms5Dg6dhq5nSA5rLqL+RZXEQHIZlmrlPN1WjqGNgfI3Q6jz2jsfTJX4HcQ== X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jan 2017 19:08:30.9267 (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.21]; Helo=[milsmgep15.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR02MB038 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; }