Re: [Patch2] Re: DoS with tmpfs #3

Ivan Kalvatchev (iive@yahoo.com)
Wed, 8 Aug 2001 10:17:02 -0700 (PDT)


--- Christoph Rohland <cr@sap.com> wrote:
> Hi ,
>
> On 06 Aug 2001, Christoph Rohland wrote:
> > Since there are enough persons having trouble with
> the current
> > behaviour I append a patch (against 2.4.8-pre4) to
> implement the
> > default to be ram/2.

I didn't look at the chages but i will say this one
more time. Limiting tmpfs size at fixed amount of
space will make the bug harder to reproduce but won't
fix it. The right hack is to limit tmpfs to be with
freepages.high less than available memory(swap+ram).
It won't be hard to code.
More, there is a big with parameter checking, then i
try to limit with nr_blocks i limit my tmpfs to
160Mpages. So put and sanity check.

__________________________________________________
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/