DoS with tmpfs #dynamic

Ivan Kalvatchev (iive@yahoo.com)
Thu, 9 Aug 2001 03:22:43 -0700 (PDT)


--- Helge Hafting <helgehaf@idb.hist.no> wrote:
> The problem with this is that tmpfs may be mounted
> before
> swap is initialized, so a little less than
> swap+ram will become "a little less than just RAM"
> anyway.
>
> Or do you propose a dynamic limit, changing as swap
> is added/removed? This has problems if some swap is
> removed, and suddenly tmpfs usage exceeds its quota.
>
> Helge Hafting

Yes I mean it. If tmpfs is fixed in any way the
problem will raise. If it is dynamic we have 2
possible ways:
1. First we fill most of tmpfs. Then we start some
program that needs a tones of ram. The program exit
with error and System is stable.
2. We use a lot of memory. The tmpfs decreases it's
size dynamicly and then when trying to fill it up it
return No space on device.

About swap removing. What gonna happen if ram and swap
are full and someone tries to remove the swap. Data
loss?
P.S.
Pleace don't forget that ramfs is vulnarable in the
same way. It is rarely used but is DANGEROUS.
Ivan Kalvachev

__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/