tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: posix_fallocate



> [...] this opens a trivial DoS attack like ....

>       for (;;) {
>               ftruncate(fd);
>               posix_fallocate(fd, (off_t)0, huge);
>       }

How, exactly, is this any more of a DoS than doing the same thing but
using one or more write() calls instead of the posix_fallocate()?

/~\ The ASCII                             Mouse
\ / Ribbon Campaign
 X  Against HTML                mouse%rodents-montreal.org@localhost
/ \ Email!           7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B


Home | Main Index | Thread Index | Old Index