This is a note to let you know that I've just added the patch titled x86/mm: Initialize pmd_idx in page_table_range_init_count() to the 4.1-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: x86-mm-initialize-pmd_idx-in-page_table_range_init_count.patch and it can be found in the queue-4.1 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 9962eea9e55f797f05f20ba6448929cab2a9f018 Mon Sep 17 00:00:00 2001 From: Minfei Huang <mnfhuang@xxxxxxxxx> 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@xxxxxxxxx> 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@xxxxxxxxx> Cc: tony.luck@xxxxxxxxx Cc: wangnan0@xxxxxxxxxx Cc: david.vrabel@xxxxxxxxxx Reviewed-by: yinghai@xxxxxxxxxx Link: http://lkml.kernel.org/r/1436703522-29552-1-git-send-email-mhuang@xxxxxxxxxx Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- 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); Patches currently in stable-queue which might be from mnfhuang@xxxxxxxxx are queue-4.1/x86-mm-initialize-pmd_idx-in-page_table_range_init_count.patch -- To unsubscribe from this list: send the line "unsubscribe stable" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html