a4a708b
From: Julien Grall <julien.grall@citrix.com>
a4a708b
Date: Thu, 13 Aug 2015 12:03:43 +0100
a4a708b
Subject: [PATCH] xen/arm: mm: Do not dump the p2m when mapping a foreign gfn
a4a708b
a4a708b
The physmap operation XENMAPSPACE_gfmn_foreign is dumping the p2m when
a4a708b
an error occured by calling dump_p2m_lookup. But this function is not
a4a708b
using ratelimited printk.
a4a708b
a4a708b
Any domain able to map foreign gfmn would be able to flood the Xen
a4a708b
console.
a4a708b
a4a708b
The information wasn't not useful so drop it.
a4a708b
a4a708b
This is XSA-141.
a4a708b
a4a708b
Signed-off-by: Julien Grall <julien.grall@citrix.com>
a4a708b
Acked-by: Ian Campbell <ian.campbell@citrix.com>
a4a708b
---
a4a708b
 xen/arch/arm/mm.c | 1 -
a4a708b
 1 file changed, 1 deletion(-)
a4a708b
a4a708b
diff --git a/xen/arch/arm/mm.c b/xen/arch/arm/mm.c
a4a708b
index ae0f34c..d00d526 100644
a4a708b
--- a/xen/arch/arm/mm.c
a4a708b
+++ b/xen/arch/arm/mm.c
a4a708b
@@ -1114,7 +1114,6 @@ int xenmem_add_to_physmap_one(
a4a708b
         page = get_page_from_gfn(od, idx, &p2mt, P2M_ALLOC);
a4a708b
         if ( !page )
a4a708b
         {
a4a708b
-            dump_p2m_lookup(od, pfn_to_paddr(idx));
a4a708b
             rcu_unlock_domain(od);
a4a708b
             return -EINVAL;
a4a708b
         }
a4a708b
-- 
a4a708b
2.1.4
a4a708b