In pmap_get_tables(), check that the L2 is indeed a table before attempting

to get the l3.
This commit is contained in:
cognet 2018-05-17 22:40:22 +00:00
parent b2d2968d5f
commit 841df736ab

View File

@ -487,6 +487,9 @@ pmap_get_tables(pmap_t pmap, vm_offset_t va, pd_entry_t **l0, pd_entry_t **l1,
return (true);
}
if ((pmap_load(l2p) & ATTR_DESCR_MASK) != L2_TABLE)
return (false);
*l3 = pmap_l2_to_l3(l2p, va);
return (true);