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

2016-01-21 Thread Daniel Schwierzeck
Am Mittwoch, den 20.01.2016, 14:07 +0530 schrieb Purna Chandra Mandal: > 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

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

2016-01-20 Thread Simon Glass
On 20 January 2016 at 01:37, 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

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

2016-01-20 Thread Purna Chandra Mandal
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