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/
Home Products Support Community News


[Xen-changelog] [xen-unstable] [IA64] Fix Xen crash when creating VTI do

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [IA64] Fix Xen crash when creating VTI domain
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 09 Feb 2007 09:40:18 -0800
Delivery-date: Fri, 09 Feb 2007 09:46:47 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User awilliam@xxxxxxxxxxxx
# Date 1169579222 25200
# Node ID 10dd3c907ca772a4a7134543427f8e847ab01d90
# Parent  b59b6173455d0034503bae93a5f98e887ba51873
[IA64] Fix Xen crash when creating VTI domain

Xend will do a hypercall to destory domain when creating VTI guest fails.
If "is_vti" is not set at that point, HV will call relinquish_vcpu_resource(),
which is for non-VTI. It may try to free a NULL pointer, so dom0 crash.
This patch fix it.

Signed-off-by: Xu Anthony <Anthony.xu@xxxxxxxxx>
Signed-off-by: Zhang Xin <xing.z.zhang@xxxxxxxxx>
 xen/arch/ia64/xen/vhpt.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)

diff -r b59b6173455d -r 10dd3c907ca7 xen/arch/ia64/xen/vhpt.c
--- a/xen/arch/ia64/xen/vhpt.c  Tue Jan 23 12:01:38 2007 -0700
+++ b/xen/arch/ia64/xen/vhpt.c  Tue Jan 23 12:07:02 2007 -0700
@@ -177,7 +177,9 @@ void
 pervcpu_vhpt_free(struct vcpu *v)
-       free_domheap_pages(v->arch.vhpt_page, VHPT_SIZE_LOG2 - PAGE_SHIFT);
+       if (likely(v->arch.vhpt_page != NULL))
+               free_domheap_pages(v->arch.vhpt_page,
+                                  VHPT_SIZE_LOG2 - PAGE_SHIFT);

Xen-changelog mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [IA64] Fix Xen crash when creating VTI domain, Xen patchbot-unstable <=