commit | 3338368e922a6686a3b3d6f4da07babd224788d4 | [log] [tgz] |
---|---|---|
author | Haavard Skinnemoen <hskinnemoen@atmel.com> | Wed Feb 21 13:08:06 2007 +0100 |
committer | Haavard Skinnemoen <hskinnemoen@atmel.com> | Wed Mar 07 10:50:27 2007 +0100 |
tree | fa29c8aaef547723cb5f5f81fe60d441947481b6 | |
parent | 9a596a6236e1b4d6c2e6105bd85eac19c9f4ec4c [diff] |
[AVR32] show_trace: Only walk valid stack addresses Terminate the frame pointer walk if (a) the address is outside the task's kernel stack or (b) if the frame pointer isn't monotonically increasing. Without this fix, show_trace() may enter an infinite loop, walking through random data anywhere in memory. Since any address within the kernel stack is guaranteed to be valid, we may eliminate the __get_user() calls as well. Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>