From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gerd Hoffmann Subject: [patch] pv-on-hvm crash fix Date: Wed, 23 May 2007 12:26:16 +0200 Message-ID: <465416C8.1060209@redhat.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------060808040306000707090703" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------060808040306000707090703 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 --------------060808040306000707090703 Content-Type: text/x-patch; name="xenpv-noxen.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="xenpv-noxen.diff" --- 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// */ .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/ */ .get_bus_id = frontend_bus_id, .probe = xenbus_probe_frontend, + .error = -ENODEV, .bus = { .name = "xen", .match = xenbus_match, --------------060808040306000707090703 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------060808040306000707090703--