Re: [PATCH] image: don't exceed gd->ram_top in bootm_size

2020-08-28 Thread Tom Rini
On Mon, Aug 24, 2020 at 08:14:05PM +0300, Baruch Siach wrote: > When board_get_usable_ram_top() limits gd->ram_top, env_get_bootm_size() > must not exceed that limit. Otherwise, boot_relocate_fdt() might put fdt > out of the allowed RAM range. > > The similar commit 8ce1f10cf2b1 ("ARM: bootm: tak

[PATCH] image: don't exceed gd->ram_top in bootm_size

2020-08-24 Thread Baruch Siach
When board_get_usable_ram_top() limits gd->ram_top, env_get_bootm_size() must not exceed that limit. Otherwise, boot_relocate_fdt() might put fdt out of the allowed RAM range. The similar commit 8ce1f10cf2b1 ("ARM: bootm: take into account gd->ram_top") exposed this bug. This fixes boot on Armada