aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>2003-12-22 02:04:08 +0000
committerAlan Cox <alc@FreeBSD.org>2003-12-22 02:04:08 +0000
commit9582cd94cb3d1ebb7f0a8605bafb45344a8dfd90 (patch)
tree9143bacb515682b4274ad6bed7255ccfee2e1b13
parent925692caa5a9378ceeb964b6604f8345149d36ab (diff)
downloadsrc-9582cd94cb3d1ebb7f0a8605bafb45344a8dfd90.tar.gz
src-9582cd94cb3d1ebb7f0a8605bafb45344a8dfd90.zip
- Create an unmapped guard page to trap access to vm_page_array[-1].
This guard page would have trapped the problems with the MFC of the PAE support to RELENG_4 at an earlier point in the sequence of events. Submitted by: tegge
Notes
Notes: svn path=/head/; revision=123711
-rw-r--r--sys/vm/vm_page.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c
index 401559370b3c..9290a6a77570 100644
--- a/sys/vm/vm_page.c
+++ b/sys/vm/vm_page.c
@@ -242,6 +242,11 @@ vm_page_startup(vm_offset_t starta, vm_offset_t enda, vm_offset_t vaddr)
end = new_end;
/*
+ * Reserve an unmapped guard page to trap access to vm_page_array[-1].
+ */
+ vaddr += PAGE_SIZE;
+
+ /*
* Initialize the mem entry structures now, and put them in the free
* queue.
*/