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

[Xen-changelog] [xen stable-4.4] xen/arm: mm: Do not dump the p2m when mapping a foreign gfn



commit 339f5743e84a28dd01ffa7498372e410301cd0b4
Author:     Julien Grall <julien.grall@xxxxxxxxxx>
AuthorDate: Thu Aug 13 12:03:43 2015 +0100
Commit:     Ian Campbell <ian.campbell@xxxxxxxxxx>
CommitDate: Wed Sep 2 14:03:39 2015 +0100

    xen/arm: mm: Do not dump the p2m when mapping a foreign gfn
    
    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@xxxxxxxxxx>
    Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
    (cherry picked from commit afc13fe5e21d18c09e44f8ae6f7f4484e9f1de7f)
---
 xen/arch/arm/mm.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/xen/arch/arm/mm.c b/xen/arch/arm/mm.c
index 308a798..1d14593 100644
--- a/xen/arch/arm/mm.c
+++ b/xen/arch/arm/mm.c
@@ -1065,7 +1065,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;
         }
--
generated by git-patchbot for /home/xen/git/xen.git#stable-4.4

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
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®.