freebsd-dev/sys/amd64
Alan Cox 07a7b85e94 Correct a rare use-after-free error in pmap_copy(). This error was
introduced in amd64 revision 1.540 and i386 revision 1.547.  However, it
had no harmful effects until after a recent change, r189698, on amd64.
(In other words, the error is harmless in RELENG_7.)

The error is triggered by the failure to allocate a pv entry for the one
and only mapping in a page table page.  I am addressing the error by
changing pmap_copy() to abort if either pv entry allocation or page
table page allocation fails.  This is appropriate because the creation of
mappings by pmap_copy() is optional.  They are a (possible) optimization,
and not a requirement.

Correct a nearby whitespace error in the i386 pmap_copy().

Crash reported by: jeff@
MFC after:	6 weeks
2009-05-13 07:42:53 +00:00
..
acpica
amd64 Correct a rare use-after-free error in pmap_copy(). This error was 2009-05-13 07:42:53 +00:00
compile
conf - Use "device\t" and "options \t" for consistency. 2009-05-10 00:00:25 +00:00
ia32
include Fix XENHVM build. 2009-05-06 17:48:39 +00:00
isa Rename statclock_disable variable to atrtcclock_disable that it actually is, 2009-05-03 17:47:21 +00:00
linux32 Translate l_timeval arg to native struct timeval in 2009-05-11 13:50:42 +00:00
pci
Makefile