https://issues.apache.org/bugzilla/show_bug.cgi?id=56901
Bug ID: 56901
Summary: Fork bomb is available!
Product: Apache httpd-2
Version: 2.2.27
Hardware: PC
OS: Linux
Status: NEW
Severity: critical
Priority: P2
Component: mod_fcgid
Assignee: [email protected]
Reporter: [email protected]
Hello!
Fork bomb's not working in the shell.
Limits in `/etc/security/limits.conf` are working.
@users soft nproc 50
@users hard nproc 60
@apache soft nproc 500
@apache hard nrpoc 600
* soft nproc 1900
* hard nproc 2000
If I run Perl or Python or PHP or Bash scripts in the shell, then I get
message:
Unable to fork: Resource temporarily unavailable
Is ok!
But If I run these scripts in the apache then fork bomb's are working!
Example Python script:
test.py:
#!/usr/bin/python
import os
while True:
os.fork()
End script.
Shell output:
File "./test.py", line 5, in <module>
os.fork()
OSError: [Errno 11] Resource temporarily unavailable
Apache output... create 25000+ processes
But I have line in the limits.conf:
* hard nproc 2000
Well then processes forking from root?
httpd.conf:
User apache
Group apache
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]