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] xc_ptrace.c fix

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] xc_ptrace.c fix
From: Kip Macy <kip.macy@xxxxxxxxx>
Date: Sat, 2 Jul 2005 18:07:59 -0700
Delivery-date: Sun, 03 Jul 2005 01:06:51 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=EYjTP2Z1MA4G5Vv63X6bDem5dU8i15l5JdyYeTD+pnWxnp/WJlcjXtbZ710s3tK6OmsYV2SJluJrm3D8WGKpHWQakxexnuXC0PgDEoq6gSlA+FSGLLDmpeZYyXsUYPjRCyxVL7V3yEpMvbtjfr9BCYrpYY4rYgH/WzPBmfwj8tE=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Reply-to: Kip Macy <kip.macy@xxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Could you please apply the following trivial patch (yes I know, gmail
screws up whitespace). It fixes a crash in the gdbserver that can be
hit when debugging linux.


--- a/tools/libxc/xc_ptrace.c   Fri Jul  1 21:25:45 2005
+++ b/tools/libxc/xc_ptrace.c   Sun Jul  3 01:05:21 2005
@@ -200,7 +200,7 @@
                                             pde_phys[cpu] >>
PAGE_SHIFT)) == NULL)
            goto error_out;
     }
-    if ((page = pde_virt[cpu][vtopti(va)]) == 0) /* logical address */
+    if ((pde_virt[cpu] == NULL) || (page = pde_virt[cpu][vtopti(va)])
== 0) /* logical address */
        goto error_out;
     if (ctxt[cpu].flags & VGCF_VMX_GUEST)
         page = page_array[page >> PAGE_SHIFT] << PAGE_SHIFT;

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

<Prev in Thread] Current Thread [Next in Thread>