diff options
Diffstat (limited to 'emulators/xen-kernel/files/0008-xen-arm-mm-Do-not-dump-the-p2m-when-mapping-a-foreig.patch')
-rw-r--r-- | emulators/xen-kernel/files/0008-xen-arm-mm-Do-not-dump-the-p2m-when-mapping-a-foreig.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/emulators/xen-kernel/files/0008-xen-arm-mm-Do-not-dump-the-p2m-when-mapping-a-foreig.patch b/emulators/xen-kernel/files/0008-xen-arm-mm-Do-not-dump-the-p2m-when-mapping-a-foreig.patch new file mode 100644 index 000000000000..cbe26f888dd8 --- /dev/null +++ b/emulators/xen-kernel/files/0008-xen-arm-mm-Do-not-dump-the-p2m-when-mapping-a-foreig.patch @@ -0,0 +1,39 @@ +From 403805aca7a4a508cf193d63aa525b3a76bb09dd Mon Sep 17 00:00:00 2001 +From: Julien Grall <julien.grall@citrix.com> +Date: Fri, 9 Oct 2015 13:00:35 +0200 +Subject: [PATCH 8/8] 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@citrix.com> +Acked-by: Ian Campbell <ian.campbell@citrix.com> +(cherry picked from commit afc13fe5e21d18c09e44f8ae6f7f4484e9f1de7f) +--- + xen/arch/arm/mm.c | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/xen/arch/arm/mm.c b/xen/arch/arm/mm.c +index 7d4ba0c..7d95961 100644 +--- a/xen/arch/arm/mm.c ++++ b/xen/arch/arm/mm.c +@@ -1103,7 +1103,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; + } +-- +1.9.5 (Apple Git-50.3) + |