Message ID | 20170110190822.16953-10-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 77C5F60231 for <patchwork-linux-rdma@patchwork.kernel.org>; Tue, 10 Jan 2017 19:12:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6B3BA27F89 for <patchwork-linux-rdma@patchwork.kernel.org>; Tue, 10 Jan 2017 19:12:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5F8F82859E; Tue, 10 Jan 2017 19:12:55 +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 B263F27F89 for <patchwork-linux-rdma@patchwork.kernel.org>; Tue, 10 Jan 2017 19:12:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755141AbdAJTKO (ORCPT <rfc822;patchwork-linux-rdma@patchwork.kernel.org>); Tue, 10 Jan 2017 14:10:14 -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 S934005AbdAJTIb (ORCPT <rfc822;linux-rdma@vger.kernel.org>); Tue, 10 Jan 2017 14:08:31 -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=HOjyxT6/LeMn56V1UrLyW6O2hWVldt25Ogqu+K6+izy3/zbU/vNIkP4jvIJ/nNoAN/YyCJ9y7xigwN+Kl9VZx/3cZhILIgrEtHLTr7lxU02sscl/El3y5wDvhdpG32SZQqV3sAxPf9d1OcZAIpsijeMnd+JYeHW/KKsTCi2/iVI= Received: from BLUPR02CA056.namprd02.prod.outlook.com (10.160.23.174) 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:28 +0000 Received: from BY2FFO11FD002.protection.gbl (2a01:111:f400:7c0c::102) by BLUPR02CA056.outlook.office365.com (2a01:111:e400:8ad::46) 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:08:29 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.225) smtp.mailfrom=sandisk.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; 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 BY2FFO11FD002.mail.protection.outlook.com (10.1.14.124) 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:28 +0000 Received: from MILHUBIP04.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 C4.87.01420.11F25785; Tue, 10 Jan 2017 10:59:29 -0800 (PST) Received: from milsmgip11.sandisk.com (10.177.8.100) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.319.2; Tue, 10 Jan 2017 11:08:25 -0800 X-AuditID: 0ac94371-7ee9b9800001058c-f6-58752f11307b Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 29.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 09/15] IB/rxe: Add a runtime check in alloc_index() Date: Tue, 10 Jan 2017 11:08:16 -0800 Message-ID: <20170110190822.16953-10-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170110190822.16953-9-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> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrDLMWRmVeSWpSXmKPExsXCddJ5ka6gfmmEwa0j1hYvz39gtXh2qJfF YsP7NewOzB7Pph9m8ni/7yqbx+dNcgHMUVw2Kak5mWWpRfp2CVwZp7YtZi04y1Zx8OBP9gbG c6xdjJwcEgImEh+nXGDvYuTiEBJYyiSx8d0hsISQwA5GiaXLQ2CKVs58ywJRt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yyZmITmOIT9eSqmc3WNXn+cT+ICJZbijERDLeai4kQAKo8vOaQBAAA= 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)(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:milsmgep14.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD002; 1:qyCcx6hDpTAF670VGE2VEPdxZXbCAdow6PWadRXrfoAqvPNlMMxd3t1/D917JYxA3yNvz9dQLAiJsQlaKMeejZZte2ALaNCRF9HjFiuU7P9/Jz2USQCYDCQbCX0mt0Lkft+xiq6RUNmhCbRSGzId0eNcUyTorsh6MjPjiG5HCjTdG8w44lpT3IjVxDL4lI/pytVMQAC1hfxka8i3KrGI8xDdn3mIKkD8+Mf9AGm73PzKrvNjroEiRFvbeTQzfvYaBcQNsJ/jh8szXwKu4H13Wy3yV477aEPbU215h8HTozjV5TIgfIudLYL76Leq95STKGnTQ0XAwDFRmzRQdgH4DhDtbxY2/oqWT62xaByIeOYvILxTrZ/a5KU0CqMx3uj6KXtPGHEniOQIdFkaQZd0PG03W1YzdQGW6a0Ufx25myoqGUBEpr0ofiL9/EevjNn5QRru2SJz6ChC98KgjNiNzGRA2Ld2JKLwP2ji55ScnohXtzfga2bb/nnXtExaIPxa3im3ezsjEDnUZJ6H/KcPzA== X-MS-Office365-Filtering-Correlation-Id: 4ee10565-cdf0-4b4a-03c4-08d4398c0fb3 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:BN1PR02MB038; X-Microsoft-Exchange-Diagnostics: 1; BN1PR02MB038; 3:Vc6+8DTkfoF49d64Tw9CNnu4TJGw/zRQ/IvReb+pyVDJefhXE+BlFOGm3e71ZVdHVnWHiqCOddoDJ99yyogauISNsiNIRjR3rE7SspDdjxWfBDS5L/DsP3BCpQWgql627ywdUlnzeFuIczpLiBtCtEaMoYcZNw3xhhW43D13Qfkl7IBwm70EtVpE+1isS8JBahVGl0qdqfR3eVspIYI4r5hduetFsN6pZnFbCPjQmp4tIm4rzo3QhFQ4y6TCXyjhoWw3jfvXAK4tN0gYAS+4Rn890yxXgOOxrDS6wlK2SF/+h9r9ERWFEZJoNqUGZbyGGHzy6WtO9vZTheBeAKbDvYB/Wpd3dSjIBQ5cmWc0Gfn9b66iouhO9qICudElDf8+y+n02efutFJHdyrPzOYrgg== X-Microsoft-Exchange-Diagnostics: 1; BN1PR02MB038; 25:wM4oqHHUnNlsI6N8VOgJmG7MGDY7+edLJ8hZXpd9uaqwDqZv+fPhFonWsccuuoLGBNFTfc2wR3PTGPWSD4MH6PHy9r139ozd90Ag2KqfOnaAkwjBQJrvqSnwsnbcABOlMZrpGfJWaLVz6ZyCGrops4LmL9ywF95qLB3iBQzF/4xeoatrttnc2nuJou6UhUky/6//AtIjMl3PX0zKYy7uPkOB89vdC65rA/egVmsMwAi9OLAfBGXBRhAaogEfFHVqHR1N4nmUZm/5kFvqSxe9E5us+H97L5OGmLnoVaBWI+XWGtCnmMQKNIuWsGtzHe5q8HxnZb5dQP/UAQk2SGqM96MDTfg8PM62gdXOBYeJMC/zrGoEnztEe0eA/BLDCx/3JtpYFrJyIkDPPFlR1aUjB25DYPqSt+wLoVrUY3Ir/3B0psEHXB1dpQcMOXQ4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yjTCOBCiM/Ro/HoblkoY6lX8VWouVJ+NepIGRPbs5iZccSxyW+PQWbPtX34+VVDUc6rk8ZVCLf9SHiyCNN9sFNVfd9no/SsYVxKPcazWjSuthyQUGBqtAJaAbS8vtBZFxCDuE X-Microsoft-Antispam-PRVS: <BN1PR02MB038F3E5D8ED5F314CDB866181670@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:/LoxrnJa2AIV5ZxiMUhvRY1S3nJBqQIlOZi3WIetSVP0YnSq4D7MRFslHp5d6ovR0Dms5DIK923mBAfunfefQq38NNAm0AfiOtu110xmy+/F5mrOn2kvxA1nk0b2noEaCOFCqIsWF7nLXiHYlje/Fba0gZO55dpe6P5FPem1GDC8Dsq1tTjukCyuEdq+SVXBniFOcAuivrDmglNVmaYWSzyydN3Fq79MHBz+dlRRB1sq8fVV7J3qal2iqqrnrABxfvz6u6t6rR43rmNN9wnbSyaH9LhkmFMWMHqo1TrwSAfwC3jPA5I7JS1Fcs6f3KB2DoDwfZfpRjXYEvHK59WR0wYbIcZv/RiXTFOpCQGTakpajRDfNwlIlHakBmTGGg11e7VCEpeNIJ4nzzAa7DlQ6hIoOIsypHYLbdTiSukDOJKgF+VWPPtFNtKzY0c1vartM2MViTbih/NpQQN4WTblf+WdXc7dEC0qzZk1CiX0qvrwe5S1pbv/KLnG6lgLVAS+qtWOBtyzHUqdEzuNXJu241btINrf6vh2KrPQKDqgxCdohDOdlqfK/nEQ076GuWl/oF4RhC5Rz5PVYdVHWI2SCSvUDGWIeW30vO091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:5iJ9jHduiAk2MOdeL0GnACkU75uYK0IZoLHJgStMZA58+QKr4muYRVwtmAOpdYhS2XClzcZjFDgfvc/jbopm7SE26yaBcqx8SzkYztVWHNt0ZiWVqTrDH20GXD4BFTU8JScFhT3DBNVsXh+2kUU6QD1NMnbJKNcDqmeT7N0Vf0Q=; 24:uNBHDmxyVVt8hfl+1vNBKyctyPS5Q68EPpbEVJnc/+IuI5oHFyJcCyMs2WgYTXlwPxZ2jvbEVIxx3OivaBxw7gSR8RWGbdaPUIkGwSzylLk= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN1PR02MB038; 7:rB8R4JLnmCLxx+a7b/u0c8V6kWRbbAk3b9vYjO8wexk7D7StT3ahebgd1cHk7of5MDqh90/05FU5iyMMlYlmpvbZu8K8CMTkRjySxh2Q1v/HvPVFyiJtEtSaH+D6GrH6tmVL/GjmiaOUk0dGHGaArtRAOJUQOsQ7KVO4eQwMJeI7kX0xGhShyXZff/8EutmcoYpaBWl83dB1RokYohv5toBeYbJvp5Q7B5GljOCr3rgQIneF6GsflyTfWbqoSqDK+CMAb4P1uW+eeIxv2s60tQu22zDyGq+wxUi40t17+AQs3GCgZTUiFcq45VNyPSs1OisHJjmWiLrsz7026WNdTGQnLWdASrvrrKHpnsvWqeaDL8zN269OsisAntNvlMoSqY3jTJNVbGzJhddSUvyqu/IfKb9CrCugeAv9e+TWBIRpXwG7lfYcLsqp3UCs53NS7SJsePtJYrr4LDFwVhHf4g== X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jan 2017 19:08:28.7365 (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: 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_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;