From: Haavard Skinnemoen Date: Wed, 21 Feb 2007 12:08:06 +0000 (+0100) Subject: [AVR32] show_trace: Only walk valid stack addresses X-Git-Tag: v2.6.21-rc4~102^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3338368e922a6686a3b3d6f4da07babd224788d4;p=pandora-kernel.git [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 --- Reading git-diff-tree failed