]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commitdiff
xen/arm: mm: Do not dump the p2m when mapping a foreign gfn
authorJulien Grall <julien.grall@citrix.com>
Thu, 13 Aug 2015 11:03:43 +0000 (12:03 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 2 Sep 2015 11:23:50 +0000 (12:23 +0100)
The physmap operation XENMAPSPACE_gfmn_foreign is dumping the p2m when
an error occured by calling dump_p2m_lookup. But this function is not
using ratelimited printk.

Any domain able to map foreign gfmn would be able to flood the Xen
console.

The information wasn't not useful so drop it.

This is XSA-141.

Signed-off-by: Julien Grall <julien.grall@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/mm.c

index d6f64cc97f65386e90b5f14ffac4e16c91b4688e..b5d8c856d6bef328eaae1e89f55df6052c0db1d2 100644 (file)
@@ -1114,7 +1114,6 @@ int xenmem_add_to_physmap_one(
         page = get_page_from_gfn(od, idx, &p2mt, P2M_ALLOC);
         if ( !page )
         {
-            dump_p2m_lookup(od, pfn_to_paddr(idx));
             rcu_unlock_domain(od);
             return -EINVAL;
         }