Re: [PATCH] arm64: avoid potential infinity loop in dump_backtrace

2018-04-20 Thread Dave Martin
On Fri, Apr 20, 2018 at 01:38:33PM +0800, Ji Zhang wrote: > When we dump the backtrace of some tasks there is a potential infinity > loop if the content of the stack changed, no matter the change is > because the task is running or other unexpected cases. > > This patch add stronger check on frame

[PATCH] arm64: avoid potential infinity loop in dump_backtrace

2018-04-19 Thread Ji Zhang
When we dump the backtrace of some tasks there is a potential infinity loop if the content of the stack changed, no matter the change is because the task is running or other unexpected cases. This patch add stronger check on frame pointer and set the max number of stack spanning to avoid infinity