From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Rusty Russell <rusty@rustcorp.com.au>
Cc: Jamie Lokier <lk@tantalophile.demon.co.uk>,
"Perez-Gonzalez, Inaky" <inaky.perez-gonzalez@intel.com>,
"'Mark Mielke'" <mark@mark.mielke.cc>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Users locking memory using futexes
Date: 12 Nov 2002 18:06:24 +0000 [thread overview]
Message-ID: <1037124384.8321.70.camel@irongate.swansea.linux.org.uk> (raw)
In-Reply-To: <20021112172423.6E0322C27F@lists.samba.org>
On Tue, 2002-11-12 at 17:17, Rusty Russell wrote:
> > Ouch! It looks to me like userspace can use FUTEX_FD to lock many
> > pages of memory, achieving the same as mlock() but without the
> > resource checks.
> >
> > Denial of service attack?
>
> See "pipe".
Thats not an excuse. If the futex stuff allows arbitary memory locking
and it isnt properly accounted then its a bug, with the added problem
that its easier to have nasty accidents with than pipes.
We have a per user object nowdays so accounting per user locked memory
looks rather doable both for mlock, pipe, af_unix socket and for other
things
next prev parent reply other threads:[~2002-11-12 17:37 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-11 20:28 PROT_SEM + FUTEX Perez-Gonzalez, Inaky
2002-11-11 21:46 ` Mark Mielke
2002-11-12 3:46 ` Users locking memory using futexes Jamie Lokier
2002-11-12 17:17 ` Rusty Russell
2002-11-12 18:06 ` Alan Cox [this message]
2002-11-12 18:13 ` Rusty Russell
2002-11-13 14:27 ` Alan Cox
2002-11-12 4:16 Perez-Gonzalez, Inaky
2002-11-12 5:21 ` Jamie Lokier
2002-11-12 9:11 ` Ingo Molnar
2002-11-12 17:40 ` Jamie Lokier
2002-11-12 5:56 Perez-Gonzalez, Inaky
2002-11-12 17:36 ` Jamie Lokier
2002-11-12 17:57 Perez-Gonzalez, Inaky
2002-11-12 19:17 ` Jamie Lokier
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=1037124384.8321.70.camel@irongate.swansea.linux.org.uk \
--to=alan@lxorguk.ukuu.org.uk \
--cc=inaky.perez-gonzalez@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lk@tantalophile.demon.co.uk \
--cc=mark@mark.mielke.cc \
--cc=rusty@rustcorp.com.au \
/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®