Message ID | 20170110191554.17359-10-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 BCB3A6075F for <patchwork-linux-rdma@patchwork.kernel.org>; Tue, 10 Jan 2017 19:16:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B0D1628599 for <patchwork-linux-rdma@patchwork.kernel.org>; Tue, 10 Jan 2017 19:16:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A5BE128596; Tue, 10 Jan 2017 19:16:21 +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 3A73B28599 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 S941935AbdAJTQR (ORCPT <rfc822;patchwork-linux-rdma@patchwork.kernel.org>); Tue, 10 Jan 2017 14:16:17 -0500 Received: from mail-sn1nam02on0041.outbound.protection.outlook.com ([104.47.36.41]:40435 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S940362AbdAJTQA (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=VK8Zp4GV5f5JvmI4o6DNLwWcU1zjqx1mX07K4I46hoQ=; b=iiqZYFTfmgLedquKkrg4ZWmTAr6eMGzFGk+sBgAq+keoknfcFU94JtqlhLL4pJmRxGS6iu0LZAh885WQ5/J0/hWq4IrDo6aYEmFM/PkDLhLCLxEBP8FB3eWrpkD0UzJNyN/a1Oe1DZ8SBIs+cJ81tN27HGKC5pLOy6gXIBOwyC0= Received: from BLUPR02CA039.namprd02.prod.outlook.com (10.160.23.157) by BLUPR02MB036.namprd02.prod.outlook.com (10.242.191.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.817.10; Tue, 10 Jan 2017 19:15:59 +0000 Received: from BN1AFFO11FD047.protection.gbl (2a01:111:f400:7c10::145) by BLUPR02CA039.outlook.office365.com (2a01:111:e400:8ad::29) 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; mellanox.com; dkim=none (message not signed) header.d=none;mellanox.com; dmarc=bestguesspass action=none header.from=sandisk.com; mellanox.com; dkim=none (message not signed) header.d=none; 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 BN1AFFO11FD047.mail.protection.outlook.com (10.58.53.62) 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 28.87.01420.1D035785; 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-58-587530d1888a Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id DD.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 09/15] IB/rxe: Add a runtime check in alloc_index() Date: Tue, 10 Jan 2017 11:15:48 -0800 Message-ID: <20170110191554.17359-10-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+NgFjrDLMWRmVeSWpSXmKPExsXCddJ5ke4lg9IIg539jBYvz39gtXh2qJfF YsP7NewOzB7Pph9m8ni/7yqbx+dNcgHMUVw2Kak5mWWpRfp2CVwZp7YtZi04y1Zx8OBP9gbG c6xdjJwcEgImEqv//mfrYuTiEBJYyiTx5cZyRghnB6PEk4Pv2GGq9l7fxwqR2MgoMeXFCmaQ BJuAkcS39zNZQGwRATWJTa8WgTUwCzhKXJr2iQnEFhZwk3i27wlYnEVAVeLy5Ilgq3kFHCSu bz/JBrFAXmJX20WwOCdQ/MOC+0C9HEDL7CWmrDIG2Ssh8JxF4svu31C9ghInZz5hgdglIXHw xQuwe4QE1CVOLpnPNIFRaBaSsllIyhYwMq1iFMvNzCnOTU8tMDTRK07MS8ksztZLzs/dxAgJ 48IdjK9vex9iFOBgVOLh7XhWEiHEmlhWXJl7iFGCg1lJhDdVrzRCiDclsbIqtSg/vqg0J7X4 EKM0B4uSOO/F6I9hQgLpiSWp2ampBalFMFkmDk6pBsaEH8z2HGcCFfpCg1TEn7pPUn/do+2p vGhO3y6jWCGNuReWlTZsKP8vviyvRGzVbFmVtWf2PrJebCQ3dYbGLvtfu/RkHTf4tB4R7J3E srxDaPqb53Imb6VS3q3hz/U5sGlGx7wijbW+DRvbF92+/CwnO9DL9+mEkoTSDRvNBZc8aZlp pKV7hEOJpTgj0VCLuag4EQCuHVa1XwIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAJMWRmVeSWpSXmKPExsXCtZGTTfeVUWmEwfoONYuX5z+wWjw71Mti seH9GnYHZo9n0w8zebzfd5XN4/MmuQDmKC6blNSczLLUIn27BK6MU9sWsxacZas4ePAnewPj OdYuRk4OCQETib3X9wHZXBxCAusZJXo2z2IESbAJGEl8ez+TBcQWEVCT2PRqEXsXIwcHs4Cj xO3zISBhYQE3iWf7nrCD2CwCqhKXJ08Em8kr4CDxY3YHI8R8eYldbRfB4pxA8Q8L7jOBjBES sJeYssp4AiP3AkaGVYxiuZk5xbnpmQWGhnrFiXkpmcXZesn5uZsYIX6O3MH4dKL5IUYmDk6p BsZ5AU/3/J5hsaTzzP6g/qN2gYdmW95eOfV168UMjZwKtbu1TDYvmdZqacReTjrWb71gnmUP M4udwfob0y68UP1+vmDa9ZNH7nUvNbnfeXq73AshWZVvbN9bnN7W7X3rLTCL7cZ3yVRmLZ7p HyaLlvHOY09SKWd/lME0/cD385LKWxoTnxWc5TijxFKckWioxVxUnAgAvWe2+aMBAAA= 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)(39450400003)(39840400002)(39860400002)(39850400002)(39410400002)(2980300002)(438002)(189002)(199003)(106466001)(2950100002)(6916009)(305945005)(92566002)(6666003)(77096006)(54906002)(68736007)(5660300001)(356003)(110136003)(2270400002)(69596002)(38730400001)(626004)(86362001)(48376002)(4326007)(8676002)(81166006)(97736004)(81156014)(50466002)(5003940100001)(8936002)(36756003)(76176999)(33646002)(2906002)(189998001)(1076002)(50226002)(50986999)(47776003); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR02MB036; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD047; 1:bZYFpQlBp2gQ9UeTi8eOBJNyPu9pDOffkqMN+6+3uNCjzHB0SoS+SQ32E0M1QVYBNO58cf4Pl0X2afx8DNws4VLteMcjEoZMShg5gbVOlyYnmhVYI4DSEuhE6vA+7IUpLdaTmeCFV49CC2IAs5vzvMmOTREqgqADomnCFjVpaLUZZ6Ie6CYai/FrfudYe4T304g0NSnevZJAjiNxxZtJZcEMk59HtzEkwiveL5h11//siuJZl0lthH0Pr07QFXAGYeL1UHpCQ1r+qkI2I9XfOo3oRri6hsF8F0N/COVjwxZC85ojDxvYYrsKWipOpxRJ70jG88Y2mWJPn9GByPGtfloch/MY1XSXiqV93TODSVitgxEsvitDawEeIBNNWziBKMLjkIp05JSh4y1FBhYALaWpBkgrrum1elYuR8cAbXmONsDb61IsHSNMa/jmMe1VJOJ7mu6pv7ZVEushDeLs40SI9PHvPR6mIzizHkZnpks0oeo1d7P6tmSwoy1dK50FN4S6W1ZCKCEcZ7XWsP6owA== X-MS-Office365-Filtering-Correlation-Id: 62d93a3c-7d03-48b9-6fa5-08d4398d1b31 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:BLUPR02MB036; X-Microsoft-Exchange-Diagnostics: 1; BLUPR02MB036; 3:GxBCx3j50h7MZ3Sk2O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AFE3B15AC81670@BLUPR02MB036.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:BLUPR02MB036; BCL:0; PCL:0; RULEID:; SRVR:BLUPR02MB036; X-Microsoft-Exchange-Diagnostics: 1; BLUPR02MB036; 4:JjAdII9Zkja2wtX9+x1ibyAnIANILp8b5IYzFThpUtRPPpNRqtCvRlTquT504Vrub5mM1I57bAQym2mioaF8pzcIk2cQjgbr9Je2umBHBoQlp51MxgoWelApddz4sHVsA4dkLzzz+SGBh6r+oPWuniKak+asqFvhwfWET0XypDHaCO+TrYlFUERwSQYbdCzizRak0e/SjZFcknIa4R0oNsaYrMYrCGvZxvYnpENbANtpvsHFcAQK6aW7Jg7sSFIEI+2VQv6adrS3meKg/zrh6rNCyVLGN2LFJMBZ+5KPna9y1etgl8BQepbgE2rTaWEbLAGbflY7MlvvpSOukCvAI/WUg4QxwHdnFdgHIs0a+3UiZDtOXu4UYt86mFv2amaSSV522lGiBAHeqfF7tTVl4AcGP9cTwll5V1TA8tUzwS9QQk1pAAZ/Gox1j8ZLeyQfhZmww2u4nyGlZf4g7r9ZlEbq0NSG/BSOQECahKhuTi094KeI372mpJk0OyWRPHfhaYwSVvCMvBaaT0TwEbWoO8M8Bripkp9blnsfj2gYZC8yYA40afkCwwD5UsNgE4Fo0zoG+wplmNHInTL1VwM35X9IKpUIBm9cJ1jsL/ZwLeou3q04jMudGVYelb/daf14m2sj4JACpDhUKDKxICy1F5b1g1/357mxeslDPufJ4HRMEjhJ0M5l2VjrImxF1weHv+K6KiSVJ44TkXkCMK8SRQ== X-Forefront-PRVS: 01834E39B7 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR02MB036; 23:Qy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9ZaGFHBf0lYTkPAgvq1AvmtaNAWfruSg81ZBdlpDGbcqSPGi2F9i8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR02MB036; 7:1rvhhg49zVn1HCedzsQHZ2GbYCLe8MK27IwfCl/FKsxnupqD4UecG/I6+jmsak/SznNkQkXQVXxcUXHaWAYmbW/XvNw4+4LYR+sOzJ6Hpsb6UzwFTSR9XU6Y+5DyQ1/yrtrX9uDCSlEJZBJ2UplsEwsvAla6hfvWW+r5dcpJWu9wyy0OP1jtx2M3ptlWgxTCgDPT/iB9ZetA/0nUd/vhaBzYpAr9aNTYiDeUBlOuS0Y+QqqMoNSzPpNiqf8XZzcHjEeRip5MEkCgPNR98pX2OOrmP6fHwoQdr0QwvuChB9ftumCW7hxwywE+nRe96o4XlhEGs0rWIRUKb5Vd12QHyhC6X+xH3krZAH8PcfdfxcP2jMcVAFSV8bOhO6IMgy+TNONKKgFxjGNQrqIOohXarOqatmvSLsm+KCF2Wwn8Z8+UZA48IzHKnCO1ybS41PaOLszhgQLDCWso65Ei1pqCSA== X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jan 2017 19:15:57.1735 (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: BLUPR02MB036 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_pool.c b/drivers/infiniband/sw/rxe/rxe_pool.c index 7d1e2862b928..75d11ee635ec 100644 --- a/drivers/infiniband/sw/rxe/rxe_pool.c +++ b/drivers/infiniband/sw/rxe/rxe_pool.c @@ -266,6 +266,7 @@ static u32 alloc_index(struct rxe_pool *pool) if (index >= range) index = find_first_zero_bit(pool->table, range); + WARN_ON_ONCE(index >= range); set_bit(index, pool->table); pool->last = index; return index + pool->min_index;