From patchwork Tue Apr 12 21:39:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 8816751 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 9C2159F39A for ; Tue, 12 Apr 2016 21:39:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B69862034C for ; Tue, 12 Apr 2016 21:39:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4D44720377 for ; Tue, 12 Apr 2016 21:39:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934086AbcDLVjm (ORCPT ); Tue, 12 Apr 2016 17:39:42 -0400 Received: from mail-bn1bon0057.outbound.protection.outlook.com ([157.56.111.57]:63429 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1758096AbcDLVjY (ORCPT ); Tue, 12 Apr 2016 17:39:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sandiskcorp.onmicrosoft.com; s=selector1-sandisk-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=uRiTWt8f6dQfqwgArLQNArYmXjBb1P0Mlhh67Q0ukfw=; b=UmAyKsmUd/0Co2K/3Vqid6Is0pOTDKaF8mFOVFddC6zQf04w1hiTBuWUgOF6n8Goorzq0rrNEJpuUu35AkmHqjL9IRj1rPoDE/5oly4bkujum0uMHgz4dxCR7Iw2oFNwINWUKZFV+oSzzmq6gXe/ko7z+bG6NTpVeA8LefoM1/Q= Received: from BY2PR02CA0015.namprd02.prod.outlook.com (10.242.32.15) by BLUPR0201MB1857.namprd02.prod.outlook.com (10.162.239.139) with Microsoft SMTP Server (TLS) id 15.1.453.26; Tue, 12 Apr 2016 21:39:19 +0000 Received: from BY2FFO11OLC014.protection.gbl (2a01:111:f400:7c0c::187) by BY2PR02CA0015.outlook.office365.com (2a01:111:e400:2c2a::15) with Microsoft SMTP Server (TLS) id 15.1.453.26 via Frontend Transport; Tue, 12 Apr 2016 21:39:18 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) 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.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 BY2FFO11OLC014.mail.protection.outlook.com (10.1.15.48) with Microsoft SMTP Server (TLS) id 15.1.453.6 via Frontend Transport; Tue, 12 Apr 2016 21:39:19 +0000 Received: from MILHUBIP03.sdcorp.global.sandisk.com (Unknown_Domain [172.22.12.162]) (using TLS with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by (Symantec Messaging Gateway) with SMTP id 9A.33.03047.8CA6D075; Tue, 12 Apr 2016 14:38:17 -0700 (PDT) Received: from milsmgip12.sandisk.com (10.177.8.100) by MILHUBIP03.sdcorp.global.sandisk.com (10.177.9.96) with Microsoft SMTP Server id 14.3.279.2; Tue, 12 Apr 2016 14:39:18 -0700 X-AuditID: ac160c69-5dfff70000000be7-61-570d6ac85b87 Received: from exp-402881.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 5C.26.03935.60B6D075; Tue, 12 Apr 2016 14:39:18 -0700 (PDT) To: Doug Ledford CC: Sagi Grimberg , Christoph Hellwig , "linux-rdma@vger.kernel.org" From: Bart Van Assche Subject: [PATCH] IB/srp: Fix a debug kernel crash Message-ID: <570D6B06.8080204@sandisk.com> Date: Tue, 12 Apr 2016 14:39:18 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrGLMWRmVeSWpSXmKPExsWyRoxnke7JLN5wgynHOSxenv/AarFy9VEm i2eHelks1r1+z+LA4nH+3kYWj903G9g83u+7yubxeZNcAEsUl01Kak5mWWqRvl0CV0bLxMOM BYt4K/o/32dqYDzF3cXIySEhYCLx4eRZti5GLg4hgblMEt/nvoNydjBKnDx8jBWmav7xLYwQ iaWMElM6pzKBJEQE1CQ2vVrEDpJgFmhklFj89xUjSIJNwEji2/uZLCC2sIChxMzJu8FsXgEt iW9PusFqWARUJd40nmADsUUFIiQONb6HqhGUODnzCZDNATRUU2L9Ln2QMLOAvMT2t3OYQXZJ CPSxSrw6+R2sXkhAXeLkkvlMExgFZyFpn4XQPgtJ+wJG5lWMYrmZOcW56akFhqZ6xYl5KZnF 2XrJ+bmbGCGhnbmD8e4T70OMAhyMSjy8D5x5woVYE8uKK3MPMUpwMCuJ8EoCI0OINyWxsiq1 KD++qDQntfgQozQHi5I4r9u9L2FCAumJJanZqakFqUUwWSYOTqkGxmMG/Krvq14IT/2UI/LS c5WLuXPTCfeUg/E7jCLmmSvZTOxYl/Dpwxu+x2+NFQOebhPdHHNotWSvZfC5trNRzK5r902V PPyh6WbctA33YpIWRYpxvWQWP7MxpVts6o4g83TeY7fZDz/6cGrfxlCH/EnuL1OnGZ0vvOuc 1jTHdUl8F/NNpddPDyqxFGckGmoxFxUnAgASFpWdaQIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrLJMWRmVeSWpSXmKPExsXCtZEjRZctmzfc4NpCcYuX5z+wWqxcfZTJ 4tmhXhaLda/fsziweJy/t5HFY/fNBjaP9/uusnl83iQXwBLFZZOSmpNZllqkb5fAldEy8TBj wSLeiv7P95kaGE9xdzFyckgImEjMP76FsYuRi0NIYDGjxP69v5lBEiICahKbXi1iB0kwCzQC JZbPYAFJsAkYSXx7PxPMFhYwlJg5eTeYzSugJfHtSTcjiM0ioCrxpvEEG4gtKhAhcajxPVSN oMTJmU/AbGYBdYk/8y4xQ9jyEtvfzmGewMgzC0nZLCRls5CULWBkXsUolpuZU5ybnllgaKRX nJiXklmcrZecn7uJERxgnFE7GK9PND/EyMTBKdXAuNO9UPDxpOnr03k2FIjfb6jhcu9dNVfu jfI3r4svXzxSZ2Nr4s+f+8Rn8uqZEowFp5ZdO8p4pvpwx0mT510SohdWpweZh99w2TDHdpLU z6sBTr/Pboq99VzSzGLL3fC1LM9W2O6aGnOveKE4V7KOQddl4zmMrRMms0xViD67f5m62EmX eWcyXJRYijMSDbWYi4oTAVFmEX/gAQAA X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:63.163.107.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(438002)(189002)(199003)(65806001)(65956001)(5008740100001)(47776003)(586003)(59896002)(11100500001)(189998001)(86362001)(4001350100001)(87936001)(19580405001)(110136002)(77096005)(53416004)(6806005)(106466001)(229853001)(33656002)(87266999)(54356999)(19580395003)(23676002)(92566002)(2270400002)(64126003)(5003600100002)(50986999)(80316001)(50466002)(2906002)(230700001)(81166005)(83506001)(1096002)(4326007)(1220700001)(36756003)(65816999)(50929005); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0201MB1857; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:nov; MX:1; A:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC014; 1:qC341FPRC6uaBtOMAbNHiHtyfqWd17HRhlDimV9d+1+MZIWSqUgOU7IHO5jWM64XFob5iDeRq/F2Q7SSjcFtW7x28O86NnfD1+38tUs9eYIpDpL3++KUJ/QBSkT+WgRa3oOkW86RjpVz74OEyhRz3CyW4sRicjURYibLvX4pHYyEEsyrkR7DzRw3KZAfPFBnexZo5mJozFSobK5Tsw/H7Q8ImfjJ8a0Yes8tl3nETLa24OQwEMRm0xpfDeN6O3d9AOeEGFci4VPz+PF2fwvCLx/soeCVa5iJtOpsUDvdR1lyYS6oE4B3GImavanhdj7Dzy3o4dlH6OlhMPqwPb7gK4cugy6Zk/i+i+DA0mW/J97ju731cb/98fncCzs8H/NxhWyAqo05LP5ki640sfzM9SJA5luahw7cIfM6reHf+vi82asG+i17emYh6iPicTEYAcqxyNLsOTS4b4BQj+ARBDsXG1RalYLBYdeJ62Ao4sk= X-MS-Office365-Filtering-Correlation-Id: c681bc01-3d37-4573-2083-08d3631ae754 X-Microsoft-Exchange-Diagnostics: 1; BLUPR0201MB1857; 2:D/Cc3K3S+QrUat8KWhqqaGn2gQdGGAHA+Jgah7q3Bwxqns+WTFsU0Lq9u1raDjZ28KeEMOyPgX3+fTF+GKUGB0yy440RXaRUIYrfjo9lusmcb3J1AtCkt257siVEBVHAbzJHLUNX1TlfP9DOAZ7VzDzx5XFmmBL11d1FOPhBByVPX2guyefjwk5G0ki8RmQ9; 3:2+z/oApoUdCqbn5DH/Ls2o7YdDfBaepEh5KVkhq4M5U3yMzx6sx22cWklGKU3Nn+1IApxRaXqcp9pibnvs1NfFh/Jtx8lTIy3G3HN+Y2rkJExfgGwYHljX8timIuut9868HM83SzFOCmjUE9Tlh1YJG9fUCJZffduEuvJQEEOivWVtCh91DJbHJWXLkUdXFMs3GQQn16GrMjhPTJbFyaWY3W5f8+XXwFRG4vwvfbkR3dVyPBOr/Wtqg0JLCslyulUAE2oFGQaEsyvqoB+33Y0w==; 25:ilmHOq/GIUeujKnzi+hGOi7f/2oGG046FMAJDNtX4wycut175nFsPk+kcI3IGE32+FP9Yr1rjjL9y6X1hbvaAKifldhO+WuKodsuxi7IPnJuCYsww3wgr2WBCNZB6YhY7VpAWQANuF2iwjjrGUm/8uwyAqOpVHFVZGVHd1K7uGSvwCBZB4uzxkiIedqMdv+UKVtW5DCL7rkZXRuQN31Z3JvDM7KIhTcb6dF6wFQPTQGKExoL7MEc5cduhkGcIG4726pPPAuzvAxt5WER4NiCWVxctUBQYxAO8qMG8SR1GwpswY4dX3D8UKWcNvuSQiD4kk/XZFeNIDT5QQ/SUYbRHA== X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501002); SRVR:BLUPR0201MB1857; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0201MB1857; 20:PAJLwGquE01fvm5qjfiAaIoekDKVBtcrmBi7Aa0VUNNsAP6EBuas/GD/TdvM6ucD/hOGUwAOsQkzPIH8sIaJ1H6URqFcb5V77DJYjB3/ZXcMD4xHqGDO1GmgcWOGl04DrG9HBKFugiNg8DJQzqfHPJVrM05U0t/eu6Ro/ZGewEas/LJJgKzzJ7pcqFk5YRPM3OO3tQQAKuvOBXecG+PMTkGFJcgW1QP78zKqfyTM2KtTNtylfbIPxRFCAA++tI6v06LxAL8nBTEMajTPrn9U9bnTQHQPzuzkB/I35VBGX6EXLWZJDuK84cmLWGUuQmH6/zpaFqd1qxwqm8LVuc/rbCx/4BeM4mOydyvO/Pgdr8ogXRkpC9SnfOnGyqxoNSsSBnDv/Fu1wksKNJItlKZJ2pt8wjFWNT008VDon+e7a1VTerk5UzAYZiTEwrf2W+Kt0vX7BdX3GcPPEaYOD8UNkhBTUbJL2qYs4a/LuTXA3ZqOKjxpIc3whTRE6VPKE3l7 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(235219596079481); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(13018025)(13016025)(8121501046)(10201501046)(3002001)(2002001); SRVR:BLUPR0201MB1857; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0201MB1857; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0201MB1857; 4:W89PyQ2Zeakgqz8lYxhQMRCv3w0wqAkrEEaOSrdO5+UhwvwYVBRExP6pSAXl8N6qQOemFW4ahzLc7l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ianJIeHBZYlNYTmpFVUwzdkVsZW5raWE2MFJGNk83QUdi?= =?utf-8?B?a012dHBJRjJsa3F6N3RoU1Y0NzV2azU3TzRlbkswQkpWZGl4Wjg4bnpPUVFX?= =?utf-8?B?YUhZMDJQSyswSWp6dFNjNlhxTTR0SUVZUzFJMDF5eW5jYllWOER3QytwRHVo?= =?utf-8?B?bWhWaW9hWEFkSGVhNkxyczR4bW9BQmtMUT09?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR0201MB1857; 5:ytzotzwZF5bvAq8S9nC7kd1/VnBxLccQ4OKPEk83HuC02Typ18c178U0hVwODpoh9ehTqZIoj3HS+SB39EzaNntcmjZjB5EzX3dzObOQduoHgILVT8pq4eY9ZauhXVASjZTrwroTh0WRl90eo0YoXw==; 24:fcWYjdpA/cAkYZt2x1nm9mXKHciExvmURav8oPKTS1XVSUyo26TcZP2boBiWDIxJUhLB4YtAHkJBez2WYywxQCjCoT14pmZK0scO0++ADFQ=; 20:mHdCNY7SZtVRYaaGxh/7870CMGQD8fZylgEXESgye3065hRJL0O0MJzL15i6M/YYhzroKJw7PsrpI7p9V2w91PxWctR1kaF6c5Ibb+WWRM7rhp3lzMWD86kE4yJc3GeriPOvJ0FHShb4ASHZX8n2XAfZNqSflRARIKVw6ZLS+m3Q7sPNlKNZULPWNcHH/DxXsxTtiaDDoNdQSHbhyFraKkiRAU2/95o2C2FXdX+xHiSNjb9cgY0tHVZZiOuP49NC SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Apr 2016 21:39:19.0253 (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: BLUPR0201MB1857 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-6.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY, URIBL_BLACK autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Avoid that the following BUG() is triggered against a debug kernel: kernel BUG at include/linux/scatterlist.h:92! RIP: 0010:[] [] srp_map_idb+0x199/0x1a0 [ib_srp] Call Trace: [] srp_map_data+0x84a/0x890 [ib_srp] [] srp_queuecommand+0x1e4/0x610 [ib_srp] [] scsi_dispatch_cmd+0x9e/0x180 [] scsi_request_fn+0x477/0x610 [] __blk_run_queue+0x2e/0x40 [] blk_delay_work+0x20/0x30 [] process_one_work+0x197/0x480 [] worker_thread+0x49/0x490 [] kthread+0xea/0x100 [] ret_from_fork+0x22/0x40 Fixes: f7f7aab1a5c0 ("IB/srp: Convert to new registration API") Signed-off-by: Bart Van Assche Cc: Sagi Grimberg Cc: Christoph Hellwig Cc: # v4.4+ Reviewed-by: Max Gurtovoy Reviewed-by: Sagi Grimberg --- drivers/infiniband/ulp/srp/ib_srp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c index 7672b19..30c3dfc 100644 --- a/drivers/infiniband/ulp/srp/ib_srp.c +++ b/drivers/infiniband/ulp/srp/ib_srp.c @@ -1503,7 +1503,7 @@ static int srp_map_idb(struct srp_rdma_ch *ch, struct srp_request *req, if (dev->use_fast_reg) { state.sg = idb_sg; - sg_set_buf(idb_sg, req->indirect_desc, idb_len); + sg_init_one(idb_sg, req->indirect_desc, idb_len); idb_sg->dma_address = req->indirect_dma_addr; /* hack! */ #ifdef CONFIG_NEED_SG_DMA_LENGTH idb_sg->dma_length = idb_sg->length; /* hack^2 */