[GIT,PULL] memblock: Revert "mm: Always release pages to the buddy allocator in memblock_free_late()."

Message ID Y+dqPRXSqoP1x7u5@kernel.org
State New
Headers
Series [GIT,PULL] memblock: Revert "mm: Always release pages to the buddy allocator in memblock_free_late()." |

Pull-request

https://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock tags/fixes-2023-02-11

Message

Mike Rapoport Feb. 11, 2023, 10:13 a.m. UTC
  Hi Linus,

The following changes since commit 4ec5183ec48656cec489c49f989c508b68b518e3:

  Linux 6.2-rc7 (2023-02-05 13:13:28 -0800)

are available in the Git repository at:

  https://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock tags/fixes-2023-02-11

for you to fetch changes up to 647037adcad00f2bab8828d3d41cd0553d41f3bd:

  Revert "mm: Always release pages to the buddy allocator in memblock_free_late()." (2023-02-07 13:07:37 +0200)

----------------------------------------------------------------
Revert "mm: Always release pages to the buddy allocator in memblock_free_late()."

This reverts commit 115d9d77bb0f9152c60b6e8646369fa7f6167593.

The pages being freed by memblock_free_late() have already been
initialized, but if they are in the deferred init range, __free_one_page()
might access nearby uninitialized pages when trying to coalesce buddies,
which will cause a crash.

A proper fix will be more involved so revert this change for the time
being.

----------------------------------------------------------------
Aaron Thompson (1):
      Revert "mm: Always release pages to the buddy allocator in memblock_free_late()."

 mm/memblock.c                     | 8 +-------
 tools/testing/memblock/internal.h | 4 ----
 2 files changed, 1 insertion(+), 11 deletions(-)
  

Comments

pr-tracker-bot@kernel.org Feb. 11, 2023, 7:11 p.m. UTC | #1
The pull request you sent on Sat, 11 Feb 2023 12:13:17 +0200:

> https://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock tags/fixes-2023-02-11

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/230809c145091e5cfd948bd2db98e67a1a0571de

Thank you!