x86: avoid dereferencing beyond stack + THREAD_SIZE
commitdf211d2ac9df176d9b9b4b0984f9dcb50ece39fc
authorDavid Rientjes <rientjes@google.com>
Sun, 26 Oct 2008 22:13:59 +0000 (26 18:13 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 7 Nov 2008 03:05:50 +0000 (6 19:05 -0800)
tree7a2dc3bf7def1d973edd21806e83390125c8789e
parent5e55aa8db085dad1aabb4574c73c23c7ae571e7b
x86: avoid dereferencing beyond stack + THREAD_SIZE

commit e1e23bb0513520035ec934fa3483507cb6648b7c upstream

x86: avoid dereferencing beyond stack + THREAD_SIZE

It's possible for get_wchan() to dereference past task->stack + THREAD_SIZE
while iterating through instruction pointers if fp equals the upper boundary,
causing a kernel panic.

Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Cc: Chuck Ebbert <cebbert@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kernel/process_64.c