mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ivan Kalvatchev <iive@yahoo.com>
To: kernelbug <linux-kernel@vger.kernel.org>
Subject: DoS with tmpfs #dynamic
Date: Thu, 9 Aug 2001 03:22:43 -0700 (PDT)	[thread overview]
Message-ID: <20010809102243.95913.qmail@web13606.mail.yahoo.com> (raw)
In-Reply-To: <3B722DE4.96DA5711@idb.hist.no>


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

      parent reply	other threads:[~2001-08-09 10:23 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-03 16:34 DoS with tmpfs #3 Ivan Kalvatchev
2001-08-04  6:07 ` Rik van Riel
2001-08-04 18:36   ` Chris Wedgwood
2001-08-04 19:53     ` Rik van Riel
2001-08-06 16:28     ` [Patch] " Christoph Rohland
2001-08-06 16:29       ` [Patch-ac] " Christoph Rohland
2001-08-07  9:09       ` [Patch2] " Christoph Rohland
2001-08-08 17:17         ` Ivan Kalvatchev
2001-08-09  6:29           ` Helge Hafting
2001-08-09  7:08             ` Thoughts on tmpfs and swapfs Riley Williams
2001-08-09 10:22             ` Ivan Kalvatchev [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010809102243.95913.qmail@web13606.mail.yahoo.com \
    --to=iive@yahoo.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®