]> Git Repo - linux.git/commit
[IA64] bugfix stack layout upside-down
authorKAMEZAWA Hiroyuki <[email protected]>
Fri, 23 Mar 2007 03:17:46 +0000 (12:17 +0900)
committerTony Luck <[email protected]>
Thu, 29 Mar 2007 22:15:24 +0000 (15:15 -0700)
commit83d2cd3de48a7fb73838c45145780cfa9b1f61fd
tree85d056d9a718f69c7242a8bb6cde17fc928fa4cc
parent8a3a0ee736b9a0150c9d894f2c6cc836a62125a1
[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 <[email protected]>
Signed-off-by: Tony Luck <[email protected]>
arch/ia64/mm/init.c
This page took 0.04808 seconds and 4 git commands to generate.