]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
added xen patch
authorGreg Kroah-Hartman <gregkh@suse.de>
Mon, 30 Jun 2008 16:10:04 +0000 (09:10 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 30 Jun 2008 16:10:04 +0000 (09:10 -0700)
queue-2.6.25/series
queue-2.6.25/tty-fix-for-tty-operations-bugs.patch
queue-2.6.25/xen-mask-unwanted-pte-bits-in-__supported_pte_mask.patch [new file with mode: 0644]

index 797334a9eff1de8024467c117c4c4c6acf85e534..1118e330deabffad79fc23724f9fb8b5d5c6abd5 100644 (file)
@@ -1 +1,2 @@
 tty-fix-for-tty-operations-bugs.patch
+xen-mask-unwanted-pte-bits-in-__supported_pte_mask.patch
index d6b68603d494568c99e0478593f56bac80e56d68..92459aa92c4211c55ee82e496203040725ce4265 100644 (file)
@@ -2,7 +2,7 @@ From alan@lxorguk.ukuu.org.uk Fri Jun 27 07:39:26 2008
 From: Alan Cox <alan@lxorguk.ukuu.org.uk>
 Date: Fri, 27 Jun 2008 15:21:55 +0100
 Subject: TTY: fix for tty operations bugs
-To: vendor-sec@lst.de, greg@kroah.com
+To: greg@kroah.com
 Message-ID: <20080627152155.50f0ebae@lxorguk.ukuu.org.uk>
 
 This is fixed with the recent tty operations rewrite in mainline in a
diff --git a/queue-2.6.25/xen-mask-unwanted-pte-bits-in-__supported_pte_mask.patch b/queue-2.6.25/xen-mask-unwanted-pte-bits-in-__supported_pte_mask.patch
new file mode 100644 (file)
index 0000000..a495787
--- /dev/null
@@ -0,0 +1,52 @@
+From stable-bounces@linux.kernel.org Mon Jun 23 16:30:37 2008
+From: Jeremy Fitzhardinge <jeremy@goop.org>
+Date: Mon, 23 Jun 2008 23:30:20 GMT
+Subject: xen: mask unwanted pte bits in __supported_pte_mask
+To: jejb@kernel.org, stable@kernel.org
+Message-ID: <200806232330.m5NNUKHK010393@hera.kernel.org>
+
+From: Jeremy Fitzhardinge <jeremy@goop.org>
+
+commit 05345b0f006ac226d0d25d48fcb2d792ac44a071 upstream
+
+[ Stable: this isn't a bugfix in itself, but it's a pre-requiste
+  for "xen: don't drop NX bit" ]
+
+Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
+Cc: the arch/x86 maintainers <x86@kernel.org>
+Signed-off-by: Ingo Molnar <mingo@elte.hu>
+Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
+
+---
+ arch/x86/xen/enlighten.c |    5 +++++
+ arch/x86/xen/mmu.c       |    4 +---
+ 2 files changed, 6 insertions(+), 3 deletions(-)
+
+--- a/arch/x86/xen/enlighten.c
++++ b/arch/x86/xen/enlighten.c
+@@ -1214,6 +1214,11 @@ asmlinkage void __init xen_start_kernel(
+       if (xen_feature(XENFEAT_supervisor_mode_kernel))
+               pv_info.kernel_rpl = 0;
++      /* Prevent unwanted bits from being set in PTEs. */
++      __supported_pte_mask &= ~_PAGE_GLOBAL;
++      if (!is_initial_xendomain())
++              __supported_pte_mask &= ~(_PAGE_PWT | _PAGE_PCD);
++
+       /* set the limit of our address space */
+       xen_reserve_top();
+--- a/arch/x86/xen/mmu.c
++++ b/arch/x86/xen/mmu.c
+@@ -244,10 +244,8 @@ unsigned long long xen_pgd_val(pgd_t pgd
+ pte_t xen_make_pte(unsigned long long pte)
+ {
+-      if (pte & _PAGE_PRESENT) {
++      if (pte & _PAGE_PRESENT)
+               pte = phys_to_machine(XPADDR(pte)).maddr;
+-              pte &= ~(_PAGE_PCD | _PAGE_PWT);
+-      }
+       return (pte_t){ .pte = pte };
+ }