Skip to content

Record the mm_struct in the page table pages

Matthew Wilcox linux-arm-kernel linux-m68k linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7mm: Document x86 uses a linked list of pgdsinclude/linux/mm_types.h+7 -23 replies
2/7mm: Move pt_mm within struct pagearch/x86/mm/pgtable.c include/linux/mm_types.h+3 -52 replies
3/7arm: Thread mm_struct throughout page table allocationarch/arm/mm/mmu.c+32 -320 replies
4/7arm64: Thread mm_struct throughout page table allocationarch/arm64/mm/mmu.c+43 -461 reply
5/7m68k: Thread mm_struct throughout page table allocationarch/m68k/include/asm/motorola_pgalloc.h arch/m68k/mm/motorola.c+6 -61 reply
6/7mm: Set pt_mm in PTE constructorarch/arc/include/asm/pgalloc.h arch/arm/mm/mmu.c arch/arm64/mm/mmu.c +10 more+16 -131 reply
7/7mm: Set pt_mm in PMD constructorarch/arm64/include/asm/pgalloc.h arch/arm64/mm/mmu.c arch/powerpc/mm/book3s64/pgtable.c +4 more+17 -81 reply

Reviews trailers per patch

3 of 7 patches have a Reviewed-by or Acked-by.

PatchGeert UytterhoevenMark Rutland
1/7
2/7
3/7
4/7R-b
5/7R-b A-b
6/7R-b A-b
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/7] Record the mm_struct in the page table pages

From: "Matthew Wilcox (Oracle)" <[email protected]>

Pages which are in use as page tables have some space unused in struct page. It would be handy to have a pointer to the struct mm_struct that they belong to so that we can handle uncorrectable errors in page tables more gracefully. There are a few other things we could use it for too, such as checking that the page table entry actually belongs to the task we think it ought to. This patch series does none of that, but does lay the groundwork for it.

Matthew Wilcox (Oracle) (7):
mm: Document x86 uses a linked list of pgds
mm: Move pt_mm within struct page
arm: Thread mm_struct throughout page table allocation
arm64: Thread mm_struct throughout page table allocation
m68k: Thread mm_struct throughout page table allocation
mm: Set pt_mm in PTE constructor
mm: Set pt_mm in PMD constructor

 arch/arc/include/asm/pgalloc.h           |  2 +-
 arch/arm/mm/mmu.c                        | 66 ++++++++---------
 arch/arm64/include/asm/pgalloc.h         |  2 +-
 arch/arm64/mm/mmu.c                      | 93 ++++++++++++------------
 arch/m68k/include/asm/mcf_pgalloc.h      |  2 +-
 arch/m68k/include/asm/motorola_pgalloc.h | 10 +--
 arch/m68k/mm/motorola.c                  |  4 +-
 arch/openrisc/include/asm/pgalloc.h      |  2 +-
 arch/powerpc/mm/book3s64/pgtable.c       |  2 +-
 arch/powerpc/mm/pgtable-frag.c           |  2 +-
 arch/s390/include/asm/pgalloc.h          |  2 +-
 arch/s390/mm/pgalloc.c                   |  2 +-
 arch/sparc/mm/init_64.c                  |  2 +-
 arch/sparc/mm/srmmu.c                    |  2 +-
 arch/x86/include/asm/pgalloc.h           |  2 +-
 arch/x86/mm/pgtable.c                    |  3 +-
 arch/xtensa/include/asm/pgalloc.h        |  2 +-
 include/asm-generic/pgalloc.h            |  2 +-
 include/linux/mm.h                       | 18 ++++-
 include/linux/mm_types.h                 | 12 +--
 20 files changed, 122 insertions(+), 110 deletions(-)

base-commit: 6a8b55ed4056ea5559ebe4f6a4b247f627870d4c

Signature · 1 line
2.26.2