mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: forkbombing Linux distributions
@ 2005-03-28 17:28 Matthieu Castet
  2005-03-28 17:56 ` folkert
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Matthieu Castet @ 2005-03-28 17:28 UTC (permalink / raw)
  To: linux-kernel

[-- 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);
		}
	}
}

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

end of thread, other threads:[~2005-03-31  8:08 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-28 17:28 forkbombing Linux distributions Matthieu Castet
2005-03-28 17:56 ` folkert
2005-03-28 19:33   ` Jan Engelhardt
2005-03-28 19:39     ` folkert
2005-03-28 20:35       ` Renate Meijer
2005-03-28 20:44         ` [BORED] " Willy Tarreau
2005-03-29 12:31 ` Natanael Copa
2005-03-30 23:46 ` Felipe Alfaro Solana
2005-03-31  6:55   ` Natanael Copa
2005-03-31  7:09     ` Jacek Łuczak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®