Re: Reiser4 DOS
Michael Buesch writes: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi, > > I'm running linux-2.6.5 with latest reiser4 snapshot patch. > The following script makes my system completely > unresponsive in a short time. > > #!/bin/sh > mount -treiser4 /dev/hdX /mnt/reiser4 > cd /mnt/reiser4 > while `/bin/true`; do > cd metas > done One can DoS any Linux file-system by $ while : ;do mkdir x && cd x ;done Due to some shell peculiarities (like doing getcwd() on each cd), it may be necessary to re-write this in C. Problem is less grave on SMP system, but it's only matter of running enough instances of this in parallel. :) Nikita. > > - -- > Regards Michael Buesch [ http://www.tuxsoft.de.vu ] > > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.2.4 (GNU/Linux) > > iD8DBQFAlPn4FGK1OIvVOP4RApOgAJ9JRZIll4hLLIL2Ml0ve7Xb3qagYQCeP9xp > puYCi/4tQPJfrffz0VatWck= > =6bBp > -END PGP SIGNATURE-
Re: Reiser4 DOS
Markus Törnqvist wrote: On Sun, May 02, 2004 at 03:38:47PM +0200, Michael Buesch wrote: #!/bin/sh mount -treiser4 /dev/hdX /mnt/reiser4 cd /mnt/reiser4 while `/bin/true`; do cd metas done Do I remember something of my own, or wasn't there some discussion about this? "Should meta files have meta files" I'd say this is a bug, meta files seem like they shouldn't have meta data, by definition. Nikita Is this going away in the next snapshot? What about the metas dir inheriting +x from it's parent DIRECTORY, and not necessarily parent FILE?
Re: Reiser4 DOS
On Sun, May 02, 2004 at 03:38:47PM +0200, Michael Buesch wrote: > >#!/bin/sh >mount -treiser4 /dev/hdX /mnt/reiser4 >cd /mnt/reiser4 >while `/bin/true`; do > cd metas >done Do I remember something of my own, or wasn't there some discussion about this? "Should meta files have meta files" I'd say this is a bug, meta files seem like they shouldn't have meta data, by definition. Is this going away in the next snapshot? What about the metas dir inheriting +x from it's parent DIRECTORY, and not necessarily parent FILE? -- mjt
Re: Reiser4 DOS
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sunday 02 May 2004 15:54, you wrote: > Are you sure this does not happen on other filesystem? This loop No, I don't know another filesystem with some kind of these meta-files and directories. > mainly creates process creation pressure and is more likely some > scheduler thing than Reiser4. > > Maybe you can cure this using: > > while : ; do > ... Same thing. Memory usage grows and grows until the system is dead. > > Sincerely yours, > René Rebe > - ROCK Linux stable release maintainer - -- Regards Michael Buesch [ http://www.tuxsoft.de.vu ] -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFAlQHkFGK1OIvVOP4RAogNAJ4x4OsLwitzzkz0wHkISY6ifmE1+wCfZ6GY cONDV0t989B5RuCWiDh65ZM= =Bfys -END PGP SIGNATURE-