linux-stable/arch/powerpc/mm/nohash
Christophe Leroy 78cb0945f7 powerpc: Handle error in mark_rodata_ro() and mark_initmem_nx()
mark_rodata_ro() and mark_initmem_nx() use functions that can
fail like set_memory_nx() and set_memory_ro(), leading to a not
protected kernel.

In case of failure, panic.

Link: https://github.com/KSPP/linux/issues/7
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/b16329611deb89e1af505d43f0e2a91310584d26.1710587887.git.christophe.leroy@csgroup.eu
2024-03-17 13:33:21 +11:00
..
8xx.c powerpc: Handle error in mark_rodata_ro() and mark_initmem_nx() 2024-03-17 13:33:21 +11:00
40x.c powerpc/40x: Introduce _PAGE_READ and remove _PAGE_USER 2023-10-19 17:12:47 +11:00
44x.c powerpc/mm: Add __init attribute to eligible functions 2021-12-23 22:33:11 +11:00
Makefile powerpc: Remove CONFIG_PPC_FSL_BOOK3E 2022-09-26 23:00:13 +10:00
book3e_pgtable.c powerpc/nohash: Refactor declaration of {map/unmap}_kernel_page() 2023-10-19 17:12:44 +11:00
e500.c powerpc: Handle error in mark_rodata_ro() and mark_initmem_nx() 2024-03-17 13:33:21 +11:00
e500_hugetlbpage.c powerpc: Refactor update_mmu_cache_range() 2023-10-19 17:12:44 +11:00
kaslr_booke.c kexec: split crashkernel reservation code out from crash_core.c 2024-02-23 17:48:21 -08:00
kup.c powerpc/kuap: Use ASM feature fixups instead of static branches 2023-08-02 22:22:18 +10:00
mmu_context.c powerpc/mm: Make slice specific to book3s/64 2022-05-05 22:11:57 +10:00
tlb.c powerpc/47x: Remove early_init_mmu_47x() to fix no previous prototype 2023-08-18 17:03:14 +10:00
tlb_low.S powerpc: Remove CONFIG_PPC_FSL_BOOK3E 2022-09-26 23:00:13 +10:00
tlb_low_64e.S powerpc/nohash: Fix build with llvm-as 2023-02-16 23:53:15 +11:00