mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-11 09:50:12 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=333772
@ -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…
Reference in New Issue
Block a user