[PATCH -next 0/4]mm: page_table_check: add support on arm64 and riscv

Tong Tiangen posted 4 patches 4 years, 3 months ago
There is a newer version of this series
arch/arm64/Kconfig               |  1 +
arch/arm64/include/asm/pgtable.h | 63 ++++++++++++++++++++++++++++---
arch/riscv/Kconfig               |  1 +
arch/riscv/include/asm/pgtable.h | 64 +++++++++++++++++++++++++++++---
arch/x86/include/asm/pgtable.h   | 29 ++++++++++-----
include/linux/pgtable.h          | 27 ++++++++++----
mm/page_table_check.c            | 25 ++++---------
7 files changed, 164 insertions(+), 46 deletions(-)
[PATCH -next 0/4]mm: page_table_check: add support on arm64 and riscv
Posted by Tong Tiangen 4 years, 3 months ago
Page table check performs extra verifications at the time when new
pages become accessible from the userspace by getting their page
table entries (PTEs PMDs etc.) added into the table. It is supported
on X86[1].

This patchset made some simple changes and make it easier to support
new architecture, then we support this feature on ARM64 and RISCV.

[1]https://lore.kernel.org/lkml/20211123214814.3756047-1-pasha.tatashin@soleen.com/

Kefeng Wang (2):
  mm: page_table_check: move pxx_user_accessible_page into x86
  arm64: mm: add support for page table check

Tong Tiangen (2):
  mm: page_table_check: add hooks to public helpers
  riscv: mm: add support for page table check

 arch/arm64/Kconfig               |  1 +
 arch/arm64/include/asm/pgtable.h | 63 ++++++++++++++++++++++++++++---
 arch/riscv/Kconfig               |  1 +
 arch/riscv/include/asm/pgtable.h | 64 +++++++++++++++++++++++++++++---
 arch/x86/include/asm/pgtable.h   | 29 ++++++++++-----
 include/linux/pgtable.h          | 27 ++++++++++----
 mm/page_table_check.c            | 25 ++++---------
 7 files changed, 164 insertions(+), 46 deletions(-)

-- 
2.18.0.huawei.25