parisc: Remap hugepage-aligned pages in set_kernel_text_rw()
authorHelge Deller <deller@gmx.de>
Fri, 4 Jan 2019 22:32:53 +0000 (23:32 +0100)
committerHelge Deller <deller@gmx.de>
Fri, 4 Jan 2019 23:39:30 +0000 (00:39 +0100)
commitdfbaecb2b707cfdc5276b548d52b437384bd6483
tree355417d44713e46a8f3465bec980ac04ed851275
parent0b2c8f8b6b0c7530e2866c95862546d0da2057b0
parisc: Remap hugepage-aligned pages in set_kernel_text_rw()

The alternative coding patch for parisc in kernel 4.20 broke booting
machines with PA8500-PA8700 CPUs. The problem is, that for such machines
the parisc kernel automatically utilizes huge pages to access kernel
text code, but the set_kernel_text_rw() function, which is used shortly
before applying any alternative patches, didn't used the correctly
hugepage-aligned addresses to remap the kernel text read-writeable.

Fixes: 3847dab77421 ("parisc: Add alternative coding infrastructure")
Cc: <stable@vger.kernel.org> [4.20]
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/mm/init.c