[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [IA64] user process should not crash Xen.



# 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 @@
                
vcpu_itc_no_srlz(current,is_data?2:1,address,pteval,-1UL,(itir>>2)&0x3f);
                return;
        }
-       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
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.