Skip to content

fix several TLB batch races

Minchan Kim linux-arch linux-mm lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 11 repliesIn review
  2. v13 patches 2 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4mm: refactoring TLB gathering APIarch/arm/include/asm/tlb.h arch/ia64/include/asm/tlb.h arch/s390/include/asm/tlb.h +5 more+62 -254 replies
2/4mm: make tlb_flush_pending globalinclude/linux/mm_types.h mm/debug.c+0 -231 reply
3/4mm: fix MADV_[FREE|DONTNEED] TLB flush miss problemarch/arm/include/asm/tlb.h arch/ia64/include/asm/tlb.h arch/s390/include/asm/tlb.h +5 more+49 -221 reply
4/4mm: fix KSM data corruptionfs/proc/task_mmu.c mm/ksm.c+5 -24 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchMel GormanAndrea Arcangeli
1/4A-b
2/4A-b
3/4A-b
4/4R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/4] fix several TLB batch races

Nadav and Mel founded several subtle races caused by TLB batching. This patchset aims for solving thoses problems using embedding [inc|dec]_tlb_flush_pending to TLB batching API.
With that, places to know TLB flush pending catch it up by using mm_tlb_flush_pending.

Each patch includes detailed description.

This patchset is based on v4.13-rc2-mmots-2017-07-28-16-10 + "[PATCH v5 0/3] mm: fixes of tlb_flush_pending races" from Nadav

* from v1
* TLB batching API separation core part from arch specific one - Mel
* introduce mm_tlb_flush_nested - Mel

Minchan Kim (4):
mm: refactoring TLB gathering API
mm: make tlb_flush_pending global
mm: fix MADV_[FREE|DONTNEED] TLB flush miss problem
mm: fix KSM data corruption

 arch/arm/include/asm/tlb.h  | 11 ++++++--
 arch/ia64/include/asm/tlb.h |  8 ++++--
 arch/s390/include/asm/tlb.h | 17 ++++++++-----
 arch/sh/include/asm/tlb.h   |  8 +++---
 arch/um/include/asm/tlb.h   | 13 +++++++---
 fs/proc/task_mmu.c          |  4 ++-
 include/asm-generic/tlb.h   |  7 ++---
 include/linux/mm_types.h    | 35 ++++++++++---------------
 mm/debug.c                  |  2 --
 mm/ksm.c                    |  3 ++-
 mm/memory.c                 | 62 +++++++++++++++++++++++++++++++--------------
 11 files changed, 107 insertions(+), 63 deletions(-)
Signature · 7 lines
2.7.4

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>