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] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 14 Dec 2009 18:33:04 -0500
From:	Mike Frysinger <vapier.adi@...il.com>
To:	David Howells <dhowells@...hat.com>
Cc:	lethal@...ux-sh.org, jie.zhang@...log.com, stefani@...bold.net,
	gerg@...pgear.com, uclinux-dev@...inux.org,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/7] NOMMU: Provide per-task stack usage through /proc for 
	NOMMU

On Thu, Dec 10, 2009 at 08:58, David Howells wrote:
> Make it possible to get the per-task stack usage through /proc on a NOMMU
> system.  The MMU-mode routine can't be used because walk_page_range() doesn't
> work on NOMMU.
>
> It can be tested to show the stack usages of non-kernel-thread processes:
>
>        # grep "Stack usage:" /proc/*/status | grep -v "0 kB"
>        /proc/1/status:Stack usage:     2 kB
>        /proc/57/status:Stack usage:    3 kB
>        /proc/58/status:Stack usage:    1 kB
>        /proc/59/status:Stack usage:    3 kB
>        /proc/60/status:Stack usage:    5 kB
>        /proc/self/status:Stack usage:  1 kB
>
> I've only tested it with ELF-FDPIC, though it should work with FLAT too.

both seem to work for me.  a simple FLAT shows 1kB while one with a
2kB buffer shows 3kB.

Signed-off-by: Mike Frysinger <vapier@...too.org>
-mike
--
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