[U-Boot] [U-Boot, v2] armv8: mmu: Detect page table overflow in emergency pt creation

Tom Rini trini at konsulko.com
Sat Aug 6 03:00:17 CEST 2016


On Sat, Jul 30, 2016 at 11:13:03PM +0200, Alexander Graf wrote:

> We create 2 sets of page tables: One for normal operation, one for
> emergency (used while modifying the former).
> 
> Because the page tables grow dynamically, we have code that checks
> for overflow. Unfortunately we didn't adjust the available space
> variable while creating the emergency tables, so potentially someone
> might run into an overflow there (not seen in real world yet though!).
> 
> Fix it by properly adjusting the size as well as the base offset in
> emergency page table creation.
> 
> Reported-by: York Sun <york.sun at nxp.com>
> Signed-off-by: Alexander Graf <agraf at suse.de>
> Reviewed-by: York Sun <york.sun at nxp.com>

Applied to u-boot/master, thanks!

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


More information about the U-Boot mailing list