]> www.infradead.org Git - users/dwmw2/linux.git/commit
powerpc/book3e: Fix PUD allocation size in map_kernel_page()
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Thu, 23 Jun 2022 08:56:17 +0000 (10:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Jul 2022 15:52:15 +0000 (17:52 +0200)
commit68a34e478ad58af3b464d37cd14a4d136f1876b9
treed1eca03a9359eab6cfaa017acacc24da6a80c5c3
parente188bbdb92292cc7b13103c3e1be6b845ce24a3b
powerpc/book3e: Fix PUD allocation size in map_kernel_page()

commit 986481618023e18e187646b0fff05a3c337531cb upstream.

Commit 2fb4706057bc ("powerpc: add support for folded p4d page tables")
erroneously changed PUD setup to a mix of PMD and PUD. Fix it.

While at it, use PTE_TABLE_SIZE instead of PAGE_SIZE for PTE tables
in order to avoid any confusion.

Fixes: 2fb4706057bc ("powerpc: add support for folded p4d page tables")
Cc: stable@vger.kernel.org # v5.8+
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Acked-by: Mike Rapoport <rppt@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/95ddfd6176d53e6c85e13bd1c358359daa56775f.1655974558.git.christophe.leroy@csgroup.eu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/mm/nohash/book3e_pgtable.c