From: Chris Wedgwood <cw@f00f.org>
To: Andrea Arcangeli <andrea@suse.de>
Cc: Andrew Morton <andrewm@uow.edu.au>,
Linux Kernel Development <linux-kernel@vger.kernel.org>
Subject: Re: msync() bug
Date: Wed, 11 Jul 2001 01:25:24 +1200 [thread overview]
Message-ID: <20010711012524.A31799@weta.f00f.org> (raw)
In-Reply-To: <20010709170835.J1594@athlon.random>
(cc' list snipped)
This stuff is gold.
Anyone clueful want to comment things so this will end up in the
documentation when you do a make docbook or something?
Having access to simple facts like this is of so much value to those
of us who simply just don't have the time and/or exposure and many of
you (oh, and of course some of us just aren't as clever and need a
little more help!)
--cw
On Mon, Jul 09, 2001 at 05:08:35PM +0200, Andrea Arcangeli wrote:
On Tue, Jul 10, 2001 at 12:43:12AM +1000, Andrew Morton wrote:
> If the physical address of the page is somewhere inside our
> working RAM.
correct.
> > !PageReserved(page)
>
> And it's not a reserved page (discontigmem?)
yes, but it's not discontigmem issue, it is the other way around (page
structure is valid but it maps to non ram, like the 640k-1M region that
we have the page structure for, we don't use discontigmem for it because
the hole is too smalle, but it is non ram, or also normal ram mapped by
some device as dma region).
> > ptep_test_and_clear_dirty(ptep))
>
> And if it was modified via this mapping
yes.
>
> > + flush_tlb_page(vma, address);
> > + set_page_dirty(page);
>
> Question: What happens if a program mmap's a part of /dev/mem
> which passes all of these tests? Couldn't it then pick some
that cannot happen, remap_pte_range only maps invalid pages or reserved
pages.
next prev parent reply other threads:[~2001-07-10 13:25 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-09 8:50 Abraham vd Merwe
2001-07-09 12:32 ` Andrew Morton
2001-07-09 14:21 ` Andrea Arcangeli
2001-07-09 14:43 ` Andrew Morton
2001-07-09 15:08 ` Andrea Arcangeli
2001-07-09 17:37 ` Hugh Dickins
2001-07-09 17:42 ` Linus Torvalds
2001-07-09 17:58 ` Hugh Dickins
2001-07-09 18:00 ` Linus Torvalds
2001-07-10 13:25 ` Chris Wedgwood [this message]
2001-07-10 14:03 ` Andrew Morton
2001-07-10 14:15 ` 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=20010711012524.A31799@weta.f00f.org \
--to=cw@f00f.org \
--cc=andrea@suse.de \
--cc=andrewm@uow.edu.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 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®