From patchwork Mon Jun 26 15:59:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Dupuis, Chad" X-Patchwork-Id: 9810013 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 77F3560209 for ; Mon, 26 Jun 2017 15:59:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 79BAF28334 for ; Mon, 26 Jun 2017 15:59:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6E5DE28593; Mon, 26 Jun 2017 15:59:59 +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.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI 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 CC1D528334 for ; Mon, 26 Jun 2017 15:59:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751976AbdFZP75 (ORCPT ); Mon, 26 Jun 2017 11:59:57 -0400 Received: from mail-bn3nam01on0055.outbound.protection.outlook.com ([104.47.33.55]:28710 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751592AbdFZP7y (ORCPT ); Mon, 26 Jun 2017 11:59:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=FEsDw4ktRMg0NYA1oLoC6XpkjPXUMDds6Qxfm38/6Bk=; b=SqaCoyjgnMtF0XnYwg7wKiaipCvdDgDW8D+Ph8YsP4BXIhsIoUtD16Yp37XiCrqUbeofkRcz7gkKqkg/3XYHA7tspoSX4I2V9WQvvtBgKpFpf84uhVqgxP/sfl/ldhGd6ZFYlid2MxpOWu17nbpyVSJvJWG0nxCQyXxgggNj46Q= Received: from BN6PR07CA0039.namprd07.prod.outlook.com (10.172.104.25) by BLUPR07MB418.namprd07.prod.outlook.com (10.141.28.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1199.15; Mon, 26 Jun 2017 15:59:52 +0000 Received: from BL2FFO11FD039.protection.gbl (2a01:111:f400:7c09::165) by BN6PR07CA0039.outlook.office365.com (2603:10b6:404:a3::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1199.15 via Frontend Transport; Mon, 26 Jun 2017 15:59:52 +0000 Authentication-Results: spf=none (sender IP is 50.232.66.26) smtp.mailfrom=cavium.com; oracle.com; dkim=none (message not signed) header.d=none; oracle.com; dmarc=none action=none header.from=cavium.com; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by BL2FFO11FD039.mail.protection.outlook.com (10.173.161.135) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.1199.9 via Frontend Transport; Mon, 26 Jun 2017 15:59:52 +0000 Received: from dut1171.mv.qlogic.com (172.29.51.171) by CAEXCH02.caveonetworks.com (10.17.4.29) with Microsoft SMTP Server id 14.2.347.0; Mon, 26 Jun 2017 08:59:39 -0700 Received: from dut1171.mv.qlogic.com (localhost [127.0.0.1]) by dut1171.mv.qlogic.com (8.14.7/8.14.7) with ESMTP id v5QFxdMK002146; Mon, 26 Jun 2017 08:59:39 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id v5QFxdDp002145; Mon, 26 Jun 2017 08:59:39 -0700 From: "Dupuis, Chad" To: CC: , , Subject: [PATCH 5/7] bnx2fc: If IO is still in cleanup then do not return to SCSI layer. Date: Mon, 26 Jun 2017 08:59:36 -0700 Message-ID: <20170626155938.2091-6-chad.dupuis@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170626155938.2091-1-chad.dupuis@cavium.com> References: <20170626155938.2091-1-chad.dupuis@cavium.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(39450400003)(39400400002)(39850400002)(39410400002)(39840400002)(2980300002)(428002)(189002)(199003)(9170700003)(50986999)(478600001)(87636003)(76176999)(33646002)(42186005)(80596001)(48376002)(106466001)(2351001)(50466002)(72206003)(105586002)(356003)(101416001)(4326008)(81166006)(8676002)(50226002)(8936002)(107886003)(110136004)(38730400002)(54906002)(6666003)(5003940100001)(2906002)(2950100002)(189998001)(6916009)(5660300001)(1076002)(36756003)(47776003)(305945005)(86362001); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR07MB418; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD039; 1:VAKhKZBBCV07jn6Rwhm4p+lOiqfU/fmxfUmA6Lq2zJ24WmQerVVSa6dbwX40/IWGxsRFz4sNPRPJIT0hmxuWvjmWv9RcDJdfwB+zc35TVAdFkMmUj2UD4kO6GVux7vO29p2ORr3U/obsp0u3ux9l3wI5RlPG7UmhodSus9t7eSCsB/gsSubXtGCKZilrihoNYzfAleYgkQM3DP0jg5SS6/htXvsem3sqPv+JUPXgq6dSwrY+Y6K+98/VXMpNdI3HHzNkpQiKl3Wi2DFz3XgtWBnCJvsVoM5ElbYr1+Ps8i9lOyDzrIAfBwpyo7AYdITnKMnCbYnDCVQVxiIpzuMr4fKCyqKmM46o/1OuF3Bo8jrJ/3iydluvcwyp5yJW+lO42wMP0+NljO6guoAOUPX5KlAHPLocflIQywxgApbsDazppLLmjGKPPtO/3CmZ9LQrP6O3DaVkSX6GCprYC2MqkCsGLowI+3HtGBKXzaLthakMk77i7IJiVpP9kIOzoqDGvTYX9crY+q8VTw0q/6Oi67ULoCNkRsfaVRKkAyXLtJfuJeXWfNYl/WWur9hAy6Jo7bN5gLVsF5d2EezPFRf9eazZzB8W3HIfUZmM52CIzyifpLg/Oyv4D7qQC/Axc0nKd8YMypPCODx7B3Ah8uxM9NUIPIg/xbOS/YQHvicVWCEyTwh5M1bHNEc7rS7L2bfuQrBY2E9I+k4/k3xr3Afob3S739OY1IeahBlRCgN+JauLRsHA+m7+7WbP/ECrGs4gRvuzLOsDWZUctcaNbiBWZlGhljpOKlNKKqadxfP+IrUXphxeFWFtwtoenvRoZ8QX X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d6c9e3b6-902e-4805-a9cc-08d4bcac61b4 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254075)(300000503095)(300135400095)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095); SRVR:BLUPR07MB418; X-Microsoft-Exchange-Diagnostics: 1; BLUPR07MB418; 3:QvgaPeNatkzGdIfLdjJJOQzdR0BoFg5NPi8HQgf5+HMBG6v16yhCJU2INfqb3gwfptSpXJd0Q5BFaEiWpXTWb445GmquRb22+oo3iZTZLIohMZs7gSwWGSqfMfedPaWW57UvwDcMvO3YU/BUTiNevB6jWpAnv+azpgoDb6GofZ+GayF+PoIQ7W+36Q35eQko8nj/jowe3Mj8zVOhbSn/SV9sjIEdL1QzSXFXud878yyfFVbqPrPVjc4R4JEpDVniv0zQ5+hNJiyi4J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+UqPCz3SUGe91Lcz2uxiL1DqenK37iOjb/nn/LKUR0xPwHYKmUnyJTvbXvCWBCelZZhnL6VWl9EicBhoy5ih0tGK0o2jO2fctnFVD9klZhOfpOZZ75YL3Fg3JLhafvAC9cPLgsZFsAdQDeJYnceWb7npCXa9i7D44FJkT4byeHSVJ6IkIrMzVNqNMDM9p5/qA== X-Microsoft-Exchange-Diagnostics: 1; BLUPR07MB418; 20:ViaatmrFXUwa5RpZ0FZmhIz55DCMyr/f9y9ngMJRFlbImli8OGI/wM5R6+RjJbZMexRVo+Lrh6ML9Nf0RqYi9tTpj75yWJ8zXmtJn+jQdAczTG6gFQw2rIWb6d744m9KXSqARgzV3KotVC3dOKSkv7Ypm7u5h2NrnsuhEK32e1Qb2JR3JoHv8NllB0yHnZ1tjEnAwVq53/+y9wu81KCFlk3edG16KSwN+MzZfyFs9n+OJ7gsTXAm4PQqb6LoUhuOSAGgALwuJrK1liDzVB8h99fZWJO3026RcYypi1ZpY+30sd23q+o8vWKZnw4AJhIjT1eaMcYHA3pfTO6TvaDqoPUKPkR6TirBZLKgCIRjRtaiiVRqG+FRS0lfO27wkxQBb9rMD2NaIOOv/x5C3QsyUbpVPjXBUn63Rv4p7Grf8PkRbXBFyc3XAY5QgQVWek4eEUGFIiNzU39V6Hff7I8RDPrx6tW3NJXZ5phrxtHYpExaRYiVIqMogI7ZjZgOS5cO X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236129657087228); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(13018025)(5005006)(13016025)(100000703101)(100105400095)(10201501046)(3002001)(93006095)(93001095)(6041248)(20161123560025)(20161123564025)(20161123562025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BLUPR07MB418; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BLUPR07MB418; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR07MB418; 4:sxFgP4CqzfXJRKlFoO4y8w2J4MZxIa8C7fTpDXiwKSX?= =?us-ascii?Q?aKcqgK5/ngGkoX7c6Uuzj4chhwRIU6HmkxziNzpN9Wb3EKnYSRX//y3QkO0/?= =?us-ascii?Q?oUmqEPoHy1iya6nVDPh5vMRDASwF5+oJh+yf1HrWcJLVRX6XDHghrJVWhMtF?= =?us-ascii?Q?1sp9gqXj/9bTKEpRoZ1Mzln8JkdqwYD4TYGasP2z2TqIAClIYdZOHeOxSQ1B?= =?us-ascii?Q?4MpXi/nUtDXBCIjzF2yt9F9PRtoy4oW4yMLlpnzAG0SKpGplpB7lmNrlGmSm?= =?us-ascii?Q?KWP/Bc/1BhPjmrHpjJb63YXNR9Sj1OMsZ+fPhF4Au9JI5imGvwln1YvZzSI3?= =?us-ascii?Q?HsS/txbrNbNiABm/oxPYieQUs63eLCW6DdLO4OCr6ZMPy76ugHbToFDWNDGO?= =?us-ascii?Q?fGAxkSfpXKdRgZsKidUuU0bSf9evf4DC7fI5ttiFwsorCa377P+R21pKGZ7B?= =?us-ascii?Q?pQrkSGw3r3EDDB7p1fq1zeeTwhceJKps5O/XmUe6Ayepi5VyHCqB24rSJFy/?= =?us-ascii?Q?sJwhiE905p+RRmD517HLcPkzcAUkSOUqVb0jDhKmUn/5NxSpCdN2mHGBme9y?= =?us-ascii?Q?rF5tJP5oglKKUWS/9+3lQu/rkK6RUpcHXCEjWF6lTYFzLcPLRpaL1YalWXBd?= =?us-ascii?Q?TXm6TsNof2kbL+2a+LkimUM8yu1nTeBNAZx/Jq2pjUiGElsh6315ppGKaObh?= =?us-ascii?Q?UD3JOyR+UpYK1TeJpgyeC7fT3iVMEtWELgkt3MiyTDy/23X5mA02EN6rt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F0thi8CqGVmfdl3rq66TmEYv/D3f0GDjK6U5pj2TMWg6L4G/?= =?us-ascii?Q?mTyykAHbs6pXqehsjgNjdNpz0atW7h9wA1jAyRyPH3LHuHAbZ/NNl7sawe0q?= =?us-ascii?Q?p3VuYSeilsFg+CVlqU+i0artQ/fMFy+YyIscUSI4P3/OrZTGuIfu6TQKc9ME?= =?us-ascii?Q?=3D?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR07MB418; 5:Ps5BafMNHEUZNtX3x0+c5QPDOiaivavXElQoDU9I/0T7jt5ivqSlfhvBZk/wS9NMieRSvOb1JAjTt425VO2W5nhRf38jwf/L4Q/LjpQ6plHBjxfG2rlcF0mbzlBjsv+/4pSE23HP7vv8/FfILCnXjwChaWYZZ0osgxAg+8lRfc1X4vSrRdkxLZFI1Vi2SGzVlfExOKFW8fWgOh7Arl1EqBANzmGN86UKPCCJFgUkzOV7LIC3JsPUaYOQBdQn7/OH68VbebDxdvASFDEzkBYglJI9BJ6+aM5Zfhb3vAlQW3EuaIAHfSFxHyhxN/ftM1GDE4TdGg088ylO5aFrX1de4BhKPM9xOBp3Y5XIw0nGMAbpuWO4f1Qx64TuxWTpQU3bgpah33eui9mmx3IOYXOMFHmd1/pcM6zHutu61MdtdoexodPvvIyi0mt3KJlw/iA82qBJPhGVJsz5Uy6plLOl+mvI8iLZhd1DMGGzbwzVCfXpGoHrZZY1wtvEQnDSLoXw; 24:lpvqXgEC00jdSXK/jphBTYuUMXrS2So27LEJRonwgu83AgXA9pDdJUtgHs0Bxalx/6ssM7qM7w+SKbdnLDbvcd+CwHYet2ia31owVsbcZ+8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR07MB418; 7:Q6K9iNKVFZ9f4XJWQMOQ8Rrf3ayMPzeXrRrUft8iJP1uJyPWWVKipqadRNtorkll2r/IOp82gykUgylme5YbNBfixjw8z4WPlDYLBnQGW93rhfmMAfJSkwc6q0OiK7ahoC9+iek3ybnSGIJEDYmGTJg32KDjEkkZMeps1zpy/RLXSxV7EiWFrVwAiAJ4izV6byNnkX8xhPhDqRecjyrKgG1/GKygFXTCAXbvzDuyOBSr3f9HUUSv16LiaHDgzcXLOr/oFjKiEaTCxs0tV4HNNYIlWd+gCBH14yRgo0aS8iOddaKaJMb/iqeNE0Mc2g6ak2M1HGZ475322S4gQVIhixTmogwMe4dE61RN3TofCQ0VrB9JnkUNW5ugpNcof59VRBhXotdIMbV+rND7AgCXhad1ebkHOGTb9mla2UoED2skT33NJpSI6kbKkpaZp0kMsK/DHIkaUGgGSASJpCaIjI1UmSvubgKQuG8g4oAafqWJKu66WW35Jh1B5BsbjewdzuGkMuv4u2gT4SWE3gA/H4RS5rFPxDM7mjR7UI3o2obId6rnTO3kgC5uCRm637a8FrSFeFAd2jV7/BZgUimpcfUCh7VnBU8MEzmI3bGc82jRbWDIBgNJs5h+la/t5ke9PVsqpWLQt1V8+t3dWbMw7HFsiC7X82rsIt0CHjYzj2piFLcWfxmlrhETYbBeV5RVqt6ve1yE+sOQPBgnmQ3umeMYTEyVEFGPYFGA59hv4wXLfWouVDhHJbI0JPrwwmtXL6pXpYk8gsXrDGz6S5GZCC1Z7EMcuqjPhuxJo2H3fqA= X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jun 2017 15:59:52.2277 (UTC) X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=711e4ccf-2e9b-4bcf-a551-4094005b6194; Ip=[50.232.66.26]; Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR07MB418 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP In eh_abort, driver is calling scsi->done() for a IO for which cleanup is pending. As the IO is outstanding with the firmware, it may do DMA associated with the IO. This may lead to heap corruption. Do not complete the IO for which cleanup is still pending. Return failure from eh_abort and let the SCSI-ml retry the IO. Signed-off-by: Chad Dupuis --- drivers/scsi/bnx2fc/bnx2fc_io.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/scsi/bnx2fc/bnx2fc_io.c b/drivers/scsi/bnx2fc/bnx2fc_io.c index 6e8b9be..5b6153f 100644 --- a/drivers/scsi/bnx2fc/bnx2fc_io.c +++ b/drivers/scsi/bnx2fc/bnx2fc_io.c @@ -1167,16 +1167,11 @@ int bnx2fc_eh_abort(struct scsi_cmnd *sc_cmd) printk(KERN_ERR PFX "eh_abort: io_req (xid = 0x%x) " "not on active_q\n", io_req->xid); /* - * This condition can happen only due to the FW bug, - * where we do not receive cleanup response from - * the FW. Handle this case gracefully by erroring - * back the IO request to SCSI-ml + * The IO is still with the FW. + * Return failure and let SCSI-ml retry eh_abort. */ - bnx2fc_scsi_done(io_req, DID_ABORT); - - kref_put(&io_req->refcount, bnx2fc_cmd_release); spin_unlock_bh(&tgt->tgt_lock); - return SUCCESS; + return FAILED; } /*