]> git.baikalelectronics.ru Git - kernel.git/commit
sparc64: Allocate sufficient stack space in ftrace stubs.
authorDavid S. Miller <davem@davemloft.net>
Wed, 14 Apr 2010 01:59:02 +0000 (18:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 Apr 2010 01:59:02 +0000 (18:59 -0700)
commit706a731595292728c6e92e1ea03aefc737620d84
tree6932aa9c85e37cf7d2e910a171b46ffacdb834a8
parentfe63b67d271cf446577c11e5b3f638f0fc5d9ad9
sparc64: Allocate sufficient stack space in ftrace stubs.

128 bytes is sufficient for the register window save area, but the
calling conventions allow the callee to save up to 6 incoming argument
registers into the stack frame after the register window save area.

This means a minimal stack frame is 176 bytes (128 + (6 * 8)).

This fixes random crashes when using the function tracer.

Reported-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/lib/mcount.S