commit | d839088caec6891a5070f0b1ce61031e458533a9 | [log] [tgz] |
---|---|---|
author | Anton Blanchard <anton@samba.org> | Sun Feb 22 01:50:03 2009 +0000 |
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | Mon Feb 23 15:53:20 2009 +1100 |
tree | a0489611eb3edce545f7aed98764220e195ef941 | |
parent | 2dadb987e09995b2910c419cdfe2307e66537649 [diff] |
powerpc: Randomise lower bits of stack address Randomise the lower bits of the stack address. More randomisation is good for security but the scatter can also help with SMT threads that share an L1. A quick test case shows this working: int main() { int sp; printf("%x\n", (unsigned long)&sp & 4095); } before: 80 80 80 80 80 after: 610 490 300 6b0 d80 Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>