Skip to content
Commit 860ad782 authored by Sonny Rao's avatar Sonny Rao Committed by Russell King
Browse files

ARM: 6884/1: Fix infinite loop in ARM user perf_event backtrace code



The ARM user backtrace code can get into an infinite loop if it
runs into an invalid stack frame which points back to itself.
This situation has been observed in practice.  Fix it by capping
the number of entries in the backtrace.  This is also what other
architectures do in their backtrace code.

Signed-off-by: default avatarSonny Rao <sonnyrao@chromium.org>
Acked-by: default avatarJamie Iles <jamie@jamieiles.com>
Acked-by: default avatarOlof Johansson <olof@lixom.net>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 167f8297
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment