From: Nick Piggin <nickpiggin@yahoo.com.au>
To: Dave Jones <davej@redhat.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
notting@redhat.com
Subject: Re: [PATCH] core remove PageReserved
Date: Fri, 04 Nov 2005 18:57:30 +1100 [thread overview]
Message-ID: <436B146A.8020209@yahoo.com.au> (raw)
In-Reply-To: <20051104044217.GA25858@redhat.com>
Dave Jones wrote:
> On Sat, Oct 29, 2005 at 10:02:22PM -0700, Linux Kernel wrote:
> > tree 835836cb527ec9bd525f93eb7e016f3dfb8c8ae2
> > parent f9c98d0287de42221c624482fd4f8d485c98ab22
> > author Nick Piggin <nickpiggin@yahoo.com.au> Sun, 30 Oct 2005 08:16:12 -0700
> > committer Linus Torvalds <torvalds@g5.osdl.org> Sun, 30 Oct 2005 11:40:39 -0700
> >
> > [PATCH] core remove PageReserved
> >
> > Remove PageReserved() calls from core code by tightening VM_RESERVED
> > handling in mm/ to cover PageReserved functionality.
> >
> > PageReserved special casing is removed from get_page and put_page.
> >
> > All setting and clearing of PageReserved is retained, and it is now flagged
> > in the page_alloc checks to help ensure we don't introduce any refcount
> > based freeing of Reserved pages.
> >
> > MAP_PRIVATE, PROT_WRITE of VM_RESERVED regions is tentatively being
> > deprecated. We never completely handled it correctly anyway, and is be
> > reintroduced in future if required (Hugh has a proof of concept).
>
> We've got one user reporting that he's getting the following
> message..
>
> "program ddcprobe is using MAP_PRIVATE, PROT_WRITE mmap of VM_RESERVED memory"
> since this cset.
>
> So what should happen here, does that app need changing? Or do we just
> need to get Hugh's changes merged?
>
Thanks for reporting this.
Can the app use MAP_SHARED? Or PROT_READ and copy the mapped page to
its own private one before modifying it?
It is likely to only be very specific userspace drivers and stuff
that would ever do this... but if they become a real problem then
Hugh's patch would be able to solve it. Though I'd like to try to
avoid relying on that if possible.
Perhaps the nice thing to do would be to include Hugh's patch *and*
display the warning message, and remove the functionality in a
later release.
--
SUSE Labs, Novell Inc.
Send instant messages to your online friends http://au.messenger.yahoo.com
prev parent reply other threads:[~2005-11-04 7:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200510300502.j9U52LE0027873@hera.kernel.org>
2005-11-04 4:42 ` [PATCH] core remove PageReserved Dave Jones
2005-11-04 7:57 ` Nick Piggin [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=436B146A.8020209@yahoo.com.au \
--to=nickpiggin@yahoo.com.au \
--cc=davej@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=notting@redhat.com \
/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