Skip to content

mm/hwpoison: fix race between hugetlb free/demotion and memory_failure_hugetlb()

Naoya Horiguchi linux-mm lkml 5 versions – Applied

Status from this message: [merged mm-stable] mm-hwpoison-put-page-in-already-hwpoisoned-case-with-mf_count_increased.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest3 patches 13 repliesApplied 3/3
  2. v71 patch 5 repliesSuperseded
  3. v61 patch 3 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v51 patch4 repliesSuperseded
v41 patch4 repliesSuperseded

Patches in v8 All 3 applied

#Subject and filesSizeRepliesApplied
1/3mm/hwpoison: fix race between hugetlb free/demotion and memory_failure_hugetlb()include/linux/hugetlb.h include/linux/mm.h mm/hugetlb.c +1 more+127 -427 repliesApplied
2/3mm/hwpoison: put page in already hwpoisoned case with MF_COUNT_INCREASEDmm/memory-failure.c+2 -02 repliesApplied
3/3Revert "mm/memory-failure.c: fix race with changing page compound again"include/linux/mm.h include/ras/ras_event.h mm/memory-failure.c+0 -132 repliesApplied

Reviews trailers per patch

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

PatchMiaohe LinMike Kravetz
1/3R-b R-b R-b R-b
2/3R-b R-b
3/3R-b R-b

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

Read the v8 thread

Cover letter [PATCH v8 0/3] mm/hwpoison: fix race between hugetlb free/demotion and memory_failure_hugetlb()

Hi,

I updated v7 (https://lore.kernel.org/linux-mm/[email protected]/)
based on the comment from Miaohe Lin. Now I have a few additional patches.
Any comments and suggestions are welcomed.

Thanks,
Naoya Horiguchi
---
Summary:

Naoya Horiguchi (3):
mm/hwpoison: fix race between hugetlb free/demotion and memory_failure_hugetlb() mm/hwpoison: put page in already hwpoisoned case with MF_COUNT_INCREASED Revert "mm/memory-failure.c: fix race with changing page compound again"

 include/linux/hugetlb.h |   6 ++
 include/linux/mm.h      |   9 ++-
 include/ras/ras_event.h |   1 -
 mm/hugetlb.c            |  10 ++++
 mm/memory-failure.c     | 152 ++++++++++++++++++++++++++++++++----------------
 5 files changed, 126 insertions(+), 52 deletions(-)