cvs commit: src/sys/alpha/alpha pmap.c src/sys/i386/i386 pmap.c
phk at FreeBSD.org
Wed Jun 2 00:04:22 PDT 2004
phk 2004/06/02 00:04:21 PDT
FreeBSD src repository
Modified files: (Branch: RELENG_4)
There is a comma missing in the table initializing the
pmap_prefault_pageorder array. This has two effects:
1. The resulting bogus contents of the array thwarts part of the
optimization effect pmap_prefault() is supposed to have.
2. The resulting array is only 7 elements long (auto-sized), while
pmap_prefault() expects it to be the intended 8 elements. So this
function in fact accesses memory beyond the end of the array.
Fortunately though, if the data at this location is out of bounds it
will be ignored.
This bug dates back more than 6 years. It has been introduced in
Submitted by: Uwe Doering <gemini at geminix.org>
Revision Changes Path
18.104.22.168 +1 -1 src/sys/alpha/alpha/pmap.c
22.214.171.124 +1 -1 src/sys/i386/i386/pmap.c
More information about the cvs-src