Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'memblock-v6.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock

Pull memblock update from Mike Rapoport:
"Report failures when memblock_can_resize is not set.

Numerous memblock reservations at early boot may exhaust static
memblock.reserved array and it is unnoticed because most of the
callers don't check memblock_reserve() return value.

In this case the system will crash later, but the reason is hard to
identify.

Replace return of an error with panic() when memblock.reserved is
exhausted before it can be resized"

* tag 'memblock-v6.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock:
memblock: report failures when memblock_can_resize is not set

+1 -1
+1 -1
mm/memblock.c
··· 424 424 * of memory that aren't suitable for allocation 425 425 */ 426 426 if (!memblock_can_resize) 427 - return -1; 427 + panic("memblock: cannot resize %s array\n", type->name); 428 428 429 429 /* Calculate new doubled size */ 430 430 old_size = type->max * sizeof(struct memblock_region);