svn commit: r333772 - head/sys/arm64/arm64
Olivier Houchard
cognet at FreeBSD.org
Thu May 17 22:40:23 UTC 2018
Author: cognet
Date: Thu May 17 22:40:22 2018
New Revision: 333772
URL: https://svnweb.freebsd.org/changeset/base/333772
Log:
In pmap_get_tables(), check that the L2 is indeed a table before attempting
to get the l3.
Modified:
head/sys/arm64/arm64/pmap.c
Modified: head/sys/arm64/arm64/pmap.c
==============================================================================
--- head/sys/arm64/arm64/pmap.c Thu May 17 22:38:16 2018 (r333771)
+++ head/sys/arm64/arm64/pmap.c Thu May 17 22:40:22 2018 (r333772)
@@ -487,6 +487,9 @@ pmap_get_tables(pmap_t pmap, vm_offset_t va, pd_entry_
return (true);
}
+ if ((pmap_load(l2p) & ATTR_DESCR_MASK) != L2_TABLE)
+ return (false);
+
*l3 = pmap_l2_to_l3(l2p, va);
return (true);
More information about the svn-src-head
mailing list