From: Arjan van de Ven <arjan@linux.intel.com>
To: Chris Wedgwood <cw@f00f.org>
Cc: akpm@osdl.org, linux-arch@vger.kernel.org, jbaron@redhat.com,
ak@muc.de, alan@lxorguk.ukuu.org.uk, benh@kernel.crashing.org,
geert@linux-m68k.org, hugh@veritas.com, kkojima@rr.iij4u.or.jp,
lethal@linux-sh.org, paulus@samba.org, rmk@arm.linux.org.uk,
spyro@f2s.com, tony.luck@intel.com, zippel@linux-m68k.org
Subject: Re: [patch 1/1] make PROT_WRITE imply PROT_READ
Date: Sun, 17 Sep 2006 22:48:43 +0200 [thread overview]
Message-ID: <450DB4AB.2040105@linux.intel.com> (raw)
In-Reply-To: <20060917202408.GA10031@tuatara.stupidest.org>
Chris Wedgwood wrote:
> On Thu, Sep 14, 2006 at 06:39:47PM -0700, akpm@osdl.org wrote:
>
>> Make PROT_WRITE imply PROT_READ for a number of architectures which
>> don't support write only in hardware.
>
> Why don't we WARN where PROT_WRITE is used w/o PROT_READ? Do
> non-trivial or non-contrived applications really use PROT_WRITE and
> assume reads are OK?
>
> It seems once we do this there will be little or no chance of ever
> doing write-only mappings should we want to in the future using this
> mechanism.
>
> We could just update the definition of PROT_WRITE in the userspace
> headers...
btw PROT_WRITE does make sense in principle for MMIO mappings, especially
uncachable ones. Not per se on native hardware, but in the hardware enabled
virtualization (Intel VT or AMD-V) case this suddenly becomes very easily
enforcable and probably even worth enforcing (since in that case the hypervisor
traps on each access to the memory and simulates the instruction anyway;
only writes means it's a lot simpler in terms of IOMMU and cache coherency etc
etc)
next prev parent reply other threads:[~2006-09-17 20:48 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-15 1:39 [patch 1/1] make PROT_WRITE imply PROT_READ akpm
2006-09-15 4:53 ` Arjan van de Ven
2006-09-15 11:10 ` Alan Cox
2006-09-15 8:06 ` Geert Uytterhoeven
2006-09-15 10:58 ` Alan Cox
2006-09-15 8:47 ` Andi Kleen
2006-09-15 11:12 ` Alan Cox
2006-09-16 0:40 ` Ralf Baechle
2006-09-17 11:59 ` Paul Mundt
2006-09-17 20:24 ` Chris Wedgwood
2006-09-17 20:48 ` Arjan van de Ven [this message]
2006-09-17 21:14 ` Alan Cox
2006-09-17 21:05 ` Arjan van de Ven
2006-09-18 0:57 ` Chris Wedgwood
2006-09-18 2:03 ` Paul Mackerras
2006-09-18 4:31 ` Chris Wedgwood
2006-09-18 8:15 ` Geert Uytterhoeven
2006-09-18 9:26 ` 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=450DB4AB.2040105@linux.intel.com \
--to=arjan@linux.intel.com \
--cc=ak@muc.de \
--cc=akpm@osdl.org \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=benh@kernel.crashing.org \
--cc=cw@f00f.org \
--cc=geert@linux-m68k.org \
--cc=hugh@veritas.com \
--cc=jbaron@redhat.com \
--cc=kkojima@rr.iij4u.or.jp \
--cc=lethal@linux-sh.org \
--cc=linux-arch@vger.kernel.org \
--cc=paulus@samba.org \
--cc=rmk@arm.linux.org.uk \
--cc=spyro@f2s.com \
--cc=tony.luck@intel.com \
--cc=zippel@linux-m68k.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.