[U-Boot] bootm: fix size arg of flush_cache() in bootm_load_os().

Tom Rini trini at konsulko.com
Mon Jan 25 22:28:45 CET 2016


On Wed, Jan 20, 2016 at 02:07:39PM +0530, Purna Chandra Mandal wrote:

> Variable _load_end_ points to end address of uncompressed buffer
> (*not* uncomress_buffer_end / sizeof(ulong)), so multipling uncompressed
> size with sizeof(ulong) is grossly incorrect in flush_cache().
> It might lead to access of address beyond valid memory range and hang the CPU.
> 
> Tested on MIPS architecture by using compressed(gzip, lzma)
> and uncompressed uImage.
> 
> Signed-off-by: Purna Chandra Mandal <purna.mandal at microchip.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>
> Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck at gmail.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160125/955e186f/attachment.sig>


More information about the U-Boot mailing list