aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrien Schildknecht <[email protected]>2015-02-22 16:23:58 +0100
committerBorislav Petkov <[email protected]>2015-02-23 18:37:13 +0100
commit04769ae3ac72f86324a189b69f53bf3bfb61acfd (patch)
tree378a0eb30708daba6e44bfb27004de8b8e581cb1
parent1fc7f61c3e604f6bf778b5c6afc2715d79ab7f36 (diff)
x86/kernel: Use kstack_end() in dumpstack_64.c
i386 is already using kstack_end() in dumpstack_32.c. We should also use it to make the code clearer and unify the stack printing logic some more. Suggested-by: Ingo Molnar <[email protected]> Signed-off-by: Adrien Schildknecht <[email protected]> Acked-by: Steven Rostedt <[email protected]> Cc: c: Linus Torvalds <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Borislav Petkov <[email protected]>
-rw-r--r--arch/x86/kernel/dumpstack_64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/dumpstack_64.c b/arch/x86/kernel/dumpstack_64.c
index 553573bcf0ee..5f1c6266eb30 100644
--- a/arch/x86/kernel/dumpstack_64.c
+++ b/arch/x86/kernel/dumpstack_64.c
@@ -280,7 +280,7 @@ show_stack_log_lvl(struct task_struct *task, struct pt_regs *regs,
pr_cont(" <EOI> ");
}
} else {
- if (((long) stack & (THREAD_SIZE-1)) == 0)
+ if (kstack_end(stack))
break;
}
if ((i % STACKSLOTS_PER_LINE) == 0) {