From: sbabic at denx.de Date: Wed, 30 Jan 2019 08:57:35 +0000 (UTC) Subject: [U-Boot] imx: Fix potential lmb memory overwritten by stack In-Reply-To: <1546593003-41166-1-git-send-email-ye.li@nxp.com> Message-ID: <20190130085829.C4B23C21EB4@lists.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > 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 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 =====================================================================