Re: How to take down a system to the point of requiring a newfs with one line of C (userland)



On Tue, Feb 19, 2008 at 01:14:08AM +1100, Mark Andrews wrote:

Patient: Doctor, it hurts when I do this!

Doctor: Don't do that...

Did you actually bother to read his report?

While his example is used "/", if the report is correct then you
just need to replace "/" with the path of any file system mount
point that is world writable like say "/tmp".

Do you have /tmp mounted like this?
/dev/ad0s4e 507630 162050 304970 35% /tmp

Have you tried using "/tmp" or some other suitable mount point
before slinging off with the old Doctor joke?

Even if it is only "/", having the system die and not be recoverable
due to having a excessive number of files in "/" is a critical
error. I'm sure you have *never* accidently copied a set of files
to "/" in your life. Me, I know I've made that sort of mistake in
the past, and as I'm not perfect, I'm sure I'll make that sort of
mistake at some point in the future. I would however like the
machine not to fallover when I do make that mistake.

Now why don't you be constructive and verify whether the report is
valid or not. I don't have a spare machine to test it on so I'm
not going to attempt it.

I tried this using /tmp/ as argv[1] and it didn't crash a 6.2 machine or
a -current from a few weeks ago. Maybe the number of files has to be
increased? I bumped it up to 100000 and tried on a 6.2 machine, but I
ran out of inodes before I could induce a crash. :)

Maybe I'm doing something wrong?

-- WXS
_______________________________________________
freebsd-security@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-security
To unsubscribe, send any mail to "freebsd-security-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: How to take down a system to the point of requiring a newfs with one line of C (userland)
    ... Doctor: Don't do that... ... While his example is used "/", if the report is correct then you ... mistake at some point in the future. ... I don't have a spare machine to test it on so I'm ...
    (FreeBSD-Security)
  • Re: How to take down a system to the point of requiring a newfs with one line of C (userland)
    ... Doctor: Don't do that... ... While his example is used "/", if the report is correct then you ... mistake at some point in the future. ... I don't have a spare machine to test it on so I'm ...
    (freebsd-stable)
  • Re: Report in FM 6 or 7
    ... Please adivse on this- and then, I get to attack this report again in ... you cannot sort by AgeDivision_Category and why the Export/Import ... act they want to be the last act of the show, they have to sort by their ... If the Age Division field contains data in the form "3-5 Age Division" ...
    (comp.databases.filemaker)
  • Re: Report in FM 6 or 7
    ... Please adivse on this- and then, I get to attack this report again in ... you cannot sort by AgeDivision_Category and why the Export/Import ... act they want to be the last act of the show, they have to sort by their ... If the Age Division field contains data in the form "3-5 Age Division" ...
    (comp.databases.filemaker)
  • Re: Gods of the future.
    ... months to obtain the first report and the second report was nearly 3 ... My wife's doctor ignored a request for 4 months, ... Neurologist at Bart's to make an appointment for my wife to see a local ...
    (uk.legal)