Anton Blanchard
d839088cae
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>
2009-02-23 15:53:20 +11:00
..
2008-12-21 14:21:16 +11:00
2008-12-21 14:21:16 +11:00
2009-02-23 15:53:05 +11:00
2009-01-13 13:59:03 +11:00
2009-01-13 14:48:02 +11:00
2009-01-08 16:25:10 +11:00
2008-12-05 14:34:26 -05:00
2009-01-28 18:16:50 -06:00
2009-01-28 18:16:50 -06:00
2009-02-23 10:48:56 +11:00
2009-02-23 15:53:03 +11:00
2009-01-13 14:47:59 +11:00
2008-12-03 20:46:36 +11:00
2009-02-23 10:48:56 +11:00
2009-02-23 10:48:54 +11:00
2009-02-23 10:48:56 +11:00
2008-12-23 15:13:29 +11:00
2008-12-29 09:53:25 +11:00
2009-01-13 14:48:03 +11:00
2009-02-23 10:48:56 +11:00
2009-02-23 15:53:03 +11:00
2008-12-16 15:53:38 +11:00
2008-11-20 10:51:15 -08:00
2008-12-31 18:07:42 -05:00
2009-01-13 14:47:59 +11:00
2008-12-13 21:20:26 +10:30
2009-01-07 11:31:52 -08:00
2009-01-13 14:47:59 +11:00
2008-12-23 15:13:29 +11:00
2009-01-13 14:47:59 +11:00
2009-02-23 15:53:03 +11:00
2008-12-29 09:53:25 +11:00
2008-11-20 10:52:53 -08:00
2009-02-23 10:48:56 +11:00
2008-12-21 14:21:16 +11:00
2008-12-16 15:53:38 +11:00
2008-11-05 22:08:28 +11:00
2009-02-23 10:48:57 +11:00
2009-02-11 16:00:07 +11:00
2009-02-11 16:00:07 +11:00
2009-01-08 16:25:17 +11:00
2008-12-23 15:13:28 +11:00
2009-02-23 15:53:20 +11:00
2009-01-08 16:25:16 +11:00
2009-01-07 11:12:52 -08:00
2009-02-11 13:38:00 +11:00
2008-11-06 09:31:52 +11:00
2009-02-23 15:53:04 +11:00
2008-12-23 15:13:29 +11:00
2009-02-11 13:38:00 +11:00
2008-11-11 19:42:22 +11:00
2009-02-23 15:53:06 +11:00
2008-11-05 22:08:28 +11:00
2009-01-02 11:44:09 -08:00
2008-12-21 14:21:16 +11:00
2008-12-21 14:21:15 +11:00
2009-01-08 16:25:10 +11:00
2009-01-03 11:56:24 -08:00
2009-02-23 15:53:03 +11:00
2008-12-28 16:54:33 -08:00
2009-01-28 17:15:52 +11:00
2009-02-23 10:48:53 +11:00