artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38fd230
)
more mmap random on 64-bit platforms. noticed in freebsd aslr patches.
author
tedu
<tedu@openbsd.org>
Sun, 13 Jul 2014 08:15:16 +0000
(08:15 +0000)
committer
tedu
<tedu@openbsd.org>
Sun, 13 Jul 2014 08:15:16 +0000
(08:15 +0000)
sys/uvm/uvm_map.c
patch
|
blob
|
history
diff --git
a/sys/uvm/uvm_map.c
b/sys/uvm/uvm_map.c
index
702b3bf
..
86fb84d
100644
(file)
--- a/
sys/uvm/uvm_map.c
+++ b/
sys/uvm/uvm_map.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: uvm_map.c,v 1.17
1 2014/07/12 18:44:01
tedu Exp $ */
+/* $OpenBSD: uvm_map.c,v 1.17
2 2014/07/13 08:15:16
tedu Exp $ */
/* $NetBSD: uvm_map.c,v 1.86 2000/11/27 08:40:03 chs Exp $ */
/*
@@
-3541,7
+3541,11
@@
uvm_map_hint(struct vmspace *vm, vm_prot_t prot)
}
#endif
+#ifdef __LP64__
+ spacing = (MIN((4UL * 1024 * 1024 * 1024), BRKSIZ) - 1);
+#else
spacing = (MIN((256 * 1024 * 1024), BRKSIZ) - 1);
+#endif
addr = (vaddr_t)vm->vm_daddr;
/*