diff options
author | Christophe Leroy <christophe.leroy@csgroup.eu> | 2022-06-28 16:43:35 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-08-17 14:22:58 +0200 |
commit | 552a29e47174f49bc47c7031162b79a16d40303c (patch) | |
tree | b7ef4c22685874b82229f824509664cdd56d50f7 /arch/powerpc/platforms | |
parent | 79da7a5f8f0b7c4fea85cace4410c225efbc8ca5 (diff) | |
download | linux-stable-552a29e47174f49bc47c7031162b79a16d40303c.tar.gz linux-stable-552a29e47174f49bc47c7031162b79a16d40303c.tar.bz2 linux-stable-552a29e47174f49bc47c7031162b79a16d40303c.zip |
powerpc/ptdump: Fix display of RW pages on FSL_BOOK3E
commit dd8de84b57b02ba9c1fe530a6d916c0853f136bd upstream.
On FSL_BOOK3E, _PAGE_RW is defined with two bits, one for user and one
for supervisor. As soon as one of the two bits is set, the page has
to be display as RW. But the way it is implemented today requires both
bits to be set in order to display it as RW.
Instead of display RW when _PAGE_RW bits are set and R otherwise,
reverse the logic and display R when _PAGE_RW bits are all 0 and
RW otherwise.
This change has no impact on other platforms as _PAGE_RW is a single
bit on all of them.
Fixes: 8eb07b187000 ("powerpc/mm: Dump linux pagetables")
Cc: stable@vger.kernel.org
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/0c33b96317811edf691e81698aaee8fa45ec3449.1656427391.git.christophe.leroy@csgroup.eu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/powerpc/platforms')
0 files changed, 0 insertions, 0 deletions