WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: Crash when booting 32-bit kernel with pvgrub

To: Samuel Thibault <samuel.thibault@xxxxxxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Re: Crash when booting 32-bit kernel with pvgrub
From: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Date: Fri, 04 Sep 2009 15:08:05 -0700
Cc:
Delivery-date: Fri, 04 Sep 2009 15:08:51 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20090817124616.GB5470@xxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <4A85E8E1.6050208@xxxxxxxx> <20090817124616.GB5470@xxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.1) Gecko/20090814 Fedora/3.0-2.6.b3.fc11 Lightning/1.0pre Thunderbird/3.0b3
On 08/17/09 05:46, Samuel Thibault wrote:
> Jeremy Fitzhardinge, le Fri 14 Aug 2009 15:44:49 -0700, a écrit :
>   
>> I'm trying to boot a 32-bit PV guest on a 64-bit xen+dom0 system, and it
>> crashes as soon as I select a kernel:
>>
>>
>>   Booting 'Fedora (2.6.27.19-170.2.35.fc10.i686.PAE)'
>>
>> root (hd0,0)
>> Error ENOENT when reading the backend path device/vkbd/0/backend
>>     
> I guess you do not have pvfb enable?
>   

No.

>> Page fault at linear address 0x1c, eip 0x4b6ee, regs 0xb4ff7c, sp 0xb4fff0, 
>> our_sp 0xb4ff50, code 2
>> Thread: kbdfront
>>     
> Oops, dev->backend isn't allocated at this point and dev isn't zeroed,
> here is a patch.
>   

Unfortunately this didn't solve the problem for me; it looks unchanged
with the patch applied.

    J

> Samuel
>
>
> Zero kbdfront and fbfront dev structures to fix free_kbdfront() and
> free_fbfront() on error.
>
> Signed-Off-By: Samuel Thibault <samuel.thibault@xxxxxxxxxxxx>
>
> diff -r 41b2c4e4f674 extras/mini-os/fbfront.c
> --- a/extras/mini-os/fbfront.c        Wed Jul 29 09:20:46 2009 +0100
> +++ b/extras/mini-os/fbfront.c        Mon Aug 17 14:45:43 2009 +0200
> @@ -80,6 +80,7 @@
>      printk("******************* KBDFRONT for %s **********\n\n\n", nodename);
>  
>      dev = malloc(sizeof(*dev));
> +    memset(dev, 0, sizeof(*dev));
>      dev->nodename = strdup(nodename);
>  #ifdef HAVE_LIBC
>      dev->fd = -1;
> @@ -403,6 +404,7 @@
>      printk("******************* FBFRONT for %s **********\n\n\n", nodename);
>  
>      dev = malloc(sizeof(*dev));
> +    memset(dev, 0, sizeof(*dev));
>      dev->nodename = strdup(nodename);
>  #ifdef HAVE_LIBC
>      dev->fd = -1;
>
>   


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] Re: Crash when booting 32-bit kernel with pvgrub, Jeremy Fitzhardinge <=