[U-Boot] [PATCH] Makefile: ensure DTB doesn't overflow into initial stack

Stephen Warren swarren at wwwdotorg.org
Wed Jan 10 23:20:49 UTC 2018


On 01/10/2018 04:04 PM, Simon Glass wrote:
> On 9 January 2018 at 11:52, Stephen Warren <swarren at wwwdotorg.org> wrote:
>> With CONFIG_SYS_INIT_SP_BSS_OFFSET enabled, the initial (pre-relocation)
>> stack is placed some distance after bss_start. The control DTB is appended
>> to the U-Boot binary at bss_start. If the DTB is too large, or the SP BSS
>> offset too small, then the initial stack could corrupt the DTB. Enhance
>> the Makefile to check whether this is likely to occur.
...
> Looking at the code here I wonder if it would be easy to check this in binman?

Well, considering it's already implemented in the Makefile, and quite 
simply, I'd have to say no:-)


More information about the U-Boot mailing list