From: Andrea Arcangeli <andrea@suse.de>
To: Linus Torvalds <torvalds@osdl.org>
Cc: Hugh Dickins <hugh@veritas.com>, Nick Piggin <npiggin@novell.com>,
linux-kernel@vger.kernel.org, Andrew Morton <akpm@osdl.org>,
Roland McGrath <roland@redhat.com>
Subject: Re: ptrace can't be transparent on readonly MAP_SHARED
Date: Thu, 15 Sep 2005 18:23:47 +0200 [thread overview]
Message-ID: <20050915162347.GC4122@opteron.random> (raw)
In-Reply-To: <Pine.LNX.4.58.0509150911180.26803@g5.osdl.org>
On Thu, Sep 15, 2005 at 09:13:02AM -0700, Linus Torvalds wrote:
>
>
> On Thu, 15 Sep 2005, Andrea Arcangeli wrote:
>
> > On Thu, Sep 15, 2005 at 08:12:59AM -0700, Linus Torvalds wrote:
> > > have a PROT_READONLY/PROT_NONE area that is visible from the debugger, but
> > > continues to cause SIGSEGV's if the user process itself tries to access
> > > it. To me, that's good.
> >
> > Continue to cause sigsegv yes, but on the wrong page, when it will read
> > the page it can contain different data compared to what is on
> > disk/pagecache.
>
> So? You're not making any sense.
I'll try again: what is the point of still getting page faults on writes
when the first read will contain the wrong data?
And what is the point of writing to a prot_none with ptrace? That really
makes no sense.
I'm not saying the cow should go away, I'm saying that marking the pte
readonly after writing to it makes no sense.
I've said maybe_mkwrite makes no sense, I didn't say the cow makes no
sense.
> I repeat: we CANNOT AVOID the fact that we will do COW.
>
> That COW is required. No way we can avoid it. It has _nothing_ to do with
> maybe_mkwrite().
>
> So I don't know why you continually refuse to just admit that fact. Why do
> you mix up the COW semantics with the maybe_mkwrite() semantics.
>
> If you can't argue against maybe_mkwrite() without involving the COW
> argument, then stop arguing. They are two totally different thigns.
I wasn't arguing about that, infact Hugh noticed that I suggested that
avoiding the cow is not an option (he's the one that disagreed with you
on this if something).
next prev parent reply other threads:[~2005-09-15 16:23 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-14 21:24 ptrace can't be transparent on readonly MAP_SHARED Andrea Arcangeli
2005-09-15 4:05 ` Nick Piggin
2005-09-15 13:18 ` Hugh Dickins
2005-09-15 15:12 ` Linus Torvalds
2005-09-15 15:47 ` Andrea Arcangeli
2005-09-15 16:13 ` Linus Torvalds
2005-09-15 16:23 ` Andrea Arcangeli [this message]
2005-09-15 16:34 ` Linus Torvalds
2005-09-15 16:51 ` Andrea Arcangeli
2005-09-15 17:52 ` Linus Torvalds
2005-09-15 18:09 ` Andrea Arcangeli
2005-09-15 21:09 ` Daniel Jacobowitz
2005-09-15 21:58 ` Andrea Arcangeli
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=20050915162347.GC4122@opteron.random \
--to=andrea@suse.de \
--cc=akpm@osdl.org \
--cc=hugh@veritas.com \
--cc=linux-kernel@vger.kernel.org \
--cc=npiggin@novell.com \
--cc=roland@redhat.com \
--cc=torvalds@osdl.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