All of lore.kernel.org
 help / color / mirror / Atom feed
From: Adrian Cox <adrian@humboldt.co.uk>
To: Andrew Morton <akpm@zip.com.au>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Filling holes in ext2
Date: Wed, 22 Aug 2001 19:59:57 +0100	[thread overview]
Message-ID: <3B84012D.1010303@humboldt.co.uk> (raw)
In-Reply-To: <3B83E9FD.6020801@humboldt.co.uk> <3B83FB3F.A0BDC056@zip.com.au>

Andrew Morton wrote:
> Adrian Cox wrote:

>>Can this actually be exploited?  I assume the test on __copy_from_user()
>>is there in case another thread changes memory mappings while
>>generic_file_write() is running. My attempts to do this haven't yet
>>succeeded.
> I'd expect it to occur if you simply pass an unmapped address
> to write()?

No, because the first thing generic_file_write does is an access_ok() 
check. It can only happen if the permissions change during the function. 
That's why it's hard to exploit for real.

-- 
Adrian Cox   http://www.humboldt.co.uk/


  reply	other threads:[~2001-08-22 19:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-22 17:21 Filling holes in ext2 Adrian Cox
2001-08-22 18:34 ` Andrew Morton
2001-08-22 18:59   ` Adrian Cox [this message]
2001-08-23 17:22   ` Adrian Cox
2001-08-23 17:46     ` Andrew Morton
2001-08-23 19:17       ` Adrian Cox
2001-08-23 19:23         ` Alan Cox
2001-08-23 19:41         ` Andrew Morton
2001-08-23 21:21           ` Adrian Cox
2001-08-23 17:47     ` Alan Cox

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=3B84012D.1010303@humboldt.co.uk \
    --to=adrian@humboldt.co.uk \
    --cc=akpm@zip.com.au \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.