]> git.baikalelectronics.ru Git - kernel.git/commit
parisc: fix map_pages() to actually populate upper directory
authorMike Rapoport <rppt@linux.ibm.com>
Wed, 8 Jan 2020 12:58:52 +0000 (14:58 +0200)
committerHelge Deller <deller@gmx.de>
Tue, 14 Jan 2020 08:18:39 +0000 (09:18 +0100)
commit4ef577a07212c9714875f04ba743a15d98a5a4d7
tree1d03f28cbf92a5a0b484f816b12a5c0c9aeced5f
parent65aa136f956b1694cc4138881b94e19ca5630931
parisc: fix map_pages() to actually populate upper directory

The commit 899e6d6a453f ("parisc: use pgtable-nopXd instead of
4level-fixup") converted PA-RISC to use folded page tables, but it missed
the conversion of pgd_populate() to pud_populate() in maps_pages()
function. This caused the upper page table directory to remain empty and
the system would crash as a result.

Using pud_populate() that actually populates the page table instead of
dummy pgd_populate() fixes the issue.

Fixes: 899e6d6a453f ("parisc: use pgtable-nopXd instead of 4level-fixup")
Reported-by: Meelis Roos <mroos@linux.ee>
Reported-by: Jeroen Roovers <jer@gentoo.org>
Reported-by: Mikulas Patocka <mpatocka@redhat.com>
Tested-by: Jeroen Roovers <jer@gentoo.org>
Tested-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/mm/init.c