linux/arch/powerpc/mm/ptdump
Christophe Leroy d80ae83f1f powerpc/ptdump: Fix W+X verification
Verification cannot rely on simple bit checking because on some
platforms PAGE_RW is 0, checking that a page is not W means
checking that PAGE_RO is set instead of checking that PAGE_RW
is not set.

Use pte helpers instead of checking bits.

Fixes: 453d87f6a8 ("powerpc/mm: Warn if W+X pages found on boot")
Cc: stable@vger.kernel.org # v5.2+
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/0d894839fdbb19070f0e1e4140363be4f2bb62fc.1578989540.git.christophe.leroy@c-s.fr
2020-01-23 21:31:13 +11:00
..
8xx.c powerpc: Move page table dump files in a dedicated subdirectory 2019-02-22 22:29:22 +11:00
Makefile powerpc: Move page table dump files in a dedicated subdirectory 2019-02-22 22:29:22 +11:00
bats.c powerpc/32s: get rid of CPU_FTR_601 feature 2019-08-28 23:19:33 +10:00
book3s64.c powerpc: Move page table dump files in a dedicated subdirectory 2019-02-22 22:29:22 +11:00
hashpagetable.c powerpc/ptdump: drop non vital #ifdefs 2019-08-20 21:22:09 +10:00
ptdump.c powerpc/ptdump: Fix W+X verification 2020-01-23 21:31:13 +11:00
ptdump.h powerpc: Move page table dump files in a dedicated subdirectory 2019-02-22 22:29:22 +11:00
segment_regs.c powerpc: Move page table dump files in a dedicated subdirectory 2019-02-22 22:29:22 +11:00
shared.c powerpc: Move page table dump files in a dedicated subdirectory 2019-02-22 22:29:22 +11:00