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] [IA64] vmx_vcpu_set_rr: check rid validity

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [IA64] vmx_vcpu_set_rr: check rid validity
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 27 Apr 2006 10:32:43 +0000
Delivery-date: Thu, 27 Apr 2006 03:40:16 -0700
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@xxxxxxxxxxx
# Node ID b5c2dba60b6907ffdec48b78b69528f4193f1513
# Parent  96bc87dd7ca9623ecbd4bd7edd99871dba09a2b6
[IA64] vmx_vcpu_set_rr: check rid validity

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

diff -r 96bc87dd7ca9 -r b5c2dba60b69 xen/arch/ia64/vmx/vmx_vcpu.c
--- a/xen/arch/ia64/vmx/vmx_vcpu.c      Fri Apr 14 14:20:04 2006 -0600
+++ b/xen/arch/ia64/vmx/vmx_vcpu.c      Fri Apr 14 14:21:54 2006 -0600
@@ -210,8 +210,11 @@ IA64FAULT vmx_vcpu_set_rr(VCPU *vcpu, UI
     ia64_rr oldrr,newrr;
     thash_cb_t *hcb;
     extern void * pal_vaddr;
+
     vcpu_get_rr(vcpu, reg, &oldrr.rrval);
     newrr.rrval=val;
+    if (newrr.rid >= (1 << vcpu->domain->arch.rid_bits))
+        panic_domain (NULL, "use of invalid rid %lx\n", newrr.rid);
     if(oldrr.ps!=newrr.ps){
         hcb = vmx_vcpu_get_vtlb(vcpu);
         thash_purge_all(hcb);

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [IA64] vmx_vcpu_set_rr: check rid validity, Xen patchbot -unstable <=