linux_dsm_epyc7002/arch/powerpc/mm/nohash
Christophe Leroy b61c38baa9 powerpc/8xx: Fix STRICT_KERNEL_RWX startup test failure
WRITE_RO lkdtm test works.

But when selecting CONFIG_DEBUG_RODATA_TEST, the kernel reports
	rodata_test: test data was not read only

This is because when rodata test runs, there are still old entries
in TLB.

Flush TLB after setting kernel pages RO or NX.

Fixes: d5f17ee964 ("powerpc/8xx: don't disable large TLBs with CONFIG_STRICT_KERNEL_RWX")
Cc: stable@vger.kernel.org # v5.1+
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/485caac75f195f18c11eb077b0031fdd2bb7fb9e.1587361039.git.christophe.leroy@c-s.fr
2020-04-22 20:23:41 +10:00
..
8xx.c powerpc/8xx: Fix STRICT_KERNEL_RWX startup test failure 2020-04-22 20:23:41 +10:00
40x.c powerpc/32: refactor pmd_offset(pud_offset(pgd_offset... 2020-02-26 10:34:40 +11:00
44x.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
book3e_hugetlbpage.c powerpc/mm: move FSL_BOOK3 version of update_mmu_cache() 2019-08-20 21:22:14 +10:00
book3e_pgtable.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
fsl_booke.c powerpc/fsl_booke/kaslr: clear the original kernel if randomized 2019-11-13 19:27:44 +11:00
kaslr_booke.c powerpc/fsl_booke/kaslr: support nokaslr cmdline parameter 2019-11-13 19:27:47 +11:00
Makefile powerpc/fsl_booke/32: implement KASLR infrastructure 2019-11-13 19:27:40 +11:00
mmu_context.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
tlb_low_64e.S treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
tlb_low.S powerpc/fsl_booke: Avoid creating duplicate tlb1 entry 2020-03-17 23:40:35 +11:00
tlb.c powerpc/mm: make ioremap_bot common to all 2019-08-27 13:03:34 +10:00