From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752838Ab1HWK6W (ORCPT ); Tue, 23 Aug 2011 06:58:22 -0400 Received: from www.hansjkoch.de ([178.63.77.200]:48919 "EHLO www.hansjkoch.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751216Ab1HWK6S (ORCPT ); Tue, 23 Aug 2011 06:58:18 -0400 Date: Tue, 23 Aug 2011 12:57:42 +0200 From: "Hans J. Koch" To: Sebastian Andrzej Siewior Cc: Greg KH , "Michael S. Tsirkin" , "Hans J. Koch" , Chris Wright , Anthony Foiani , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Jesse Barnes , stable@kernel.org Subject: Re: [stable] [PATCH] uio/gen-pci: don't enable interrupts in ISR Message-ID: <20110823105727.GA29209@local> References: <20110804204606.GA19724@linutronix.de> <20110804210413.GA29222@redhat.com> <20110805001507.GA5987@local> <20110808062431.GB5182@redhat.com> <20110808171931.GB867@local> <20110809113743.GA32299@redhat.com> <20110809185341.GD4229@local> <20110810084012.GD13911@redhat.com> <20110823004943.GB29215@kroah.com> <20110823084005.GB20979@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110823084005.GB20979@linutronix.de> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 23, 2011 at 10:40:05AM +0200, Sebastian Andrzej Siewior wrote: > * Greg KH | 2011-08-22 17:49:43 [-0700]: > > >> > Cc: Anthony Foiani > > > >Why, it's not fixing a bug that anyone hits, right? > > "earlier" the interrupt handler was executed either with interrupts > enabled or disabled if IRQF_DISABLED was specified. Later the latter > become default even if IRQF_DISABLED was not specified. This lead to the > splat Anthony reported because the irq handler was entered with IRQs > disabled and the ISR enabled them via spin_unlock_irq(). My initial > patch simply used spin_unlock_irqrestore() (and its counterpart) to have > the same state as we had. > > So the bug Anthony hit was that the interrupts were enabled where they > should not be. > > >greg k-h > > Sebastian > Greg, I'll change the commit message so that it becomes clear, and send you a pull request. There is also one more UIO patch pending. Do you want a separate branch for -stable, or can you cherry-pick that from one UIO branch? Thanks, Hans