RE: [EXTERNAL] Re: Fork bomb question about Cygwin

"Lavrentiev, Anton \(NIH/NLM/NCBI\) \[C\] via Cygwin" <[email protected]>
Newsgroups gmane.os.cygwin
Message-ID <MN2PR09MB4923E9791ACE7A72130C5992A594A@MN2PR09MB4923.namprd09.prod.outlook.com>
> Yes.  As on Linux and other systems, there's no default restriction(*)
> for the number of processes of an unprivileged user.

> This is not something controlled by Cygwin, rather by the OS.  Cygwin
> provides the POSIX calls getrlimit/setrlimit, but obviously those have
> to be implemented in terms of OS functions or faked.
> 
> The only implemented limits are RLIMIT_AS, RLIMIT_CORE, RLIMIT_NOFILE
> and RLIMIT_STACK, and only RLIMIT_AS is actually calling into the OS to
> install a restriction.

Thank you, Corinna, for all the explanations!

So basically, Windows is inherently susceptible for the fork bomb attack, and there's nothing Cygwin-specific in this vulnerability, or something that Cygwin can add to make it worse than it already is.

Anton Lavrentiev
Contractor NIH/NLM/NCBI

P.S. As a "regular" Linux user, I do have the process limit in my environment set as 2048, and I think that's effectively protects the system from the runaway situation.  Also, it looks like I have never hit this limit in the real use-case scenarios so it is quite adequate not to interfere with the day-to-day work.

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.