diff options
author | Konstantin Khlebnikov <k.khlebnikov@samsung.com> | 2013-12-05 17:30:16 +0400 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2013-12-19 21:43:10 +0400 |
commit | 26920dd2da79a3207803da9453c0e6c82ac968ca (patch) | |
tree | 303ede9453ed3860d3dc02c909c671197ef7a20c /arch/arm64 | |
parent | 408c3658b0d49315974ce8b5aed385c8e1527595 (diff) | |
download | linux-26920dd2da79a3207803da9453c0e6c82ac968ca.tar.xz |
ARM64: fix framepointer check in unwind_frame
We need at least 24 bytes above frame pointer.
Signed-off-by: Konstantin Khlebnikov <k.khlebnikov@samsung.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64')
-rw-r--r-- | arch/arm64/kernel/stacktrace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kernel/stacktrace.c b/arch/arm64/kernel/stacktrace.c index d25459ff57fc..c3b6c63ea5fb 100644 --- a/arch/arm64/kernel/stacktrace.c +++ b/arch/arm64/kernel/stacktrace.c @@ -43,7 +43,7 @@ int unwind_frame(struct stackframe *frame) low = frame->sp; high = ALIGN(low, THREAD_SIZE); - if (fp < low || fp > high || fp & 0xf) + if (fp < low || fp > high - 0x18 || fp & 0xf) return -EINVAL; frame->sp = fp + 0x10; |