From: Tom Rini Date: Sat, 24 Oct 2020 10:52:38 -0400 Subject: [PATCH] bootm: fix wrong conditions about images overlap In-Reply-To: <20201021051703.24027-1-jh80.chung@samsung.com> References: <20201021051703.24027-1-jh80.chung@samsung.com> Message-ID: <20201024145238.GI14816@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, Oct 21, 2020 at 02:17:03PM +0900, Jaehoon Chung wrote: > It doesn't need to consider start byte address. > If ramdisk size is 0x800000 and start address is 0x2700000, then it's > used until 0x02efffff, not 0x02f00000. But it's detected to overlapt RD > image, when kernel start address is 0x02f00000. > Because it's doing wrong calculation about rd_len. > This patch fixed wrong calculation address position when check > condition. > > In addition, it needs to check one more condition about overlapping > entire area. > > Fixes: commit fbde7589ce30 ("common: bootm: add checks to verify if ramdisk / fdtimage overlaps OS image") > > Signed-off-by: Jaehoon Chung Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: