提交 04769ae3 编写于 作者: A Adrien Schildknecht 提交者: 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: NIngo Molnar <mingo@kernel.org>
Signed-off-by: NAdrien Schildknecht <adrien+dev@schischi.me>
Acked-by: NSteven 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: NBorislav Petkov <bp@suse.de>
上级 1fc7f61c
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册