[Bug 163185] Re: ubuntu freezes completely (all graphics and mouse) when executing shell ascii forkbomb

2007-11-17 Thread mnemo
Karl, I agree; that's a very good point. How about: * Instead of setting a hard limit on the process count we can set a limit on the rate of increase? * Or otherwise, expressing the maximum as a function of the hardware specs? Also, at the end of the day even if we don't change the default value

[Bug 163185] Re: ubuntu freezes completely (all graphics and mouse) when executing shell ascii forkbomb

2007-11-16 Thread KarlGoetz
The problem with 'sensible default', is that different systems handle different amount of load differently. Ubuntu runs on systems from ~800mhz PC to 8 cored x32 threads (?) T2 Sparcs. the limit that saves my (example) 800mhz pc will mean that the T2 is almost idle. ps. I think the bug would hav

[Bug 163185] Re: ubuntu freezes completely (all graphics and mouse) when executing shell ascii forkbomb

2007-11-16 Thread mnemo
This is a really good article as well: http://www.securityfocus.com/columnists/308 -- ubuntu freezes completely (all graphics and mouse) when executing shell ascii forkbomb https://bugs.launchpad.net/bugs/163185 You received this bug notification because you are a member of Ubuntu Bugs, which is

[Bug 163185] Re: ubuntu freezes completely (all graphics and mouse) when executing shell ascii forkbomb

2007-11-16 Thread mnemo
I knew about limits.conf before I even posted this bug. The bug is only about the default values that ubuntu ships with nothing else. I believe Ubuntu should ship with a secure and stable configuration by default. * Saying that "all other platforms crash" is bad argument (try "Windows boots slow

Re: [Bug 163185] Re: ubuntu freezes completely (all graphics and mouse) when executing shell ascii forkbomb

2007-11-16 Thread John Dong
On Fri, Nov 16, 2007 at 10:39:46PM -, mnemo wrote: > Maybe ubuntu devs feel that a default limit is bad for some reason? If > so, one idea would be to allow the administrator to say "maximum X > processes can be created every Y seconds", such a feature could be use > to set a pretty non-intrusi

[Bug 163185] Re: ubuntu freezes completely (all graphics and mouse) when executing shell ascii forkbomb

2007-11-16 Thread mnemo
FWIW, I just tried it on Vista and W2K. On the latter I was able to recover just fine although it took 2-3 minutes before all my programs were swapped back into RAM. On the former taskmgr.exe just crashed so I could not get the fork bomb to stop but on Vista it can run the fork bomb for 10 minutes

[Bug 163185] Re: ubuntu freezes completely (all graphics and mouse) when executing shell ascii forkbomb

2007-11-16 Thread John Dong
This honestly isn't a bug that Ubuntu becomes unstable/slow as you instruct it to open an infinite number of processes. We assume that when the user tells the computer to do something he means it. One should avoid typing in forkbombs into the terminal if one does not want to forkbomb his computer.

[Bug 163185] Re: ubuntu freezes completely (all graphics and mouse) when executing shell ascii forkbomb

2007-11-16 Thread John Dong
In addition, to safely restart your computer after a forkbomb has been initiated, you can hold ALT-SysRq and press R E I S U B with about 5 seconds in between each letter. This will safely unmount your filesystems before restarting, so you do not incur filesystem corruption. -- ubuntu freezes com

[Bug 163185] Re: ubuntu freezes completely (all graphics and mouse) when executing shell ascii forkbomb

2007-11-16 Thread mnemo
I think it's fair to say that it's a problem that I can login to my shared web hosting company and run some command that makes the whole server unresponsive for several minutes. For this reason (and to avoid the laptop crash), I would like to see a change ubuntu default config here. Maybe ubuntu d

[Bug 163185] Re: ubuntu freezes completely (all graphics and mouse) when executing shell ascii forkbomb

2007-11-16 Thread AlejandroRiveira
To avoid that just edit /etc/security/limits.conf and add a line like: "*nproc MAX_PROCESS_COUNT" where MAX_PROCESS_COUNT is a high number (i have 2000) Problem solved PS my other post have way to many * to make sense -- ubuntu freezes completely (all graphics and mouse) wh

[Bug 163185] Re: ubuntu freezes completely (all graphics and mouse) when executing shell ascii forkbomb

2007-11-16 Thread John Dong
As Alejandro said, yeah, you can set limits on the maximum process count. To stall a forkbomb you first want to killall -STOP its associated processes, then killall them. -- ubuntu freezes completely (all graphics and mouse) when executing shell ascii forkbomb https://bugs.launchpad.net/bugs/16

[Bug 163185] Re: ubuntu freezes completely (all graphics and mouse) when executing shell ascii forkbomb

2007-11-16 Thread AlejandroRiveira
To avoid that just * edit /etc/security/limits.conf * add a line like: * nproc MAX_PROCESS_COUNT where MAX_PROCESS_COUNT is a high number (i have 2000) Problem solved -- ubuntu freezes completely (all graphics and mouse) when executing shell ascii forkbomb https://bugs.launchpad.net/bugs/

[Bug 163185] Re: ubuntu freezes completely (all graphics and mouse) when executing shell ascii forkbomb

2007-11-16 Thread mnemo
Yes, Ubunbu becoming slow is very much expected but it should be possible to "cancel" any mess and the machine should never freeze to the point when it's not possible to move the mouse. -- ubuntu freezes completely (all graphics and mouse) when executing shell ascii forkbomb https://bugs.launchp

[Bug 163185] Re: ubuntu freezes completely (all graphics and mouse) when executing shell ascii forkbomb

2007-11-16 Thread mnemo
** Visibility changed to: Public -- ubuntu freezes completely (all graphics and mouse) when executing shell ascii forkbomb https://bugs.launchpad.net/bugs/163185 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mail