Date: Thu, 17 May 2018 22:40:22 +0000 (UTC) From: Olivier Houchard <cognet@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r333772 - head/sys/arm64/arm64 Message-ID: <201805172240.w4HMeM3S013918@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805172240.w4HMeM3S013918>