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  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Sat, 3 Apr 2010 23:44:26 +0530
From:	"Leonidas ." <leonidas137@...il.com>
To:	linux-kernel <linux-kernel@...r.kernel.org>
Subject: Ptrace : reading process user area, stack size etc

Hi

I am trying to read the stack size from user area for processes which
I am ptracing, for some reason
the stack is being reported as ffffffff.

This is how I am trying read the stack size, using struct user from
sys/user.h, I am on x86,

stack_size = ptrace (PTRACE_PEEKUSER, getpid(), offsetof (struct user,
u_ssize), 0);


Any idea? What is the best way to read stack size of each thread? I
know getrlimit() but that just talks about
size of main thread. Each thread on my system can have different stack
size and I cant use pthread_* functions
here.


-Leo.
--
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