aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>2007-01-03 11:21:28 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2007-01-03 11:49:59 -0500
commit7523c4dd9923cab748dad9b79d0165e118e3d03b (patch)
tree9bb07e14b5a052af1b73e3d4bb318e9060fd2182
parentb06b5a53adcc3ace1a82b324edf2b0c37e7be00e (diff)
[PATCH] x86_64: Fix dump_trace()
If caller passed the tsk, we should use it to validate a stack ptr. Otherwise, sysrq-t and other debugging stuff doesn't work. Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--arch/x86_64/kernel/traps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/kernel/traps.c b/arch/x86_64/kernel/traps.c
index 1d9eb6db732a..09d2e8a10a49 100644
--- a/arch/x86_64/kernel/traps.c
+++ b/arch/x86_64/kernel/traps.c
@@ -319,7 +319,7 @@ void dump_trace(struct task_struct *tsk, struct pt_regs *regs,
319 /* 319 /*
320 * This handles the process stack: 320 * This handles the process stack:
321 */ 321 */
322 tinfo = current_thread_info(); 322 tinfo = task_thread_info(tsk);
323 HANDLE_STACK (valid_stack_ptr(tinfo, stack)); 323 HANDLE_STACK (valid_stack_ptr(tinfo, stack));
324#undef HANDLE_STACK 324#undef HANDLE_STACK
325 put_cpu(); 325 put_cpu();