[PATCH] x86_64: Increase the variability of the process stack on 64bit architectures
authorAndi Kleen <ak@suse.de>
Sat, 25 Mar 2006 15:29:09 +0000 (16:29 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 25 Mar 2006 17:10:52 +0000 (09:10 -0800)
commit913bd906019514579b3c7ec5ab9c463e89207a57
tree8f73c66bf2b30afb2807814d97f9307af0508454
parentdca99a38bccceda9e079d4c95abefbd9028605fe
[PATCH] x86_64: Increase the variability of the process stack on 64bit architectures

8MB is not really very random, use 1GB (or more with larger page sizes)
instead.

Also use the low bits of the random generator output now instead of
throwing them away.

Only enabled on x86-64 right now. Other architectures need to add
a suitable STACK_RND_MASK

Cc: mingo@elte.hu
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/binfmt_elf.c
include/asm-x86_64/elf.h