freebsd-dev/sys/amd64
Konstantin Belousov 3f7905d29c Prevent the overflow in the calculation of the next page directory.
The overflow causes the wraparound with consequent corruption of the
(almost) whole address space mapping.

As Alan noted, pmap_copy() does not require the wrap-around checks
because it cannot be applied to the kernel's pmap. The checks there are
included for consistency.

Reported and tested by:	kris (i386/pmap.c:pmap_remove() part)
Reviewed by:	alc
MFC after:	1 week
2008-03-23 07:07:27 +00:00
..
acpica In keeping with style(9)'s recommendations on macros, use a ';' 2008-03-16 10:58:09 +00:00
amd64 Prevent the overflow in the calculation of the next page directory. 2008-03-23 07:07:27 +00:00
compile
conf Remove kernel support for M:N threading. 2008-03-12 10:12:01 +00:00
ia32 Since version 4.3, gcc changed its behaviour concerning the i386/amd64 2008-03-13 10:54:38 +00:00
include Implement atomic_fetchadd_long() for all architectures and document it. 2008-03-16 21:20:50 +00:00
isa Explicitly use spinlock_enter/exit rather than locking the icu_lock spin 2008-03-20 21:53:27 +00:00
linux32 Regen. 2008-03-16 16:29:37 +00:00
pci Adjust the code to probe for the PCI config mechanism to use. 2007-11-28 22:20:08 +00:00
Makefile