linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* bug w/ threads-max, pid_max, & /proc
@ 2003-09-23 21:23 Albert Cahalan
  2003-09-23 22:58 ` William Lee Irwin III
  0 siblings, 1 reply; 2+ messages in thread
From: Albert Cahalan @ 2003-09-23 21:23 UTC (permalink / raw)
  To: linux-kernel mailing list

Plain 2.6.0-test5 is affected. (so don't blame me)
The /proc filesystem gets really messed up when you
create more threads than you have PID values. Yes,
you can do this. I created 40000 threads on a system
with pid_max of 32768 and a threads-max of 98304.
This should not be allowed, for obvious reasons, and
because it breaks the /proc filesystem. Doing a
simple "/bin/ls /proc" would return 0, 1, or 2 of
every file. Stuff like /proc/cpuinfo was affected,
not just the process directories.



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: bug w/ threads-max, pid_max, & /proc
  2003-09-23 21:23 bug w/ threads-max, pid_max, & /proc Albert Cahalan
@ 2003-09-23 22:58 ` William Lee Irwin III
  0 siblings, 0 replies; 2+ messages in thread
From: William Lee Irwin III @ 2003-09-23 22:58 UTC (permalink / raw)
  To: Albert Cahalan; +Cc: linux-kernel mailing list

On Tue, Sep 23, 2003 at 05:23:13PM -0400, Albert Cahalan wrote:
> Plain 2.6.0-test5 is affected. (so don't blame me)
> The /proc filesystem gets really messed up when you
> create more threads than you have PID values. Yes,
> you can do this. I created 40000 threads on a system
> with pid_max of 32768 and a threads-max of 98304.
> This should not be allowed, for obvious reasons, and
> because it breaks the /proc filesystem. Doing a
> simple "/bin/ls /proc" would return 0, 1, or 2 of
> every file. Stuff like /proc/cpuinfo was affected,
> not just the process directories.

There must be a bug; the pid allocator should report exhaustion then
instead of allowing the threads to be created. ISTR testing this...


-- wli

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-09-23 22:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-23 21:23 bug w/ threads-max, pid_max, & /proc Albert Cahalan
2003-09-23 22:58 ` William Lee Irwin III

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).