[PATCH 0/3] page table check fixes and cleanups

From: Pasha Tatashin
Date: Wed Jan 19 2022 - 23:25:20 EST


Two fixes:

mm/debug_vm_pgtable: remove pte entry from the page table
- remove a pte entry from the page table at the end of debug_vm_pgtable pte test

mm/page_table_check: check entries at pud and pmd levels
- check pmd and pud levels in page_table_check for regular entries not only for
huge pages when entries are replaced or cleared.
repro.c: https://gist.github.com/soleen/fdcd501d5df103976245fe84e9535087
config: https://gist.github.com/soleen/8a56f923c2fea9ce9c75b4e2517d4162
qemu_script: https://gist.github.com/soleen/f4be4795826b7ab1a51ae659582e179c
base image:
https://storage.googleapis.com/syzkaller/wheezy.img
https://storage.googleapis.com/syzkaller/wheezy.img.key

Small cleanup:
mm/page_table_check: use unsigned long for page counters

Pasha Tatashin (3):
mm/debug_vm_pgtable: remove pte entry from the page table
mm/page_table_check: check entries at pud and pmd levels
mm/page_table_check: use unsigned long for page counters

mm/debug_vm_pgtable.c | 1 +
mm/page_table_check.c | 60 ++++++++++++++++++++++++++++++++++++++++---
2 files changed, 57 insertions(+), 4 deletions(-)

--
2.34.1.703.g22d0c6ccf7-goog