[PATCH v12 11/11] powerpc: mm: Support page table check

Pasha Tatashin pasha.tatashin at soleen.com
Wed Apr 3 17:16:54 PDT 2024


On Tue, Apr 2, 2024 at 1:13 AM Rohan McLure <rmclure at linux.ibm.com> wrote:
>
> On creation and clearing of a page table mapping, instrument such calls
> by invoking page_table_check_pte_set and page_table_check_pte_clear
> respectively. These calls serve as a sanity check against illegal
> mappings.
>
> Enable ARCH_SUPPORTS_PAGE_TABLE_CHECK for all platforms.
>
> See also:
>
> riscv support in commit 3fee229a8eb9 ("riscv/mm: enable
> ARCH_SUPPORTS_PAGE_TABLE_CHECK")
> arm64 in commit 42b2547137f5 ("arm64/mm: enable
> ARCH_SUPPORTS_PAGE_TABLE_CHECK")
> x86_64 in commit d283d422c6c4 ("x86: mm: add x86_64 support for page table
> check")
>
> Reviewed-by: Christophe Leroy <christophe.leroy at csgroup.eu>
> Signed-off-by: Rohan McLure <rmclure at linux.ibm.com>

Reviewed-by: Pasha Tatashin <pasha.tatashin at soleen.com>

Thank you for this work!

Pasha



More information about the linux-arm-kernel mailing list