From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Subject: Re: [PATCH] virtio_console: Don't access uninitialized data. Date: Tue, 5 Feb 2013 18:22:50 -0800 Message-ID: <20130206022250.GA1533__11696.630009874$1360117482$gmane$org@kroah.com> References: <1358425292-4449-1-git-send-email-sjur.brandeland@stericsson.com> <20130125090801.GA30483@amit.redhat.com> <87vca9klwm.fsf@rustcorp.com.au> <20130204063251.GB32509@amit.redhat.com> <871ucul2wr.fsf@rustcorp.com.au> <20130206014015.GB816@kroah.com> <5111BCA3.4040303@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <5111BCA3.4040303@cn.fujitsu.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: virtualization-bounces@lists.linux-foundation.org Errors-To: virtualization-bounces@lists.linux-foundation.org To: Wanlong Gao Cc: "Michael S. Tsirkin" , stable@vger.kernel.org, virtualization@lists.linux-foundation.org, Amit Shah , sjur.brandeland@stericsson.com List-Id: virtualization@lists.linuxfoundation.org On Wed, Feb 06, 2013 at 10:14:59AM +0800, Wanlong Gao wrote: > On 02/06/2013 09:40 AM, Greg KH wrote: > > On Wed, Feb 06, 2013 at 10:38:36AM +1030, Rusty Russell wrote: > >> Amit Shah writes: > >>> On (Mon) 04 Feb 2013 [10:09:05], Rusty Russell wrote: > >>>> Amit Shah writes: > >>>>> On (Thu) 17 Jan 2013 [13:21:32], sjur.brandeland@stericsson.com wro= te: > >>>>>> From: Sjur Br=E6ndeland > >>>>>> > >>>>>> Don't access uninitialized work-queue when removing device. > >>>>>> The work queue is initialized only if the device multi-queue. > >>>>>> So don't call cancel_work unless this is a multi-queue device. > >>>>>> > >>>>>> This fixes the following panic: > >>>>> > >>>>> [snip] > >>>>> > >>>>>> Signed-off-by: Sjur Br=E6ndeland > >>>>> > >>>>> Acked-by: Amit Shah > >>>>> > >>>>>> This fix is intended of v3.8. > >>>>> > >>>>> Should also be CC'ed to stable@ > >> ... > >>>> I've already sent it to Linus. Sjur said: "This fix is intended of > >>>> v3.8.". If it needs to be in -stable, please tell me and I'll fwd it > >>>> manually. > >>> > >>> This can result in a panic when removing the device or module (when > >>> not using multiport). I'd vote for submitting to stable. > >>> > >>> Amit > >> > >> OK stable, please cherry-pick from Linus' tree: > >> > >> commit b26ada9abe26290b1dcd06075935b977548c50db > >> Author: Sjur Br=E6ndeland > >> Date: Tue Jan 22 09:50:26 2013 +1030 > >> > >> virtio_console: Don't access uninitialized data. > > = > > $ git show b26ada9abe26290b1dcd06075935b977548c50db > > fatal: bad object b26ada9abe26290b1dcd06075935b977548c50db > > = > > What am I missing here? > = > It seems just in rusty's tree but not in linus' tree. > http://git.kernel.org/?p=3Dlinux/kernel/git/rusty/linux.git;a=3Dcommitdif= f;h=3Db26ada9abe26290b1dcd06075935b977548c50db Sorry, I can't do anything with that, it needs to be in Linus's tree. Please read Documentation/stable_kernel_rules.txt for the details. If someone can resend this when it does get into Linus's tree, I'll be glad to queue it up. thanks, greg k-h