Commit 04769ae3 authored by Adrien Schildknecht's avatar Adrien Schildknecht Committed by Borislav Petkov

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: default avatarIngo Molnar <mingo@kernel.org>
Signed-off-by: default avatarAdrien Schildknecht <adrien+dev@schischi.me>
Acked-by: default avatarSteven Rostedt <rostedt@goodmis.org>
Cc: c: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/1424618638-6375-1-git-send-email-adrien+dev@schischi.meSigned-off-by: default avatarBorislav Petkov <bp@suse.de>
parent 1fc7f61c
...@@ -280,7 +280,7 @@ show_stack_log_lvl(struct task_struct *task, struct pt_regs *regs, ...@@ -280,7 +280,7 @@ show_stack_log_lvl(struct task_struct *task, struct pt_regs *regs,
pr_cont(" <EOI> "); pr_cont(" <EOI> ");
} }
} else { } else {
if (((long) stack & (THREAD_SIZE-1)) == 0) if (kstack_end(stack))
break; break;
} }
if ((i % STACKSLOTS_PER_LINE) == 0) { if ((i % STACKSLOTS_PER_LINE) == 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment