diff options
author | Eiichi Tsukata <[email protected]> | 2019-07-11 11:35:01 +0900 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2019-07-11 08:22:03 +0200 |
commit | cbf5b73d162b22e044fe0b7d51dcaa33be065253 (patch) | |
tree | f4baca1e7a79277c48261f22285361808633911b /tools/perf/scripts/python/bin | |
parent | 7652ac92018536eb807b6c2130100c85f1ba7e3b (diff) |
x86/stacktrace: Prevent infinite loop in arch_stack_walk_user()
arch_stack_walk_user() checks `if (fp == frame.next_fp)` to prevent a
infinite loop by self reference but it's not enogh for circular reference.
Once a lack of return address is found, there is no point to continue the
loop, so break out.
Fixes: 02b67518e2b1 ("tracing: add support for userspace stacktraces in tracing/iter_ctrl")
Signed-off-by: Eiichi Tsukata <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Acked-by: Linus Torvalds <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions