From: adam_richter2004@yahoo.com Subject: Re: linux-2.6.29-git1 + kubuntu-8.04 kvm = kernel oops Date: Mon, 8 Jun 2009 17:57:42 -0700 (PDT) Message-ID: <349272.44868.qm@web57708.mail.re3.yahoo.com> Reply-To: adam_richter2004@yahoo.com Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: kvm@vger.kernel.org To: Avi Kivity Return-path: Received: from web57708.mail.re3.yahoo.com ([68.142.236.71]:41889 "HELO web57708.mail.re3.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1755288AbZFIA5k convert rfc822-to-8bit (ORCPT ); Mon, 8 Jun 2009 20:57:40 -0400 Sender: kvm-owner@vger.kernel.org List-ID: On Mon, 6/8/09, Avi Kivity wrote: > Adam Richter wrote: > > Hi everyone, > > > > I have a qcow2 image that runs fine under kubuntu 8.04 > with kvm for kernels up to 2.6.29.=A0 However, for > 2.6.29-git1 and every kernel that I have tried thereafter > including 2.6.30-rc8-git1, I get a kernel oops when I try to > run kvm on this image. > > > > From the stack traces that I see, it is possible that > the bug is not in kvm, but rather in some filesystem > code.=A0 However, fs/ext3/inode.c was the only file in > fs/ext3 updated between 2.6.29 and 2.6.29-git1, and the > problem persisisted after I reverted that change in > 2.6.29-git1. > > > > I should also add that, on another Linux computer, > which is not running Kubuntu, I got a kernel oops when > trying to rsync an image I use with kvm when I was also > using a post-2.6.29 kernel.=A0 It is possible that I had > run kvm on that file since booting the computer and before > doing the rsync, but I am not sure.=A0 So, it is possible > that there might be bug where kvm somehow breaks dentry or > inode information, which results in an oops later in the > file system code, or it may still be possible that the bug > is purely a file system bug. > > > > I have done a few iterations of git bisect, but I do > not think I will have time to do the ~10 more that will be > necessary for it to converge (assuming no versions in the > middle with serious compilation problems).=A0 So, I am > posting this information now. > > > > The rest of this message is just information to help > anyone who thinks they recognize this bug to determine if > this is likely the same bug.=A0 I'll post a follow-up if > and when I complete the git bisect, assuming that I do not > learn that this problem has already been solved.=A0 If > anyone recognizes this problem as having a known fix, please > let me know so that I can stop duplicating your efforts. > > > >=A0=A0=A0 >=20 > This is a guest kernel oops, right? No.=A0 The host kernel gets the oops, causing the the "kvm" program to = exit with a fake kill signal from the kernel. I believe that the oops = occurs before the grub bootloader on the guest has started running, muc= h less booted any operating system. > When you change the kernel, do you mean the host kernel or > guest kernel? Host kernel. =20 > What arch and pae-ness are the guest and host running? The guest kernel that the target OS uses happens to be non-PAE, but I d= o not believe that the guest kernel is even copied into memory on the g= uest virtual machine before the kernel oops on the host computer. I have reproduced the problem with both PAE and non-PAE host configurat= ions of the same linux-2.6.30-rc8-git5 source tree. By the way, I apparently twice botched the git bisect search I was doin= g on this problem, and am in the process of trying for a third time. I= will let you know if and when I have a result from that. Thank you for considering this problem. Adam Richter =20