]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.10-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Sep 2015 05:09:03 +0000 (22:09 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Sep 2015 05:09:03 +0000 (22:09 -0700)
added patches:
x86-mm-initialize-pmd_idx-in-page_table_range_init_count.patch

queue-3.10/series
queue-3.10/x86-mm-initialize-pmd_idx-in-page_table_range_init_count.patch [new file with mode: 0644]

index b8c1bf858319c69f2541bcb334100b656c6d4698..8d3ed1cb3b7c1dfa7d8447dea84c5e728b4e6b01 100644 (file)
@@ -11,3 +11,4 @@ alsa-hda-use-alc880_fixup_fujitsu-for-fsc-amilo-m1437.patch
 powerpc-mm-fix-pte_pagesize_index-crash-on-4k-w-64k-hash.patch
 powerpc-rtas-introduce-rtas_get_sensor_fast-for-irq-handlers.patch
 add-radeon-suspend-resume-quirk-for-hp-compaq-dc5750.patch
+x86-mm-initialize-pmd_idx-in-page_table_range_init_count.patch
diff --git a/queue-3.10/x86-mm-initialize-pmd_idx-in-page_table_range_init_count.patch b/queue-3.10/x86-mm-initialize-pmd_idx-in-page_table_range_init_count.patch
new file mode 100644 (file)
index 0000000..d2c7797
--- /dev/null
@@ -0,0 +1,38 @@
+From 9962eea9e55f797f05f20ba6448929cab2a9f018 Mon Sep 17 00:00:00 2001
+From: Minfei Huang <mnfhuang@gmail.com>
+Date: Sun, 12 Jul 2015 20:18:42 +0800
+Subject: x86/mm: Initialize pmd_idx in page_table_range_init_count()
+
+From: Minfei Huang <mnfhuang@gmail.com>
+
+commit 9962eea9e55f797f05f20ba6448929cab2a9f018 upstream.
+
+The variable pmd_idx is not initialized for the first iteration of the
+for loop.
+
+Assign the proper value which indexes the start address.
+
+Fixes: 719272c45b82 'x86, mm: only call early_ioremap_page_table_range_init() once'
+Signed-off-by: Minfei Huang <mnfhuang@gmail.com>
+Cc: tony.luck@intel.com
+Cc: wangnan0@huawei.com
+Cc: david.vrabel@citrix.com
+Reviewed-by: yinghai@kernel.org
+Link: http://lkml.kernel.org/r/1436703522-29552-1-git-send-email-mhuang@redhat.com
+Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ arch/x86/mm/init_32.c |    1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/arch/x86/mm/init_32.c
++++ b/arch/x86/mm/init_32.c
+@@ -137,6 +137,7 @@ page_table_range_init_count(unsigned lon
+       vaddr = start;
+       pgd_idx = pgd_index(vaddr);
++      pmd_idx = pmd_index(vaddr);
+       for ( ; (pgd_idx < PTRS_PER_PGD) && (vaddr != end); pgd_idx++) {
+               for (; (pmd_idx < PTRS_PER_PMD) && (vaddr != end);