git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13a2cb3
)
powerpc: Randomise mmap start address
author
Anton Blanchard
<anton@samba.org>
Sun, 22 Feb 2009 01:50:01 +0000
(
01:50
+0000)
committer
Benjamin Herrenschmidt
<benh@kernel.crashing.org>
Mon, 23 Feb 2009 04:53:07 +0000
(15:53 +1100)
Randomise mmap start address - 8MB on 32bit and 1GB on 64bit tasks.
Until ppc32 uses the mmap.c functionality, this is ppc64 specific.
Before:
# ./test & cat /proc/${!}/maps|tail -2|head -1
f75fe000
-
f7fff000
rw-p
f75fe000
00:00 0
f75fe000
-
f7fff000
rw-p
f75fe000
00:00 0
f75fe000
-
f7fff000
rw-p
f75fe000
00:00 0
f75fe000
-
f7fff000
rw-p
f75fe000
00:00 0
f75fe000
-
f7fff000
rw-p
f75fe000
00:00 0
After:
# ./test & cat /proc/${!}/maps|tail -2|head -1
f718b000
-
f7b8c000
rw-p
f718b000
00:00 0
f7551000
-
f7f52000
rw-p
f7551000
00:00 0
f6ee7000
-
f78e8000
rw-p
f6ee7000
00:00 0
f74d4000
-
f7ed5000
rw-p
f74d4000
00:00 0
f6e9d000
-
f789e000
rw-p
f6e9d000
00:00 0
Similar for 64bit, but with 1GB of scatter:
# ./test & cat /proc/${!}/maps|tail -2|head -1
fffb97b5000
-
fffb97b6000
rw-p
fffb97b5000
00:00 0
fffce9a3000
-
fffce9a4000
rw-p
fffce9a3000
00:00 0
fffeaaf2000
-
fffeaaf3000
rw-p
fffeaaf2000
00:00 0
fffd88ac000
-
fffd88ad000
rw-p
fffd88ac000
00:00 0
fffbc62e000
-
fffbc62f000
rw-p
fffbc62e000
00:00 0
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
No differences found