From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933147AbaHYRvN (ORCPT ); Mon, 25 Aug 2014 13:51:13 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:60370 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932253AbaHYRvL (ORCPT ); Mon, 25 Aug 2014 13:51:11 -0400 Date: Mon, 25 Aug 2014 10:50:29 -0700 From: Greg Kroah-Hartman 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 Message-ID: <20140825175029.GA25551@kroah.com> References: <20140819123655.GC12160@sucs.org> <20140825093648.GB5046@mwanda> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 :( thanks, greg k-h