[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>
This commit is contained in:
parent
b06b5a53ad
commit
7523c4dd99
|
@ -319,7 +319,7 @@ void dump_trace(struct task_struct *tsk, struct pt_regs *regs,
|
|||
/*
|
||||
* This handles the process stack:
|
||||
*/
|
||||
tinfo = current_thread_info();
|
||||
tinfo = task_thread_info(tsk);
|
||||
HANDLE_STACK (valid_stack_ptr(tinfo, stack));
|
||||
#undef HANDLE_STACK
|
||||
put_cpu();
|
||||
|
|
Loading…
Reference in New Issue