In pmap_get_tables(), check that the L2 is indeed a table before attempting
to get the l3.
This commit is contained in:
parent
654a792922
commit
8b2ec5a3a1
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user