[U-Boot] imx: Fix potential lmb memory overwritten by stack

sbabic at denx.de sbabic at denx.de
Wed Jan 30 08:57:35 UTC 2019


> At default, u-boot reserves the memory from SP - 4KB to DRAM end for
> lmb in arch_lmb_reserve. So lmb won't allocate any memory from it.
> But we found the 4K gap for SP is not enough now, because some FDT
> updating operations are added in our u-boot before jumping to kernel,
> which needs larger stack. This causes the lmb allocated memory is overwritten
> by stack.
> Fix the issue by implementing the board_lmb_reserve to reserve from
> SP - 16KB to memory end for lmb.
> Signed-off-by: Ye Li <ye.li at nxp.com>

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================



More information about the U-Boot mailing list