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

[Xen-changelog] [xen-3.2-testing] vtd: During parsing DMAR table, if find RMRR is incorrect, return error.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1216991057 -3600
# Node ID 6fa202b5b28ff6fb3869f1ef1f838ce8769ed4bb
# Parent  de80bf7a55cf1993514bea5ed39dbf28ec10503a
vtd: During parsing DMAR table, if find RMRR is incorrect, return error.

Signed-off-by: Weidong Han <weidong.han@xxxxxxxxx>
xen-unstable changeset: 18114:ba6be1571cc628298c5a0666f261b660fdcaeac0
xen-unstable date: Wed Jul 23 09:58:48 2008 +0100
---
 xen/arch/x86/hvm/vmx/vtd/dmar.c |    6 ++++++
 1 files changed, 6 insertions(+)

diff -r de80bf7a55cf -r 6fa202b5b28f xen/arch/x86/hvm/vmx/vtd/dmar.c
--- a/xen/arch/x86/hvm/vmx/vtd/dmar.c   Fri Jul 25 14:03:59 2008 +0100
+++ b/xen/arch/x86/hvm/vmx/vtd/dmar.c   Fri Jul 25 14:04:17 2008 +0100
@@ -436,6 +436,12 @@ acpi_parse_one_rmrr(struct acpi_dmar_ent
     struct acpi_rmrr_unit *rmrru;
     int ret = 0;
 
+    if ( rmrr->base_address >= rmrr->end_address )
+    {
+        dprintk(XENLOG_ERR VTDPREFIX, "RMRR is incorrect.\n");
+        return -EFAULT;
+    }
+
     rmrru = xmalloc(struct acpi_rmrr_unit);
     if ( !rmrru )
         return -ENOMEM;

_______________________________________________
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®.