Skip to content

memblock: some fix for memmap_init_reserved_pages()

Wei Yang linux-mm stable 2 versions – Applied

Status from this message: Applied to for-next branch of memblock.git tree, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 5 repliesApplied
  2. v13 patches 4 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3mm/memblock: pass size instead of end to memblock_set_node()mm/memblock.c+1 -11 reply
2/3mm/memblock: repeat setting reserved region nid if array is doubledmm/memblock.c+10 -02 replies
3/3memblock tests: add test for memblock_set_nodetools/testing/memblock/tests/basic_api.c+102 -00 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchAnshuman Khandual
1/3R-b
2/3
3/3

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/3] memblock: some fix for memmap_init_reserved_pages()

During code review, I found we may leave some reserved region with invalid nid when memblock_set_node() double the array. The patch set propose a fix and test case.

Also I found memblock_set_node() accept size instead of end as second parameter. Currently it is misused.

Patch 1: fix the second argument passed to memblock_set_node() Patch 2: fix the invalid node id we may have in memmap_init_reserved_pages() Patch 3: add a test case to verify it

v2: move check out side of the loop

Wei Yang (3):
mm/memblock: pass size instead of end to memblock_set_node() mm/memblock: repeat setting reserved region nid if array is doubled memblock tests: add test for memblock_set_node

 mm/memblock.c                            |  12 ++-
 tools/testing/memblock/tests/basic_api.c | 102 +++++++++++++++++++++++
 2 files changed, 113 insertions(+), 1 deletion(-)
Signature · 1 line
2.34.1