Skip to content

Commit 04769ae

Browse files
schischisuryasaimadhu
authored andcommitted
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 <mingo@kernel.org> Signed-off-by: Adrien Schildknecht <adrien+dev@schischi.me> Acked-by: Steven 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.me Signed-off-by: Borislav Petkov <bp@suse.de>
1 parent 1fc7f61 commit 04769ae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/x86/kernel/dumpstack_64.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ show_stack_log_lvl(struct task_struct *task, struct pt_regs *regs,
280280
pr_cont(" <EOI> ");
281281
}
282282
} else {
283-
if (((long) stack & (THREAD_SIZE-1)) == 0)
283+
if (kstack_end(stack))
284284
break;
285285
}
286286
if ((i % STACKSLOTS_PER_LINE) == 0) {

0 commit comments

Comments
 (0)