|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [IA64] vmx_vcpu_set_rr: check rid validity
# 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 <=
|
|
|
|
|