]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commitfdbb96b8af1047865daca669e2f7e3eac887ba4b
tree8f73c66bf2b30afb2807814d97f9307af0508454
parentd414d0b59cca767142569d36c58d91067758d6e6
[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