linux-mips
[Top] [All Lists]

can read/write to mprotect(PROT_NONE) region with 2.6.14 on au1550

To: linux-mips <linux-mips@linux-mips.org>
Subject: can read/write to mprotect(PROT_NONE) region with 2.6.14 on au1550
From: Clem Taylor <clem.taylor@gmail.com>
Date: Wed, 7 Dec 2005 16:51:23 -0500
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=kJUT7fgy6QL+o0K/uSR0FNLHMlmT3Mfvsmfc41BwUGSfypLzPZgmgZ8rB8Mc65c7Pz4urbVQRe0bnNuJVOW3HshhI7dYw4fUJ2ezq/QKALLnfdH+4l6anJ+lRMTc3eE8M6ONcd2IpjPnD6falo8atHEdGO9AyfeX5p9ViNs0lwo=
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Hi,

I was trying to use mprotect(PROT_NONE) to help debug a problem, and
it seems that mprotect() isn't actually doing anything with my 2.6.14
linux-mips kernel on an au1550. Attached is a simple test program that
segfaults as expected on x86 (2.6.12), but does not segfault on mips
(2.6.14). I can both read and write PROT_NONE memory without problem,
which should result in a segfault. Originally, I was trying to
mprotect() a mmaped GFP_DMA region which wasn't working and then I
tried a simpler test that also wasn't working.

Shouldn't mprotect() work? Could I be missing a config option, or is
this just broken?

                               Thanks,
                               Clem Taylor

Attachment: mprotectTest.c
Description: Text Data

<Prev in Thread] Current Thread [Next in Thread>
  • can read/write to mprotect(PROT_NONE) region with 2.6.14 on au1550, Clem Taylor <=