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] [IA64] user process should not crash Xen.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [IA64] user process should not crash Xen.
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Sat, 18 Mar 2006 11:18:15 +0000
Delivery-date: Sat, 18 Mar 2006 11:20:41 +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 awilliam@xxxxxxxxxxx
# Node ID 3b877779e9a3522d83fde9dfe5d43d16b571dc17
# Parent  6270e89e1d4753c8cca3612084cfbc1450faa76f
[IA64] user process should not crash Xen.

Iip can't be used to check if domain is inside Xen because IIP is a user
register.  CPL must be used instead.

Signed-off-by: Tristan Gingold <tristan.gingold@xxxxxxxx>

diff -r 6270e89e1d47 -r 3b877779e9a3 xen/arch/ia64/xen/process.c
--- a/xen/arch/ia64/xen/process.c       Thu Mar  9 06:11:25 2006
+++ b/xen/arch/ia64/xen/process.c       Thu Mar  9 23:16:20 2006
@@ -286,7 +286,8 @@
-       if (IS_VMM_ADDRESS(iip)) {
+       if (!user_mode (regs)) {
+               /* The fault occurs inside Xen.  */
                if (!ia64_done_with_exception(regs)) {
                        // should never happen.  If it does, region 0 addr may
                        // indicate a bad xen pointer

Xen-changelog mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [IA64] user process should not crash Xen., Xen patchbot -unstable <=