From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933456AbaHYSFH (ORCPT ); Mon, 25 Aug 2014 14:05:07 -0400 Received: from mail-bn1blp0188.outbound.protection.outlook.com ([207.46.163.188]:20995 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933180AbaHYSFF convert rfc822-to-8bit (ORCPT ); Mon, 25 Aug 2014 14:05:05 -0400 From: KY Srinivasan To: Greg Kroah-Hartman CC: Dan Carpenter , Sitsofe Wheeler , Jason Wang , "linux-kernel@vger.kernel.org" , "David S. Miller" , Daniel Borkmann , "netdev@vger.kernel.org" , "devel@linuxdriverproject.org" , Haiyang Zhang Subject: RE: [hyperv] BUG at drivers/hv/channel.c:462 while changing MTU Thread-Topic: [hyperv] BUG at drivers/hv/channel.c:462 while changing MTU Thread-Index: AQHPu6pIm2pwB6mvJU2s1pqxWk+oepvhGNoAgACFPqCAAASxgIAAA/JQ Date: Mon, 25 Aug 2014 18:05:01 +0000 Message-ID: <47d946d0039f497f80a891bfa79c3920@BY2PR0301MB0711.namprd03.prod.outlook.com> References: <20140819123655.GC12160@sucs.org> <20140825093648.GB5046@mwanda> <20140825175029.GA25551@kroah.com> In-Reply-To: <20140825175029.GA25551@kroah.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [2001:4898:80e0:ee43::3] x-microsoft-antispam: BCL:0;PCL:0;RULEID:;UriScan:; x-forefront-prvs: 03142412E2 x-forefront-antispam-report: SFV:NSPM;SFS:(979002)(6009001)(377454003)(24454002)(51704005)(13464003)(189002)(199003)(74662001)(31966008)(74502001)(64706001)(99286002)(20776003)(108616004)(95666004)(85306004)(90102001)(76482001)(106356001)(86362001)(80022001)(106116001)(105586002)(92566001)(33646002)(4396001)(93886004)(46102001)(110136001)(2656002)(107046002)(79102001)(86612001)(77982001)(50986999)(54356999)(81542001)(76176999)(77096002)(101416001)(99396002)(81342001)(83322001)(19580405001)(21056001)(19580395003)(76576001)(83072002)(74316001)(87936001)(85852003)(24736002)(3826002)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:;SCL:1;SRVR:BY2PR0301MB0709;H:BY2PR0301MB0711.namprd03.prod.outlook.com;FPR:;MLV:ovrnspm;PTR:InfoNoRecords;MX:1;A:1;LANG:en; Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginatorOrg: microsoft.onmicrosoft.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Greg Kroah-Hartman [mailto:gregkh@linuxfoundation.org] > Sent: Monday, August 25, 2014 10:50 AM > To: KY Srinivasan > Cc: Dan Carpenter; Sitsofe Wheeler; Jason Wang; linux- > kernel@vger.kernel.org; David S. Miller; Daniel Borkmann; > netdev@vger.kernel.org; devel@linuxdriverproject.org; Haiyang Zhang > Subject: Re: [hyperv] BUG at drivers/hv/channel.c:462 while changing MTU > > On Mon, Aug 25, 2014 at 05:34:27PM +0000, KY Srinivasan wrote: > > > > > > > -----Original Message----- > > > From: Dan Carpenter [mailto:dan.carpenter@oracle.com] > > > Sent: Monday, August 25, 2014 2:37 AM > > > To: Sitsofe Wheeler > > > Cc: KY Srinivasan; Greg Kroah-Hartman; Jason Wang; linux- > > > kernel@vger.kernel.org; David S. Miller; Daniel Borkmann; > > > netdev@vger.kernel.org; devel@linuxdriverproject.org; Haiyang Zhang > > > Subject: Re: [hyperv] BUG at drivers/hv/channel.c:462 while changing > > > MTU > > > > > > The code here is: > > > > > > drivers/hv/channel.c > > > 460 BUG_ON(ret != 0); > > > 461 t = wait_for_completion_timeout(&info->waitevent, 5*HZ); > > > 462 BUG_ON(t == 0); > > > > > > So it calls BUG_ON() if the teardown takes more than 5 seconds. > > > It's most likely that there is a race condition somewhere. It's > > > also possible that it's just taking longer than 5 seconds for some > > > odd reason and the bug would go away if we raised it to 60 seconds. > > > > > > BUG_ON() after 5 seconds seems like a very aggressive thing. > > > > Dan, > > > > I am going to audit all BUG_ON() instances. > > Please remove them all, no kernel driver should ever crash the kernel and > not give a user a chance to recover :( I will clean this up. K. Y > > thanks, > > greg k-h