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-next>] [day] [month] [year] [list]
Date:	Tue, 13 Sep 2011 11:20:23 -0500
From:	"Linas Vepstas (Code Aurora)" <linas@...eaurora.org>
To:	linux-kernel@...r.kernel.org
Subject: [PATCH] Janitor: Typo in stack debug code


In the debug routine check_stack_usage(), free stack space is counted
in units of (unsigned long), not bytes.  Make this clear when printing.

It seems easiest to just change the message, instead of multiplying
by sizeof(unsigned long).

Signed-off-by: Linas Vepstas <linas@...eaurora.org>

---

===================================================================
--- a/kernel/exit.c
+++ b/kernel/exit.c
@@ -888,7 +888,7 @@ static void check_stack_usage(void)
 
 	spin_lock(&low_water_lock);
 	if (free < lowest_to_date) {
-		printk(KERN_WARNING "%s used greatest stack depth: %lu bytes "
+		printk(KERN_WARNING "%s used greatest stack depth: %lu words "
 				"left\n",
 				current->comm, free);
 		lowest_to_date = free;




-- 
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
--
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