aboutsummaryrefslogtreecommitdiff
path: root/system/xen/xsa/xsa251.patch
diff options
context:
space:
mode:
authorMario Preksavec <mario@slackware.hr>2017-12-14 02:37:37 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-12-16 07:32:13 +0700
commit83300a98e0acfbd286414f7765497ab5743cff01 (patch)
tree8308a482925cdff150b296ec1e2ac7307072979b /system/xen/xsa/xsa251.patch
parent2acfdbef50be3643842190f87b5be89181e27839 (diff)
system/xen: XSA 246-251 update.
Signed-off-by: Mario Preksavec <mario@slackware.hr>
Diffstat (limited to 'system/xen/xsa/xsa251.patch')
-rw-r--r--system/xen/xsa/xsa251.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/system/xen/xsa/xsa251.patch b/system/xen/xsa/xsa251.patch
new file mode 100644
index 0000000000000..582ef622eb1a2
--- /dev/null
+++ b/system/xen/xsa/xsa251.patch
@@ -0,0 +1,21 @@
+From: Jan Beulich <jbeulich@suse.com>
+Subject: x86/paging: don't unconditionally BUG() on finding SHARED_M2P_ENTRY
+
+PV guests can fully control the values written into the P2M.
+
+This is XSA-251.
+
+Signed-off-by: Jan Beulich <jbeulich@suse.com>
+Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
+
+--- a/xen/arch/x86/mm/paging.c
++++ b/xen/arch/x86/mm/paging.c
+@@ -274,7 +274,7 @@ void paging_mark_pfn_dirty(struct domain
+ return;
+
+ /* Shared MFNs should NEVER be marked dirty */
+- BUG_ON(SHARED_M2P(pfn_x(pfn)));
++ BUG_ON(paging_mode_translate(d) && SHARED_M2P(pfn_x(pfn)));
+
+ /*
+ * Values with the MSB set denote MFNs that aren't really part of the