]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] x86_64: Fix stack/mmap randomization for compat tasks
authorAndi Kleen <ak@suse.de>
Tue, 30 May 2006 20:47:45 +0000 (22:47 +0200)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 31 May 2006 03:31:05 +0000 (20:31 -0700)
commit4711bfeb0430d7121a8130a7611e8f11bfeaf0d5
tree298b1b2c498c5d8e95954809b9bd3890a92ac0fb
parent6837d88ae7036d2ff51b973a857dfd13fde8bb0d
[PATCH] x86_64: Fix stack/mmap randomization for compat tasks

ia32_setup_arg_pages would ignore the passed in random stack top
and use its own static value.

Now it uses the 8bit of randomness native i386 would use too.

This indirectly fixes mmap randomization for 32bit processes too,
which depends on the stack randomization.

Should also give slightly better virtual cache colouring and
possibly better performance with HyperThreading.

Signed-off-by: Andi Kleen <ak@suse.de>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/x86_64/ia32/ia32_binfmt.c
include/asm-x86_64/elf.h