Home
last modified time | relevance | path

Searched hist:d33aadbf8e9ba0b844c2a4a03723969c913ab03a (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/arch/arm/kernel/
H A Dstacktrace.cdiff d33aadbf8e9ba0b844c2a4a03723969c913ab03a Thu Nov 04 12:22:51 CDT 2010 Will Deacon <will.deacon@arm.com> ARM: 6468/1: backtrace: fix calculation of thread stack base

When unwinding stack frames we must take care not to unwind
areas of memory that lie outside of the known extent of the stack.

This patch fixes an incorrect calculation of the stack base where
THREAD_SIZE is added to the stack pointer after it has already
been aligned to this value. Since the ALIGN macro performs this
addition internally, we end up overshooting the base by 8k.

Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
H A Dunwind.cdiff d33aadbf8e9ba0b844c2a4a03723969c913ab03a Thu Nov 04 12:22:51 CDT 2010 Will Deacon <will.deacon@arm.com> ARM: 6468/1: backtrace: fix calculation of thread stack base

When unwinding stack frames we must take care not to unwind
areas of memory that lie outside of the known extent of the stack.

This patch fixes an incorrect calculation of the stack base where
THREAD_SIZE is added to the stack pointer after it has already
been aligned to this value. Since the ALIGN macro performs this
addition internally, we end up overshooting the base by 8k.

Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>