Skip to content

mm: Don't access uninitialized memmaps in PFN walkers

David Hildenbrand linux-fsdevel linux-mm lkml 2 versions Applied

Status from this message: [merged] mm-memory-failurec-dont-access-uninitialized-memmaps-in-memory_failure.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 17 repliesApplied 2/2
  2. v11 patch 13 repliesSuperseded

Changes in v2 from the cover letter

- Drop ZONE_DEVICE support from the /proc/k... files as requested by Michal
- Further simplify the code
- Split up into two patches

Patches in v2 All 2 applied

#Subject and filesSizeRepliesApplied
1/2mm: Don't access uninitialized memmaps in fs/proc/page.cfs/proc/page.c+16 -122 repliesApplied
2/2mm/memory-failure.c: Don't access uninitialized memmaps in memory_failure()mm/memory-failure.c+8 -615 repliesApplied

Reviews trailers per patch

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

PatchMichal HockoNaoya Horiguchi
1/2A-b
2/2A-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/2] mm: Don't access uninitialized memmaps in PFN walkers

This is the follow-up of:
[PATCH v1] mm: Fix access of uninitialized memmaps in fs/proc/page.c

We have multiple places where we might access uninitialized memmaps and trigger kernel BUGs. Make sure to only access initialized memmaps.

Some of these places got easier to trigger with:
[PATCH v6 00/10] mm/memory_hotplug: Shrink zones before removing memory
As memmaps are now also poisoned when memory is offlined, before it is actually removed.

v1 -> v2:
- Drop ZONE_DEVICE support from the /proc/k... files as requested by Michal
- Further simplify the code
- Split up into two patches

David Hildenbrand (2):
mm: Don't access uninitialized memmaps in fs/proc/page.c mm/memory-failure.c: Don't access uninitialized memmaps in
memory_failure()

 fs/proc/page.c      | 28 ++++++++++++++++------------
 mm/memory-failure.c | 14 ++++++++------
 2 files changed, 24 insertions(+), 18 deletions(-)
Signature · 1 line
2.21.0