[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [patch] pv-on-hvm crash fix



  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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.