From: Anton Blanchard Date: Sun, 22 Feb 2009 01:50:05 +0000 (+0000) Subject: powerpc: Ensure random space between stack and mmaps X-Git-Tag: v2.6.30-rc1~619^2~71 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5adc91a4b44b5d1706b9d906cc14fe4f312afe9;p=pandora-kernel.git powerpc: Ensure random space between stack and mmaps get_random_int() returns the same value within a 1 jiffy interval. This means that the mmap and stack regions will almost always end up the same distance apart, making a relative offset based attack possible. To fix this, shift the randomness we use for the mmap region by 1 bit. Signed-off-by: Anton Blanchard Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed