Patch "powerpc/mm: Use the correct pointer when setting a 2MB pte" has been added to the 4.9-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
powerpc/mm: Use the correct pointer when setting a 2MB pte
to the 4.9-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:
powerpc-mm-use-the-correct-pointer-when-setting-a-2mb-pte.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
a0615a16f7d0ceb5804d295203c302d496d8ee91Mon Sep 17 00:00:00 2001
From: Reza Arbab <[email protected]>
Date: Wed, 25 Jan 2017 09:54:33 -0600
Subject: powerpc/mm: Use the correct pointer when setting a 2MB pte
From: Reza Arbab <[email protected]>
commit a0615a16f7d0ceb5804d295203c302d496d8ee91 upstream.
When setting a 2MB pte, radix__map_kernel_page() is using the address
ptep = (pte_t *)pudp;
Fix this conversion to use pmdp instead. Use pmdp_ptep() to do this instead of casting the pointer.
--- arch/powerpc/mm/pgtable-radix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/powerpc/mm/pgtable-radix.c +2 -2
@@ -65,7 +65,7 @@ int radix__map_kernel_page(unsigned longif (!pmdp)return -ENOMEM ;if (map_page_size ==PMD_SIZE ) { - ptep = (pte_t *)pudp; + ptep =pmdp_ptep (pmdp); goto set_the_pte; } ptep =pte_alloc_kernel (pmdp, ea);
@@ -90,7 +90,7 @@ int radix__map_kernel_page(unsigned long } pmdp =pmd_offset (pudp, ea);if (map_page_size ==PMD_SIZE ) { - ptep = (pte_t *)pudp; + ptep =pmdp_ptep (pmdp); goto set_the_pte; }if (!pmd_present (*pmdp)) {
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/powerpc-mm-use-the-correct-pointer-when-setting-a-2mb-pte.patch