linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [GIT PULL] memblock: fix memblock_estimated_nr_free_pages() for soft-reserved memory
@ 2025-11-19  7:08 Mike Rapoport
  2025-11-19 17:19 ` pr-tracker-bot
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Rapoport @ 2025-11-19  7:08 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: Andrew Morton, Akinobu Mita, Mike Rapoport, linux-mm, linux-kernel

Hi Linus,

The following changes since commit e9a6fb0bcdd7609be6969112f3fbfcce3b1d4a7c:

  Linux 6.18-rc5 (2025-11-09 15:10:19 -0800)

are available in the Git repository at:

  https://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock fixes-2025-11-19

for you to fetch changes up to c42af83c59b65d01c0f7a074e450bbbb43b22f0d:

  memblock: fix memblock_estimated_nr_free_pages() for soft-reserved memory (2025-11-11 18:15:35 +0200)

----------------------------------------------------------------
memblock: fix memblock_estimated_nr_free_pages() for soft-reserved memory

The "soft-reserved" memory regions (EFI_MEMORY_SP) are added to the
memblock.reserved, but not to the memblock.memory. It causes
memblock_estimated_nr_free_pages() to return a value smaller value than
expected, or if it underflows, an extremely large value.

Calculate the number of estimated free pages using
memblock_reserved_kern_size() instead of memblock_reserved_size() to fix
the issue.

----------------------------------------------------------------
Akinobu Mita (1):
      memblock: fix memblock_estimated_nr_free_pages() for soft-reserved memory

 mm/memblock.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

-- 
Sincerely yours,
Mike.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-11-19 17:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-19  7:08 [GIT PULL] memblock: fix memblock_estimated_nr_free_pages() for soft-reserved memory Mike Rapoport
2025-11-19 17:19 ` pr-tracker-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox