From: Tom Rini Date: Mon, 25 Jan 2016 16:28:45 -0500 Subject: [U-Boot] bootm: fix size arg of flush_cache() in bootm_load_os(). In-Reply-To: <1453279059-10967-1-git-send-email-purna.mandal@microchip.com> References: <1453279059-10967-1-git-send-email-purna.mandal@microchip.com> Message-ID: <20160125212845.GW3359@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > Reviewed-by: Simon Glass > Reviewed-by: Daniel Schwierzeck 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: