]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.10 and 3.4 patch fixups
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Aug 2014 17:55:56 +0000 (10:55 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Aug 2014 17:55:56 +0000 (10:55 -0700)
queue-3.10/x86-64-espfix-don-t-leak-bits-31-16-of-esp-returning-to-16-bit-stack.patch
queue-3.4/x86-64-espfix-don-t-leak-bits-31-16-of-esp-returning-to-16-bit-stack.patch

index 934e8f3786ac7a62f8f17c6bb53c431bbd20f523..d10e7bcfb1776a93245485030c93dd143803f012 100644 (file)
@@ -54,7 +54,6 @@ Cc: Arjan van de Ven <arjan.van.de.ven@intel.com>
 Cc: comex <comexk@gmail.com>
 Cc: Alexander van Heukelum <heukelum@fastmail.fm>
 Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
-Cc: <stable@vger.kernel.org> # consider after upstream merge
 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 
 ---
@@ -66,9 +65,9 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  arch/x86/kernel/espfix_64.c             |  208 ++++++++++++++++++++++++++++++++
  arch/x86/kernel/ldt.c                   |   11 -
  arch/x86/kernel/smpboot.c               |    7 +
- arch/x86/mm/dump_pagetables.c           |   31 +++-
+ arch/x86/mm/dump_pagetables.c           |   39 ++++--
  init/main.c                             |    4 
- 10 files changed, 316 insertions(+), 26 deletions(-)
+ 10 files changed, 324 insertions(+), 26 deletions(-)
 
 --- a/Documentation/x86/x86_64/mm.txt
 +++ b/Documentation/x86/x86_64/mm.txt
@@ -548,7 +547,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 +                                 width, st->start_address,
 +                                 width, st->current_address);
 +
-+                      delta = (st->current_address - st->start_address) >> 10;
++                      delta = (st->current_address - st->start_address);
 +                      while (!(delta & 1023) && unit[1]) {
 +                              delta >>= 10;
 +                              unit++;
@@ -562,6 +561,22 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  
                /*
                 * We print markers for special areas of address space,
+@@ -206,7 +215,15 @@ static void note_page(struct seq_file *m
+                * This helps in the interpretation.
+                */
+               if (st->current_address >= st->marker[1].start_address) {
++                      if (st->marker->max_lines &&
++                          st->lines > st->marker->max_lines) {
++                              unsigned long nskip =
++                                      st->lines - st->marker->max_lines;
++                              seq_printf(m, "... %lu entr%s skipped ... \n",
++                                         nskip, nskip == 1 ? "y" : "ies");
++                      }
+                       st->marker++;
++                      st->lines = 0;
+                       seq_printf(m, "---[ %s ]---\n", st->marker->name);
+               }
 --- a/init/main.c
 +++ b/init/main.c
 @@ -606,6 +606,10 @@ asmlinkage void __init start_kernel(void
index dcdfee546c7acc05eb3d047e2d3ba542c6798c8d..ae4891785f35b8bb351c012c751158c74c06449d 100644 (file)
@@ -54,7 +54,6 @@ Cc: Arjan van de Ven <arjan.van.de.ven@intel.com>
 Cc: comex <comexk@gmail.com>
 Cc: Alexander van Heukelum <heukelum@fastmail.fm>
 Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
-Cc: <stable@vger.kernel.org> # consider after upstream merge
 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 
 ---
@@ -66,9 +65,9 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  arch/x86/kernel/espfix_64.c             |  208 ++++++++++++++++++++++++++++++++
  arch/x86/kernel/ldt.c                   |   11 -
  arch/x86/kernel/smpboot.c               |    7 +
- arch/x86/mm/dump_pagetables.c           |   31 +++-
+ arch/x86/mm/dump_pagetables.c           |   39 ++++--
  init/main.c                             |    4 
- 10 files changed, 316 insertions(+), 26 deletions(-)
+ 10 files changed, 324 insertions(+), 26 deletions(-)
 
 --- a/Documentation/x86/x86_64/mm.txt
 +++ b/Documentation/x86/x86_64/mm.txt
@@ -549,7 +548,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 +                                 width, st->start_address,
 +                                 width, st->current_address);
 +
-+                      delta = (st->current_address - st->start_address) >> 10;
++                      delta = (st->current_address - st->start_address);
 +                      while (!(delta & 1023) && unit[1]) {
 +                              delta >>= 10;
 +                              unit++;
@@ -563,6 +562,22 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  
                /*
                 * We print markers for special areas of address space,
+@@ -206,7 +215,15 @@ static void note_page(struct seq_file *m
+                * This helps in the interpretation.
+                */
+               if (st->current_address >= st->marker[1].start_address) {
++                      if (st->marker->max_lines &&
++                          st->lines > st->marker->max_lines) {
++                              unsigned long nskip =
++                                      st->lines - st->marker->max_lines;
++                              seq_printf(m, "... %lu entr%s skipped ... \n",
++                                         nskip, nskip == 1 ? "y" : "ies");
++                      }
+                       st->marker++;
++                      st->lines = 0;
+                       seq_printf(m, "---[ %s ]---\n", st->marker->name);
+               }
 --- a/init/main.c
 +++ b/init/main.c
 @@ -606,6 +606,10 @@ asmlinkage void __init start_kernel(void