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-changelog

[Xen-changelog] Turn off debug output for NaTpage consumption when ifa==

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Turn off debug output for NaTpage consumption when ifa==0.
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 21 Dec 2005 20:42:11 +0000
Delivery-date: Wed, 21 Dec 2005 20:45:51 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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 djm@xxxxxxxxxxxxxxx
# Node ID 7ef565a7cc8612548f41833e33045b033fb89729
# Parent  e1ae4b162128f5b16c626d77c25215a37f9da6e7
Turn off debug output for NaTpage consumption when ifa==0.
In RHEL4, __strcpy_from_user seems to do this a lot (legally)
and the massive debug output may hide other errors.

diff -r e1ae4b162128 -r 7ef565a7cc86 xen/arch/ia64/xen/process.c
--- a/xen/arch/ia64/xen/process.c       Thu Dec 15 22:17:04 2005
+++ b/xen/arch/ia64/xen/process.c       Thu Dec 15 23:17:06 2005
@@ -743,6 +743,13 @@
                        printf("ia64_handle_reflection: handling regNaT fault");
                        vector = IA64_NAT_CONSUMPTION_VECTOR; break;
                }
+#if 1
+               // pass null pointer dereferences through with no error
+               // but retain debug output for non-zero ifa
+               if (!ifa) {
+                       vector = IA64_NAT_CONSUMPTION_VECTOR; break;
+               }
+#endif
 printf("*** NaT fault... attempting to handle as privop\n");
 printf("isr=%p, ifa=%p,iip=%p,ipsr=%p\n",isr,ifa,regs->cr_iip,psr);
                //regs->eml_unat = 0;  FIXME: DO WE NEED THIS???

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Turn off debug output for NaTpage consumption when ifa==0., Xen patchbot -unstable <=