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] [patch] pv-on-hvm crash fix

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [patch] pv-on-hvm crash fix
From: Gerd Hoffmann <kraxel@xxxxxxxxxx>
Date: Wed, 23 May 2007 12:26:16 +0200
Delivery-date: Thu, 24 May 2007 10:08:23 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.10 (X11/20070302)
  Hi,

The attached patch sets the error field in the statically allocated frontend and backend bus structs. This is needed to make sure nobody ever tries to use them uninitialized. Without that patch you can kill your machine by trying to load xen-vnif or xen-vblk on native hardware.

please apply,

  Gerd
--- 
xenpv-3.1_15040/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe_backend.c.noxen
        2007-05-22 16:16:53.000000000 +0200
+++ 
xenpv-3.1_15040/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe_backend.c  
    2007-05-22 16:17:31.000000000 +0200
@@ -115,6 +115,7 @@
        .levels = 3,            /* backend/type/<frontend>/<id> */
        .get_bus_id = backend_bus_id,
        .probe = xenbus_probe_backend,
+       .error = -ENODEV,
        .bus = {
                .name     = "xen-backend",
                .match    = xenbus_match,
--- 
xenpv-3.1_15040/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c.noxen    
    2007-05-22 15:49:19.000000000 +0200
+++ xenpv-3.1_15040/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c      
2007-05-22 16:16:30.000000000 +0200
@@ -172,6 +172,7 @@
        .levels = 2,            /* device/type/<id> */
        .get_bus_id = frontend_bus_id,
        .probe = xenbus_probe_frontend,
+       .error = -ENODEV,
        .bus = {
                .name     = "xen",
                .match    = xenbus_match,
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [patch] pv-on-hvm crash fix, Gerd Hoffmann <=