mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
[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:
|
* This handles the process stack:
|
||||||
*/
|
*/
|
||||||
tinfo = current_thread_info();
|
tinfo = task_thread_info(tsk);
|
||||||
HANDLE_STACK (valid_stack_ptr(tinfo, stack));
|
HANDLE_STACK (valid_stack_ptr(tinfo, stack));
|
||||||
#undef HANDLE_STACK
|
#undef HANDLE_STACK
|
||||||
put_cpu();
|
put_cpu();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user