diff options
author | David S. Miller <davem@davemloft.net> | 2011-02-18 14:06:47 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-16 18:19:12 -0700 |
commit | 5a0efea09f42f7c92bd98a38d66b4dff9589266b (patch) | |
tree | f61f4d7e0e9f538110596899017b3a405964157e /.mailmap | |
parent | fd49bf48cac7126a8311592bea56518529a223e2 (diff) | |
download | op-kernel-dev-5a0efea09f42f7c92bd98a38d66b4dff9589266b.zip op-kernel-dev-5a0efea09f42f7c92bd98a38d66b4dff9589266b.tar.gz |
sparc64: Sharpen address space randomization calculations.
A recent patch to the x86 randomization code caused me to take
a quick look at what we do on sparc64, and in doing so I noticed
that we sometimes calculate a non-page-aligned randomization value
and stick it into mmap_base.
I also noticed that since I copied the logic over from PowerPC,
the powerpc code has tweaked the randomization ranges in ways that
would benefit us as well.
For one thing, we should allow up to at least 8MB of randomization
otherwise huge-page regions when HPAGE_SIZE is 4MB never randomize
at all.
And on the 64-bit side we were using up to 4GB. Tone it down to
1GB as 4GB can result in a lot of address space wastage.
Finally, make sure all computations are unsigned.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '.mailmap')
0 files changed, 0 insertions, 0 deletions