Skip to content

tlb: Fix (soft-)dirty bit management & clean up API

Will Deacon linux-mm lkml 2 versions – Applied

Status from this message: The following commit has been merged into the core/mm branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest6 patches 2 repliesApplied
  2. v26 patches 3 repliesSuperseded

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/6mm: proc: Invalidate TLB after clearing soft-dirty page statefs/proc/task_mmu.c+5 -40 replies
2/6tlb: mmu_gather: Remove unused start/end arguments from tlb_finish_mmu()arch/ia64/include/asm/tlb.h arch/x86/kernel/ldt.c fs/exec.c +7 more+15 -190 replies
3/6tlb: mmu_gather: Introduce tlb_gather_mmu_fullmm()include/asm-generic/tlb.h include/linux/mm_types.h mm/mmap.c +1 more+20 -50 replies
4/6tlb: mmu_gather: Remove start/end arguments from tlb_gather_mmu()arch/ia64/include/asm/tlb.h arch/x86/kernel/ldt.c fs/exec.c +7 more+20 -410 replies
5/6tlb: arch: Remove empty __tlb_remove_tlb_entry() stubsarch/sparc/include/asm/tlb_64.h arch/x86/include/asm/tlb.h+0 -20 replies
6/6x86/ldt: Use tlb_gather_mmu_fullmm() when freeing LDT page-tablesarch/x86/kernel/ldt.c+7 -10 replies

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPeter Zijlstra (Intel)Yu ZhaoLinus Torvalds
SeriesA-b
1/6A-b R-b
2/6A-b R-b
3/6A-b R-b
4/6A-b R-b
5/6A-b R-b
6/6A-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/6] tlb: Fix (soft-)dirty bit management & clean up API

Hi everyone,

This is version three of the patches I previously posted here:

v1:  https://lore.kernel.org/r/[email protected]
v2:  https://lore.kernel.org/r/[email protected]

The objective is to fix the lacklustre TLB invalidation on the clear_refs path and then augment the mmu_gather API to make it more difficult to abuse.

Although there are other patch series pending to address related issues, I don't think this relatively straightforward set of fixes should be blocked on them.

Will

Cc Yu Zhao <[email protected]>
Cc Minchan Kim <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Linus Torvalds <[email protected]>
Cc Andrew Morton <[email protected]
Cc Vlastimil Babka <[email protected]>
Cc Mohamed Alzayat <[email protected]>
Cc "Aneesh Kumar K.V" <[email protected]>
Cc Nadav Amit <[email protected]>
Cc Andrea Arcangeli <[email protected]>

--->8

Will Deacon (6):
mm: proc: Invalidate TLB after clearing soft-dirty page state
tlb: mmu_gather: Remove unused start/end arguments from
tlb_finish_mmu()
tlb: mmu_gather: Introduce tlb_gather_mmu_fullmm()
tlb: mmu_gather: Remove start/end arguments from tlb_gather_mmu()
tlb: arch: Remove empty __tlb_remove_tlb_entry() stubs x86/ldt: Use tlb_gather_mmu_fullmm() when freeing LDT page-tables

 arch/ia64/include/asm/tlb.h     |  4 ++--
 arch/sparc/include/asm/tlb_64.h |  1 -
 arch/x86/include/asm/tlb.h      |  1 -
 arch/x86/kernel/ldt.c           | 10 ++++++++--
 fs/exec.c                       |  4 ++--
 fs/proc/task_mmu.c              |  9 +++++----
 include/asm-generic/tlb.h       |  6 ++++--
 include/linux/mm_types.h        |  7 +++----
 mm/hugetlb.c                    | 18 ++----------------
 mm/madvise.c                    | 12 ++++++------
 mm/memory.c                     |  8 ++++----
 mm/mmap.c                       |  8 ++++----
 mm/mmu_gather.c                 | 31 +++++++++++++++++--------------
 mm/oom_kill.c                   |  6 +++---
 14 files changed, 60 insertions(+), 65 deletions(-)
Signature · 1 line
2.30.0.365.g02bc693789-goog