OpenCloudOS-Kernel/arch
Peter Xu c2da319c2e mm/uffd: sanity check write bit for uffd-wp protected ptes
Let's add one sanity check for CONFIG_DEBUG_VM on the write bit in
whatever chance we have when walking through the pgtables.  It can bring
the error earlier even before the app notices the data was corrupted on
the snapshot.  Also it helps us to identify this is a wrong pgtable setup,
so hopefully a great information to have for debugging too.

Link: https://lkml.kernel.org/r/20221114000447.1681003-3-peterx@redhat.com
Signed-off-by: Peter Xu <peterx@redhat.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Alistair Popple <apopple@nvidia.com>
Cc: Axel Rasmussen <axelrasmussen@google.com>
Cc: Mike Rapoport <rppt@linux.vnet.ibm.com>
Cc: Nadav Amit <nadav.amit@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2022-11-30 15:58:55 -08:00
..
alpha mm: remove kern_addr_valid() completely 2022-11-08 17:37:18 -08:00
arc mm: remove kern_addr_valid() completely 2022-11-08 17:37:18 -08:00
arm mm: remove kern_addr_valid() completely 2022-11-08 17:37:18 -08:00
arm64 mm: remove kern_addr_valid() completely 2022-11-08 17:37:18 -08:00
csky mm: remove kern_addr_valid() completely 2022-11-08 17:37:18 -08:00
hexagon mm: remove kern_addr_valid() completely 2022-11-08 17:37:18 -08:00
ia64 mm: remove kern_addr_valid() completely 2022-11-08 17:37:18 -08:00
loongarch Merge branch 'mm-hotfixes-stable' into mm-stable 2022-11-30 14:58:42 -08:00
m68k mm: remove kern_addr_valid() completely 2022-11-08 17:37:18 -08:00
microblaze mm: remove kern_addr_valid() completely 2022-11-08 17:37:18 -08:00
mips Merge branch 'mm-hotfixes-stable' into mm-stable 2022-11-30 14:58:42 -08:00
nios2 nios2: remove unused INIT_MMAP 2022-11-08 17:37:19 -08:00
openrisc mm: remove kern_addr_valid() completely 2022-11-08 17:37:18 -08:00
parisc mm/hwpoison: pass pfn to num_poisoned_pages_*() 2022-11-08 17:37:22 -08:00
powerpc mm: remove unused savedwrite infrastructure 2022-11-30 15:58:49 -08:00
riscv Merge branch 'mm-hotfixes-stable' into mm-stable 2022-11-30 14:58:42 -08:00
s390 mm: delay page_remove_rmap() until after the TLB has been flushed 2022-11-30 15:58:50 -08:00
sh mm: remove kern_addr_valid() completely 2022-11-08 17:37:18 -08:00
sparc Merge branch 'mm-hotfixes-stable' into mm-stable 2022-11-30 14:58:42 -08:00
um mm: remove kern_addr_valid() completely 2022-11-08 17:37:18 -08:00
x86 mm/uffd: sanity check write bit for uffd-wp protected ptes 2022-11-30 15:58:55 -08:00
xtensa mm: remove kern_addr_valid() completely 2022-11-08 17:37:18 -08:00
.gitignore
Kconfig - Yu Zhao's Multi-Gen LRU patches are here. They've been under test in 2022-10-10 17:53:04 -07:00