x86/dumpstack: Fix show_stack() task pointer regression
authorJosh Poimboeuf <[email protected]>
Tue, 20 Sep 2016 15:53:40 +0000 (10:53 -0500)
committerIngo Molnar <[email protected]>
Tue, 20 Sep 2016 21:36:37 +0000 (23:36 +0200)
With the following commit:

  e18bcccd1a4e ("x86/dumpstack: Convert show_trace_log_lvl() to use the new unwinder")

The task pointer argument to show_stack_log_lvl() in show_stack() was
inadvertently changed to 'current'.

Signed-off-by: Josh Poimboeuf <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Brian Gerst <[email protected]>
Cc: Denys Vlasenko <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: tip-bot for Josh Poimboeuf <[email protected]>
Fixes: e18bcccd1a4e ("x86/dumpstack: Convert show_trace_log_lvl() to use the new unwinder")
Link: http://lkml.kernel.org/r/20160920155340.yhewlx7vmgmov5fb@treble
Signed-off-by: Ingo Molnar <[email protected]>
arch/x86/kernel/dumpstack.c

index 999de3b3f7f46b96aeb7cfcf4c65fc18dd0dfe90..9b7cf5c28f5fa8557d23083047995bd93af1a68a 100644 (file)
@@ -164,7 +164,7 @@ void show_stack(struct task_struct *task, unsigned long *sp)
        if (!sp && task == current)
                sp = get_stack_pointer(current, NULL);
 
-       show_stack_log_lvl(current, NULL, sp, "");
+       show_stack_log_lvl(task, NULL, sp, "");
 }
 
 void show_stack_regs(struct pt_regs *regs)