From patchwork Tue Jan 10 19:08:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 9508371 Return-Path: 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 8951660231 for ; Tue, 10 Jan 2017 19:12:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7D16028553 for ; Tue, 10 Jan 2017 19:12:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6B5C228596; Tue, 10 Jan 2017 19:12:33 +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 E62FC28553 for ; Tue, 10 Jan 2017 19:12:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936608AbdAJTKU (ORCPT ); Tue, 10 Jan 2017 14:10:20 -0500 Received: from mail-dm3nam03on0062.outbound.protection.outlook.com ([104.47.41.62]:6398 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756613AbdAJTIe (ORCPT ); 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=Dxby3ym+myFm9+AIJmG3TTGw9D+kgaNn3M9b+nsBWKM=; b=BdAftM4CTt729H3YK5+5lPECZpxFO3FUG5tLWWK5g8oZvtUYPqTu1aunpc081aHz5OCEuS3qWrSznqGUvXCtxwHTlYRC/5jid30LO5zdPF2hkFtK5xROtbnIUlK2xcN8hAcl6YUUrAJxKoRKj1wAM70WF0FN5mcV+RVJvQCJj6A= Received: from BN6PR02CA0037.namprd02.prod.outlook.com (10.173.146.151) by CY1PR02MB1416.namprd02.prod.outlook.com (10.161.171.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:32 +0000 Received: from BL2FFO11OLC006.protection.gbl (2a01:111:f400:7c09::113) by BN6PR02CA0037.outlook.office365.com (2603:10b6:404:5f::23) 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:32 +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 BL2FFO11OLC006.mail.protection.outlook.com (10.173.160.95) 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:32 +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 E8.A9.65426.A8E25785; Tue, 10 Jan 2017 10:57:14 -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:08:24 -0800 X-AuditID: 0ac94369-b62949800001ff92-cf-58752e8ade56 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id AA.38.16817.82135785; Tue, 10 Jan 2017 11:08:24 -0800 (PST) From: Bart Van Assche To: Doug Ledford CC: , Andrew Boyer , "Moni Shoua" Subject: [PATCH v2 15/15] IB/rxe: Fix an skb leak Date: Tue, 10 Jan 2017 11:08:22 -0800 Message-ID: <20170110190822.16953-16-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170110190822.16953-15-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> <20170110190822.16953-13-bart.vanassche@sandisk.com> <20170110190822.16953-14-bart.vanassche@sandisk.com> <20170110190822.16953-15-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrGLMWRmVeSWpSXmKPExsXCddJ5kW6XXmmEQU+zqMW19n2sFi/Pf2C1 eHaol8Viw/s17A4sHpNmzmD2eDb9MJPH+31X2Tw+b5ILYInisklJzcksSy3St0vgyvjyezp7 wX/hinn7VjE2MDbxdzFyckgImEhsn7SOsYuRi0NIYCmTxPwnM1ggn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4tHyfd EJmiVay02N156eWzcl0G6TaBM3R3P5H90x4lk83nWW1y+vHJbfuUWIozEg21mIuKEwEVTau5 rAEAAA== MIME-Version: 1.0 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)(39450400003)(39410400002)(39840400002)(39860400002)(2980300002)(438002)(189002)(199003)(81156014)(48376002)(8666007)(8676002)(54906002)(4326007)(77096006)(50466002)(81166006)(50226002)(2906002)(189998001)(8936002)(50986999)(93886004)(1076002)(76176999)(5003940100001)(2270400002)(69596002)(36756003)(5660300001)(626004)(33646002)(110136003)(97736004)(38730400001)(47776003)(6916009)(106466001)(356003)(305945005)(2950100002)(86362001)(68736007)(92566002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR02MB1416; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11OLC006; 1:Lcs/s2sJmbUfG/pjEYlhXuYEAQ3O4EnPxvpkyBpjONyTigTey9mFvSZpTnZAQvT9ZlEsEWnCNM/l/UsmsoWhprS6BO260kJI67clJ9opmCPGaswNJlQ3X/ichUlr7mrRiqi19pE62+8MwDkdot94igwo1AWTtmyDgeva35gBSDb0sV02FEGT78Nug/f2VD9JWE6ANQtyJNCv6C2RFdqWF9v9sT27HO1DQuu+DVWfM3Mrvn/bJnC2BkTBNGx1JTRikhbKHwIkXewQbxO/QmJNm6DzyDiHxZHx6BxdpXcPDY5ie/lGHU70S7pebutZA4HACKvDcEx7rdmWD1U4bEet2vOa/6U7IkW8zJUTqmzET+VqKrBS8iGgWcvSBe2wQ/KIpnkerNvmlGy+D20vx1fP595XuJJL/KSfF5MzlpPDqsEsGy5aPKsIjKmhTnc4dThv7846Gs9zCXc6PA6oZj3+R4VTflY5OjWIgqYKi3LTQAI= X-MS-Office365-Filtering-Correlation-Id: b8d51c78-3d20-4a19-2698-08d4398c11f1 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:CY1PR02MB1416; X-Microsoft-Exchange-Diagnostics: 1; CY1PR02MB1416; 3:zHmFcWzBus17iEOE9KhhnTQIbf0DWAgg3FPsclVxksUCcOb/IOsn4qcjnJa/CY7RhhlwQggEqSC7n8PjvsNw4l4kpVPzYZ223aIQ+pxqwrAMMIoBylx1jPaDtfkj9MsyTpwNMxJGVKUnQ0UNTUNBZOv9nrcC3JhP+erF0VFZxECg+9VgHN5CyaBDI/6dWz/doSQ/fNJ5IgFHq+kzAXwF/yhzIYZVfivv5NRBUmfeT7vQvv3RwSOPUYgzAFutZerM5liQ79laBavsccPjGMz7Wt6Gc0sTQKW7Pc3E21nB1FNPryJful69Nbkt6UO+ZebX7rBDacruTjD/hARHqe6Bys3qRay+PNYFJLpUWj0lHTmW3GOkuEaKilqolBzSvEiQekD7C9nVSQFVYzUGhzSgQQ==; 25:zH7iCeSBRB+CWXDrB2F6NLyNszYvhbbzAXidDF5UNJQLHuTmgkadiMVf/gajPcKbvPZASkD0jObktVhF8eOK+t9mfYozMqGT+xKyo9H/NNs0RDpgJWvIIWX2L3HL0OkECteQkvQZ26rKcq8G6fw66PlfQAi3ilMSrL+XypsIvkxpQyQK+L+fvPIF8FdK761I/qKlsoXaeaMiSa9gnjGUzFqtHSkacSy9+CsilzePzVhwsQdoaEdx7iNP6fgobVJ8w/pmmdM/UVZe84mcQXLGmS0s/je25p8lZeR30LpC5BtG7ASeE3fd1v4L5EKvZI8i0NOFrvHc0JNura2sKI04hq+pUF9PImiFSTlzX4C1OCC+O3r76RP+gmbFOYX3yGRU2ezQ5mxdULMAVvcQmSqbvrql+rHBcQtzkTgd2AzT22V7APwbFPgA1WE0XdxUaC0qINtNF2G7zPb4pmC4UIa1Gw== X-Microsoft-Exchange-Diagnostics: 1; CY1PR02MB1416; 31:5nCVT17QkbraoKRvCzInNZ4RYvBEHbHnVPhl7Dn3Pr5xqhLbefO7oDL27AgTySnq2McoYhBTBENRXCcoGqcLNpNajp+ruqvh0Ux5zYAhauj31BZon7IOyBWEOs+yRZcLKXwP4sqCvHQw7x9u0xAvwAGJJXI4Qkvo58CKu99jFRKDiukeE3KlMH7i9vTO7Rzx4T6JT/DR1v+q0vvn+Su9FFpdWHdus6L528Cz3QS/8yUr/HlsV2DdP/7jHyWwGBdlHa9GvpOdlKLlyIgM5yEjGQ==; 20:MFfU4ojhCJju7TCkhM8igZA7bX5kynAPFuCTqN+1f3dkffNgODoHYpbjXb6TE9In3rS5NFPAulxC9Q1O78oMrryR7oVdCMWhJ6i3RSYufjCv4S5BsQDFwNBk9wtE8cVPqNYqZUkA8tbxPuofo5mzrd77/COXgoD39MyD0jkYg3vA4uJPVp9/1fINNzh/as9rRa5Wzf8xma25Vm0YUsc2MX9yv9si2gMbM6Q5F5CxXybeEctARn+Mg4+rQ9TUcoepHxHfGfOVcWb+izJiemNTmdC4ZdhnO4I8XngZ1VBoUBai1d+JHUHUhfVo/u9F48CinrvgI0DWCngXx1VRfmSy8ySOKgHE1LIB3OKqOQ7FkDWG3ZLRtujY6ZnFqkp6Nf/DYh7eU5no5Iyc/7LLDXzOCFJJpg3kvK1qrEt2Wqzs39G6P8tgK5akZLftpD68ste0aglcboWfcfKMrG2Z3W+CQ1x48VSu9pmvZ8NnzDQ5TWvfTwB81Qa9izqYNb0gNOA3 X-Microsoft-Antispam-PRVS: 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:CY1PR02MB1416; BCL:0; PCL:0; RULEID:; SRVR:CY1PR02MB1416; X-Microsoft-Exchange-Diagnostics: 1;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s1aVDVxRQRLp1fb3VdQSKFkPFA6DApV7QF?= =?us-ascii?Q?673N4QMvpwV6qb8GF4632XD20E56DQ15QSeCrqgm6OTdAqkYwV+9Q=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR02MB1416; 6:ElVO5oouv4oGO6ooI4pyOscZMnXSskRB475+TRLsOdNBxx4n1GfY0+WayPqWg33tH10v9PYo5oAyBzTiDsGf7wzE71EQOzRe+Bxiz5VXfeoATu2Sv/lIIiq7u4ulk4M/Zz8Zi9bwLnQgVRP6BbaX9qX3OZdu87295Fkxekocuif40gmluW8zprpuJCxarXUZHHD0wgAHxhVscIJtCttWELe633mpCxrGMIOIPwWnyqdh1JZWNXt/r0pHo0opQeOS7GeQQOzuuz5foNYjEBMohax8VTMrTwr3qsKeg460iBzMGjBKcaYmx//AB+AhhEZkv4Ho1UKyyB02gRMiAkLWMt/CL4Z0lu76Uw2NJQmpFMAWpH0uBwQ4tN530ZYsCDbBtknyK9p1mkCaqxWo2f03bTD7C4U8fCo//1ATt0XPFyJbbzYYy2nGTJ2L+RMnueEfIs4NW+EnPhSCcgUFTOcHhg==; 5:q8bySEEXVcQB3qoGr43/V3vxWk4eQVjgLNoF+eESCRv4doMXrQbk7+sSnGzYcim84lZ690FWtXLDtIBBWZb3xjtVRPqcECt/TxRZ3IZ6+YalsTW/YyjfF925ZZS8vt/zO8V0GL4ygfsNsRBERDK2ACMdrjKI+CVUnaXLC8PovVc=; 24:Le3aSdZ6Ukp5SvgN6vCm8HPWwXUp6l/DPTUNVqWpiiFUUPrM+IPy75us+PvDCruqbUq8SaMINDWxf9a9+31oXLdDIZ1ZfqiQtvbl97AfFlg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR02MB1416; 7:PbK8y6DHEXRzHqzJ+h7gZI3YOWPThaHrolQQV6qt8hSNs2sdN4bbGRbjm0HVtZlqEHaLMWzAg0dpoJFOUvJLq1PEdArTlXxBy6HIC6ACoqgkooSeRJJePVaJud/XVRVmWPW+CPkJQREKRB0pm1qbV6jBoseVH1Fr8xpiLHMCl1IH/crInosU5g73E571ppDnC3FidorLzdf9yHTGbvMiJSHEQB2R2mlT2M2T2KoaeftXZ28O82EutySHmjoL164uKpDAZatTWfzhuUOU/tYYvqgWBhERGUuVN1atUkRHx+jSdh5OX7AnxLhopvwLRzjPjf5wQYzEJV+3TmmTVc4CmimDMUYP7pgRbShMwPOFWfaC2z3hystmzBjFmZKeAe2sJbt2jz8TyBh2jjxCsD0FDycF5sp24IsJYgFmma1nksWCwj/NYxZINPEnzWmek683oiIE7SXnUPZXiuBiMvbHhQ== X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jan 2017 19:08:32.0936 (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: CY1PR02MB1416 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Additionally, make it easier to detect skb leaks by issuing a warning if a leak occurs. Signed-off-by: Bart Van Assche Reviewed-by: Leon Romanovsky Cc: Andrew Boyer Cc: Moni Shoua --- drivers/infiniband/sw/rxe/rxe_comp.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/drivers/infiniband/sw/rxe/rxe_comp.c b/drivers/infiniband/sw/rxe/rxe_comp.c index 91317c159b9a..4cd55d5617f7 100644 --- a/drivers/infiniband/sw/rxe/rxe_comp.c +++ b/drivers/infiniband/sw/rxe/rxe_comp.c @@ -630,6 +630,7 @@ int rxe_completer(void *arg) if (pkt) { rxe_drop_ref(pkt->qp); kfree_skb(skb); + skb = NULL; } goto done; @@ -653,6 +654,7 @@ int rxe_completer(void *arg) qp->qp_timeout_jiffies) mod_timer(&qp->retrans_timer, jiffies + qp->qp_timeout_jiffies); + WARN_ON_ONCE(skb); goto exit; case COMPST_ERROR_RETRY: @@ -665,8 +667,10 @@ int rxe_completer(void *arg) */ /* there is nothing to retry in this case */ - if (!wqe || (wqe->state == wqe_state_posted)) + if (!wqe || (wqe->state == wqe_state_posted)) { + WARN_ON_ONCE(skb); goto exit; + } if (qp->comp.retry_cnt > 0) { if (qp->comp.retry_cnt != 7) @@ -688,8 +692,10 @@ int rxe_completer(void *arg) if (pkt) { rxe_drop_ref(pkt->qp); kfree_skb(skb); + skb = NULL; } + WARN_ON_ONCE(skb); goto exit; } else { @@ -709,6 +715,9 @@ int rxe_completer(void *arg) mod_timer(&qp->rnr_nak_timer, jiffies + rnrnak_jiffies(aeth_syn(pkt) & ~AETH_TYPE_MASK)); + rxe_drop_ref(pkt->qp); + kfree_skb(skb); + skb = NULL; goto exit; } else { wqe->status = IB_WC_RNR_RETRY_EXC_ERR; @@ -724,8 +733,10 @@ int rxe_completer(void *arg) if (pkt) { rxe_drop_ref(pkt->qp); kfree_skb(skb); + skb = NULL; } + WARN_ON_ONCE(skb); goto exit; } } @@ -734,6 +745,7 @@ int rxe_completer(void *arg) /* we come here if we are done with processing and want the task to * exit from the loop calling us */ + WARN_ON_ONCE(skb); rxe_drop_ref(qp); return -EAGAIN; @@ -741,6 +753,7 @@ int rxe_completer(void *arg) /* we come here if we have processed a packet we want the task to call * us again to see if there is anything else to do */ + WARN_ON_ONCE(skb); rxe_drop_ref(qp); return 0; }