kernel_optimize_test/arch/ia64
KAMEZAWA Hiroyuki 83d2cd3de4 [IA64] bugfix stack layout upside-down
ia64 expects following vm layout:

== low memory
[register-stack grows up]
[memory-stack grows down]
== high memory

But the code assigns the base of the register stack at the
maximum stack size offset from the fixed address where the
stack *might* start.  Stack randomization will result in the
memory stack starting at a lower address than this, and if the
user has set a low stack limit with "ulimit -s", then you can
end up with the register stack above the memory stack (or if
you were very unlucky right on top of it!).

Fix: Calculate the base address for the register stack starting
from the actual address of the memory stack.

Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
2007-03-29 15:15:24 -07:00
..
configs [IA64] refresh config files 2007-03-08 11:20:17 -08:00
dig [PATCH] tty: Remove include of screen_info.h from tty.h 2006-07-10 13:24:16 -07:00
hp [PATCH] mark struct file_operations const 2 2007-02-12 09:48:44 -08:00
ia32 [IA64] sync compat getdents 2007-03-06 14:49:24 -08:00
kernel [IA64] Fix possible invalid memory access in ia64_setup_msi_irq() 2007-03-29 15:02:58 -07:00
lib [IA64] always build arch/ia64/lib/xor.o 2007-03-06 14:48:52 -08:00
mm [IA64] bugfix stack layout upside-down 2007-03-29 15:15:24 -07:00
oprofile Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
pci [PATCH] MSI-X: fix resume crash 2007-03-28 13:59:37 -07:00
scripts Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sn [IA64] Fix wrong /proc/iomem on SGI Altix 2007-03-20 13:54:44 -07:00
defconfig [IA64] refresh config files 2007-03-08 11:20:17 -08:00
install.sh Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Kconfig ACPI: IA64: fix allnoconfig build 2007-03-19 23:41:51 -04:00
Kconfig.debug [PATCH] Move Kprobes and Oprofile to "Instrumentation Support" menu 2005-11-07 07:53:35 -08:00
Makefile [IA64] add vmlinuz target 2006-06-21 14:31:07 -07:00
module.lds Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00