audk/ArmPkg
Michael Zimmermann 889c7ca1b5 ArmPkg/ArmMmuLib ARM: fix page size granularity in initial MMU setting
From what I can see this bug dates back to the commit from 2011 where
support for this was added: 2cf4b60895

The first problem is that PopulateLevel2PageTable overflows the
translation table buffer because it doesn't verify that the size
actually fits within one level 2 page table.

The second problem is that the loop in FillTranslationTable doesn't
care about the PhysicalBase or the RemainLength and always substracts
one section size from RemainLength.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Michael Zimmermann <sigmaepsilon92@gmail.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
2017-12-20 20:57:03 +00:00
..
Drivers ArmPkg: remove unused ArmGicSecLib library implementation 2017-11-26 10:58:30 +00:00
Filesystem/SemihostFs ArmPkg/SemihostFs: eliminate calls to deprecated string functions 2016-10-28 12:04:04 +01:00
Include ArmPkg/ArmMmuLib: Add new attribute WRITE_BACK_NONSHAREABLE 2017-11-07 13:29:46 +00:00
Library ArmPkg/ArmMmuLib ARM: fix page size granularity in initial MMU setting 2017-12-20 20:57:03 +00:00
ArmPkg.dec ArmPkg: remove BdsLib and remaining ARM BDS related PCDs 2017-11-26 10:58:33 +00:00
ArmPkg.dsc ArmPkg: remove BdsLib and remaining ARM BDS related PCDs 2017-11-26 10:58:33 +00:00