Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754689AbdC1QPK (ORCPT ); Tue, 28 Mar 2017 12:15:10 -0400 Received: from mail-sn1nam02on0137.outbound.protection.outlook.com ([104.47.36.137]:52544 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751734AbdC1QPG (ORCPT ); Tue, 28 Mar 2017 12:15:06 -0400 From: Stephen Hemminger To: Joseph Salisbury , Long Li CC: KY Srinivasan , "Martin K. Petersen" , Haiyang Zhang , "jejb@linux.vnet.ibm.com" , "devel@linuxdriverproject.org" , linux-scsi , LKML , "stable@vger.kernel.org" , Greg KH Subject: RE: [REGRESSION][Stable][v3.12.y][v4.4.y][v4.9.y][v4.10.y][v4.11-rc1] scsi: storvsc: properly set residual data length on errors Thread-Topic: [REGRESSION][Stable][v3.12.y][v4.4.y][v4.9.y][v4.10.y][v4.11-rc1] scsi: storvsc: properly set residual data length on errors Thread-Index: AQHSpzfVBcmfewnSnUKcX0kPzG79haGpP70wgAERCYCAAB06oA== Date: Tue, 28 Mar 2017 16:14:09 +0000 Message-ID: References: <5df6cd65-92d5-e4c5-56e3-771643f86861@canonical.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: canonical.com; dkim=none (message not signed) header.d=none;canonical.com; dmarc=none action=none header.from=microsoft.com; x-originating-ip: [204.195.18.65] x-microsoft-exchange-diagnostics: 1;MWHPR03MB2493;7:jAjqNTskQZ8FbkFfLoykxod2zzXiFS2NCN7dNc6rAsIkYYsUTUpN0Alr57BTTPgdHuDCml8rkAsiTKMO1JdXUoIw96XsFuQSo+8GMXe0EtwbbczBymUyVpregE1reGUSkKBjFgkMioGYpKPOsXnowpfgS0yteiEvfraBdwvrFYM4YNAmohm8u6hT6Lb9PSXaQSdTF+jFxu6zUuJikcFCAjnmJDEDsRVJAw53YPtMCcQlqICyVS7jYFvs23A0ZeLSDyzCQUu1zRJUCXY+XsmzQe/JBEDJs2g4mq+FG9caaO8vMWN7nA6K+aeaVgT/RfwHwCqXSk22If2xJa+5tJ84jXfP2tTlcIe9PvQ/jjEVD40= x-ms-office365-filtering-correlation-id: e0dced83-52b5-40d1-5fbe-08d475f57761 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(2017030254075)(48565401081);SRVR:MWHPR03MB2493; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(20558992708506)(9452136761055)(104084551191319)(146099531331640)(198206253151910); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(61425038)(6040375)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6055026)(61426038)(61427038)(6041248)(20161123562025)(20161123564025)(20161123555025)(20161123558025)(20161123560025)(6072148);SRVR:MWHPR03MB2493;BCL:0;PCL:0;RULEID:;SRVR:MWHPR03MB2493; x-forefront-prvs: 0260457E99 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(39450400003)(39860400002)(39840400002)(39850400002)(39410400002)(24454002)(43784003)(13464003)(377454003)(38730400002)(53376002)(2900100001)(33656002)(50986999)(229853002)(53366004)(8936002)(966004)(76176999)(54356999)(6246003)(8676002)(81166006)(4326008)(53936002)(122556002)(10290500002)(5005710100001)(5660300001)(2950100002)(189998001)(6636002)(7696004)(305945005)(7736002)(1720100001)(74316002)(6436002)(77096006)(99286003)(54906002)(55016002)(1511001)(2906002)(2561002)(6116002)(102836003)(3846002)(6306002)(66066001)(6506006)(25786009)(8990500004)(3660700001)(3280700002)(53546009)(86362001)(86612001)(9686003)(10090945008)(16193025007);DIR:OUT;SFP:1102;SCL:1;SRVR:MWHPR03MB2493;H:BLUPR0301MB2098.namprd03.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Mar 2017 16:14:09.4658 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR03MB2493 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id v2SGFkZW014931 Content-Length: 4142 Lines: 94 I decided not to send it to stable since problem was only observed on 4.11 but it is probably endemic to all GEN2 VM's -----Original Message----- From: Joseph Salisbury [mailto:joseph.salisbury@canonical.com] Sent: Tuesday, March 28, 2017 7:29 AM To: Stephen Hemminger ; Long Li Cc: KY Srinivasan ; Martin K. Petersen ; Haiyang Zhang ; jejb@linux.vnet.ibm.com; devel@linuxdriverproject.org; linux-scsi ; LKML ; stable@vger.kernel.org; Greg KH Subject: Re: [REGRESSION][Stable][v3.12.y][v4.4.y][v4.9.y][v4.10.y][v4.11-rc1] scsi: storvsc: properly set residual data length on errors On 03/27/2017 06:14 PM, Stephen Hemminger wrote: > Are you sure the real problem is not the one fixed by this commit? > > commit f1c635b439a5c01776fe3a25b1e2dc546ea82e6f > Author: Stephen Hemminger > Date: Tue Mar 7 09:15:53 2017 -0800 > > scsi: storvsc: Workaround for virtual DVD SCSI version > > Hyper-V host emulation of SCSI for virtual DVD device reports SCSI > version 0 (UNKNOWN) but is still capable of supporting REPORTLUN. > > Without this patch, a GEN2 Linux guest on Hyper-V will not boot 4.11 > successfully with virtual DVD ROM device. What happens is that the SCSI > scan process falls back to doing sequential probing by INQUIRY. But the > storvsc driver has a previous workaround that masks/blocks all errors > reports from INQUIRY (or MODE_SENSE) commands. This workaround causes > the scan to then populate a full set of bogus LUN's on the target and > then sends kernel spinning off into a death spiral doing block reads on > the non-existent LUNs. > > By setting the correct blacklist flags, the target with the DVD device > is scanned with REPORTLUN and that works correctly. > > Patch needs to go in current 4.11, it is safe but not necessary in older > kernels. > > Signed-off-by: Stephen Hemminger > Reviewed-by: K. Y. Srinivasan > Reviewed-by: Christoph Hellwig > Signed-off-by: Martin K. Petersen > > -----Original Message----- > From: Joseph Salisbury [mailto:joseph.salisbury@canonical.com] > Sent: Monday, March 27, 2017 1:22 PM > To: Long Li > Cc: KY Srinivasan ; Martin K. Petersen ; Haiyang Zhang ; Stephen Hemminger ; jejb@linux.vnet.ibm.com; devel@linuxdriverproject.org; linux-scsi ; LKML ; stable@vger.kernel.org; Greg KH > Subject: [REGRESSION][Stable][v3.12.y][v4.4.y][v4.9.y][v4.10.y][v4.11-rc1] scsi: storvsc: properly set residual data length on errors > > Hi Long Li, > > A kernel bug report was opened against Ubuntu [0]. After a kernel > bisect, it was found that reverting the following commit resolved this bug: > > commit 40630f462824ee24bc00d692865c86c3828094e0 > Author: Long Li > Date: Wed Dec 14 18:46:03 2016 -0800 > > scsi: storvsc: properly set residual data length on errors > > > The regression was introduced in mainline as of v4.11-rc1. It was also > cc'd to stable and has landed in v3.12.y, v4.4.y, v4.9.y and v4.10.y. > > > This regression seems pretty severe since it's preventing virtual > machines from booting. It's affecting a couple of users so far. I was > hoping to get your feedback, since you are the patch author. Do you > think gathering any additional data will help diagnose this issue, or > would it be best to submit a revert request? > > > Thanks, > > Joe > > > [0] http://pad.lv/1674635 > > Hi Stephen, Thanks again for pointing out commit f1c635b439a5c01776fe3a25b1e2dc546ea82e6f. It does indeed fix the bug. I noticed the commit was not cc'd to stable. Would it be possible to do that? Thanks, Joe