hw: check descriptor validity in LPAE lookup

Fixes #3828
This commit is contained in:
Christian Prochaska 2020-07-17 16:30:44 +02:00 committed by Christian Helmuth
parent bfd94d64ba
commit fd682cd470

View File

@ -385,6 +385,8 @@ class Hw::Level_3_translation_table :
using Base = Long_translation_table<SIZE_LOG2_4KB,
SIZE_LOG2_2MB>;
using Block_descriptor = typename Stage_trait<Base, STAGE>::Type;
if (!Descriptor::valid(desc))
return;
phys = Block_descriptor::Output_address::masked(desc);
found = true;
}