Skip to content

Fix some cache flush bugs

Muchun Song linux-mm lkml 5 versions – Applied

Status from this message: [merged] mm-userfaultfd-fix-missing-cache-flush-in-mcopy_atomic_pte-and-__mcopy_atomic.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest7 patches 3 repliesApplied 7/7
  2. v45 patches 4 repliesSuperseded
  3. v35 patches 5 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v22 patches11 repliesSuperseded
v12 patches3 repliesSuperseded

Changes in v5 from the cover letter

- Collect Reviewed-by from Mike.
- Fix mcopy_atomic_pte() and __mcopy_atomic() (Mike).
- Fix shmem_mfill_atomic_pte().

Patches in v5 All 7 applied

#Subject and filesSizeRepliesApplied
1/7mm: thp: fix wrong cache flush in remove_migration_pmd()mm/huge_memory.c+2 -10 repliesApplied
2/7mm: fix missing cache flush for all tail pages of compound pagemm/migrate.c+5 -20 repliesApplied
3/7mm: hugetlb: fix missing cache flush in copy_huge_page_from_user()mm/memory.c+2 -00 repliesApplied
4/7mm: hugetlb: fix missing cache flush in hugetlb_mcopy_atomic_pte()mm/hugetlb.c+2 -10 repliesApplied
5/7mm: shmem: fix missing cache flush in shmem_mfill_atomic_pte()mm/shmem.c+3 -12 repliesApplied
6/7mm: userfaultfd: fix missing cache flush in mcopy_atomic_pte() and __mcopy_atomic()mm/userfaultfd.c+3 -01 replyApplied
7/7mm: replace multiple dcache flush with flush_dcache_folio()mm/migrate.c+2 -60 repliesApplied

Reviews trailers per patch

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

PatchZi YanMike Kravetz
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7R-b
7/7R-b

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

Read the v5 thread

Cover letter [PATCH v5 0/7] Fix some cache flush bugs

This series focus on fixing cache maintenance.

v5:
- Collect Reviewed-by from Mike.
- Fix mcopy_atomic_pte() and __mcopy_atomic() (Mike).
- Fix shmem_mfill_atomic_pte().

v4:
- Replace folio_copy() with copy_user_huge_page().
- Update commit message for patch 2.

v3:
- Collect Reviewed-by tag from Zi Yan.
- Fix hugetlb cache maintenance.

v2:
- Collect Reviewed-by tag from Zi Yan.
- Using a for loop instead of the folio variant for backportability.

Muchun Song (7):
mm: thp: fix wrong cache flush in remove_migration_pmd()
mm: fix missing cache flush for all tail pages of compound page
mm: hugetlb: fix missing cache flush in copy_huge_page_from_user()
mm: hugetlb: fix missing cache flush in hugetlb_mcopy_atomic_pte()
mm: shmem: fix missing cache flush in shmem_mfill_atomic_pte()
mm: userfaultfd: fix missing cache flush in mcopy_atomic_pte() and

    __mcopy_atomic()

mm: replace multiple dcache flush with flush_dcache_folio()

 mm/huge_memory.c | 3 ++-
 mm/hugetlb.c     | 3 ++-
 mm/memory.c      | 2 ++
 mm/migrate.c     | 3 +--
 mm/shmem.c       | 4 +++-
 mm/userfaultfd.c | 3 +++
 6 files changed, 13 insertions(+), 5 deletions(-)
Signature · 1 line
2.11.0