]> git.baikalelectronics.ru Git - kernel.git/commit
perf: Stop stack frame walking off kernel addresses boundaries
authorFrederic Weisbecker <fweisbec@gmail.com>
Thu, 31 Dec 2009 02:52:25 +0000 (03:52 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 13 Jan 2010 08:32:54 +0000 (09:32 +0100)
commite01cd115b49e6f7ec2ff09dcb6b207ce6570a5a1
tree3d65ac0b76107abb6cf30982f69ccb9120de5be7
parent0db55247a8c3ca919b10050735d9be5185671de6
perf: Stop stack frame walking off kernel addresses boundaries

While processing kernel perf callchains, an bad entry can be
considered as a valid stack pointer but not as a kernel address.

In this case, we hang in an endless loop. This can happen in an
x86-32 kernel after processing the last entry in a kernel
stacktrace.

Just stop the stack frame walking after we encounter an invalid
kernel address.

This fixes a hard lockup in x86-32.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <1262227945-27014-1-git-send-regression-fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/dumpstack.c