lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Tue, 3 Mar 2015 03:28:53 -0800
From:	tip-bot for Adrien Schildknecht <tipbot@...or.com>
To:	linux-tip-commits@...r.kernel.org
Cc:	torvalds@...ux-foundation.org, bp@...e.de, adrien+dev@...ischi.me,
	mingo@...nel.org, tglx@...utronix.de, hpa@...or.com,
	rostedt@...dmis.org, linux-kernel@...r.kernel.org
Subject: [tip:x86/debug] x86/kernel: Use kstack_end() in dumpstack_64.c

Commit-ID:  04769ae3ac72f86324a189b69f53bf3bfb61acfd
Gitweb:     http://git.kernel.org/tip/04769ae3ac72f86324a189b69f53bf3bfb61acfd
Author:     Adrien Schildknecht <adrien+dev@...ischi.me>
AuthorDate: Sun, 22 Feb 2015 16:23:58 +0100
Committer:  Borislav Petkov <bp@...e.de>
CommitDate: Mon, 23 Feb 2015 18:37:13 +0100

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@...nel.org>
Signed-off-by: Adrien Schildknecht <adrien+dev@...ischi.me>
Acked-by: Steven Rostedt <rostedt@...dmis.org>
Cc: c: Linus Torvalds <torvalds@...ux-foundation.org>
Link: http://lkml.kernel.org/r/1424618638-6375-1-git-send-email-adrien+dev@schischi.me
Signed-off-by: Borislav Petkov <bp@...e.de>
---
 arch/x86/kernel/dumpstack_64.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kernel/dumpstack_64.c b/arch/x86/kernel/dumpstack_64.c
index 553573b..5f1c626 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) {
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ