Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=7523c4dd9923cab748dad9b79d0165e118e3d03b
Commit:     7523c4dd9923cab748dad9b79d0165e118e3d03b
Parent:     b06b5a53adcc3ace1a82b324edf2b0c37e7be00e
Author:     OGAWA Hirofumi <[EMAIL PROTECTED]>
AuthorDate: Thu Jan 4 01:21:28 2007 +0900
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Wed Jan 3 08:49:59 2007 -0800

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 arch/x86_64/kernel/traps.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/x86_64/kernel/traps.c b/arch/x86_64/kernel/traps.c
index 1d9eb6d..09d2e8a 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,
        /*
         * 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();
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to