From: Pete Popov <ppopov@embeddedalley.com>
To: Clem Taylor <clem.taylor@gmail.com>
Cc: "'linux-mips@linux-mips.org'" <linux-mips@linux-mips.org>
Subject: Re: mprotect(PROT_NONE) doesn't prevent reading/writing on 2.6.14 Au1550
Date: Mon, 12 Dec 2005 20:52:36 -0800 [thread overview]
Message-ID: <1134449556.5151.2.camel@localhost.localdomain> (raw)
In-Reply-To: <ecb4efd10512121334g6713d30ftf5a351fc61f1b6bd@mail.gmail.com>
On Mon, 2005-12-12 at 16:34 -0500, Clem Taylor wrote:
> Hi,
>
> It seems that mprotect(PROT_NONE) isn't actually doing anything on my
> 2.6.14 au1550 system.
>
> Attached is a simple test that allocates 64K (64K aligned),
> reads/writes the buffer, mprotect(PROT_NONE) the buffer and then
> attempts to read and write to the buffer a second time. I expected
> that writing to a PROT_NONE page would result in a segfault, but on
> the Au1550 the program runs without faulting. Running the same code on
> x86 (2.6.13) segfaults as expected.
>
> Is there some reason why mprotect() wouldn't work on the Au1550, or is
> this a bug?
Do you have another MIPS system you can test this on?
Pete
prev parent reply other threads:[~2005-12-13 4:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-12 21:34 mprotect(PROT_NONE) doesn't prevent reading/writing on 2.6.14 Au1550 Clem Taylor
2005-12-13 4:52 ` Pete Popov [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=1134449556.5151.2.camel@localhost.localdomain \
--to=ppopov@embeddedalley.com \
--cc=clem.taylor@gmail.com \
--cc=linux-mips@linux-mips.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