Skip to content

A few fixup patches for mm

Miaohe Lin linux-mm lkml 5 versions – Applied

Status from this message: [merged mm-stable] mm-filter-out-swapin-error-entry-in-shmem-mapping.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest5 patches 14 repliesApplied 5/5
  2. v33 patches 21 repliesSuperseded 1 of 3 applied
  3. v2 posting 2/23 patches 8 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v2 posting 1/21 patch28 repliesSuperseded
v11 patch5 repliesSuperseded

Changes in v4 from the cover letter

collect Reviewed-by per Naoya and David. Thanks for review! fix infinite loop when swap in shmem error. Thanks Naoya for reporting
the issue!

Patches in v4 All 5 applied

#Subject and filesSizeRepliesApplied
1/5mm/swapfile: unuse_pte can map random data if swap read failsinclude/linux/swap.h include/linux/swapops.h mm/memory.c +1 more+31 -20 repliesApplied
2/5mm/swapfile: Fix lost swap bits in unuse_pte()mm/swapfile.c+7 -30 repliesApplied
3/5mm/madvise: free hwpoison and swapin error entry in madvise_free_pte_rangemm/madvise.c+8 -50 repliesApplied
4/5mm/shmem: fix infinite loop when swap in shmem error at swapoff timemm/shmem.c+39 -013 repliesApplied
5/5mm: filter out swapin error entry in shmem mappingmm/madvise.c mm/swap_state.c+7 -11 replyApplied

Reviews trailers per patch

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

PatchDavid HildenbrandNaoya Horiguchi
1/5A-b
2/5R-b
3/5A-b R-b
4/5R-b
5/5R-b

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

Read the v4 thread

Cover letter [PATCH v4 0/5] A few fixup patches for mm

Hi everyone,
This series contains a few patches to avoid mapping random data if swap read fails and fix lost swap bits in unuse_pte. Also we free hwpoison and swapin error entry in madvise_free_pte_range and so on. More details can be found in the respective changelogs. Thanks!

---
v4:
collect Reviewed-by per Naoya and David. Thanks for review! fix infinite loop when swap in shmem error. Thanks Naoya for reporting
the issue!
v3:
collect Acked-by tag per David
remove unneeded pte wrprotect per David
v2:
make the terminology consistent and collect Acked-by tag per David fix lost swap bits in unuse_pte per Peter
free hwpoison and swapin error entry per Alistair
Many thanks Alistair, David and Peter for review!
---
Miaohe Lin (5):
mm/swapfile: unuse_pte can map random data if swap read fails mm/swapfile: Fix lost swap bits in unuse_pte()
mm/madvise: free hwpoison and swapin error entry in
madvise_free_pte_range
mm/shmem: fix infinite loop when swap in shmem error at swapoff time
mm: filter out swapin error entry in shmem mapping

 include/linux/swap.h    |  7 ++++++-
 include/linux/swapops.h | 10 ++++++++++
 mm/madvise.c            | 18 ++++++++++++------
 mm/memory.c             |  5 ++++-
 mm/shmem.c              | 39 +++++++++++++++++++++++++++++++++++++++
 mm/swap_state.c         |  3 +++
 mm/swapfile.c           | 21 ++++++++++++++++++---
 7 files changed, 92 insertions(+), 11 deletions(-)
Signature · 1 line
2.23.0