linux-stable/arch
Christophe Leroy 8b14b7ed0e powerpc/ptdump: Fix display of RW pages on FSL_BOOK3E
commit dd8de84b57 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: 8eb07b1870 ("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>
2022-08-25 11:11:30 +02:00
..
alpha tty: the rest, stop using tty_schedule_flip() 2022-07-29 17:06:52 +02:00
arc ARC: entry: fix syscall_trace_exit argument 2022-04-27 13:15:31 +02:00
arm ARM: dts: qcom: pm8841: add required thermal-sensor-cells 2022-08-25 11:11:15 +02:00
arm64 arm64: dts: qcom: msm8916: Fix typo in pronto remoteproc node 2022-08-25 11:11:15 +02:00
blackfin
c6x
cris
frv
h8300 h8300: fix PREEMPTION build, TI_PRE_COUNT undefined 2021-02-23 14:00:33 +01:00
hexagon hexagon: export raw I/O routines for modules 2021-11-26 11:40:40 +01:00
ia64 ia64, processor: fix -Wincompatible-pointer-types in ia64_get_irr() 2022-08-25 11:11:12 +02:00
m32r
m68k m68k: use fallback for random_get_entropy() instead of zero 2022-06-25 11:46:38 +02:00
metag
microblaze microblaze: Prevent the overflow of the start 2020-02-28 16:36:08 +01:00
mips MIPS: cpuinfo: Fix a warning for CONFIG_CPUMASK_OFFSTACK 2022-08-25 11:11:13 +02:00
mn10300
nios2 nios2: use fallback for random_get_entropy() instead of zero 2022-06-25 11:46:38 +02:00
openrisc openrisc: start CPU timer early in boot 2022-06-14 16:53:45 +02:00
parisc parisc: Fix device names in /proc/iomem 2022-08-25 11:11:12 +02:00
powerpc powerpc/ptdump: Fix display of RW pages on FSL_BOOK3E 2022-08-25 11:11:30 +02:00
s390 s390/archrandom: prevent CPACF trng invocations in interrupt context 2022-08-25 11:11:09 +02:00
score
sh mips,s390,sh,sparc: gup: Work around the "COW can break either way" issue 2022-01-27 09:01:01 +01:00
sparc sparc: use fallback for random_get_entropy() instead of zero 2022-06-25 11:46:39 +02:00
tile
um um: use fallback for random_get_entropy() instead of zero 2022-06-25 11:46:39 +02:00
unicore32
x86 KVM: x86: Avoid theoretical NULL pointer dereference in kvm_irq_delivery_to_apic_fast() 2022-08-25 11:11:30 +02:00
xtensa xtensa: Fix refcount leak bug in time.c 2022-07-02 16:18:09 +02:00
.gitignore
Kconfig x86: Make ARCH_USE_MEMREMAP_PROT a generic Kconfig symbol 2021-12-22 09:17:59 +01:00