From: Tommy Reynolds <Tommy.Reynolds@MegaCoder.com>
To: "shanthi kiran pendyala" <skiranp@cisco.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Mmap problem (VM_DENYWRITE)
Date: Mon, 24 May 2004 13:58:50 -0500 [thread overview]
Message-ID: <20040524135850.31ac9e62.Tommy.Reynolds@MegaCoder.com> (raw)
In-Reply-To: <000a01c441bf$ccb83600$322147ab@amer.cisco.com>
[-- Attachment #1: Type: text/plain, Size: 650 bytes --]
Uttered "shanthi kiran pendyala" <skiranp@cisco.com>, spake thus:
> After mmaping in userspace any writes to the mmap region is not working.
> I think it is b'cos of the protection field in the vma is set to
> VM_DENYWRITE.
> The complete prot flag is (VM_READ | VM_WRITE | VM_EXEC | VM_GROWSUP |
> VM_DENYWRITE)
>
> Why is this happening? I need to have both read and write access to region.
> How do I fix this ?
Take out the VM_DENYWRITE flag. Duh.
Are you gonna put code in the mapped area? No? Turn off VM_EXEC.
Are you gonna place your stack in the mapped area? No? Turn of
VM_GROWSUP.
Have you read "man mmap"? No? Try it.
Cheers!
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2004-05-24 18:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20040519062044.15651.qmail@web90107.mail.scd.yahoo.com>
2004-05-24 18:49 ` shanthi kiran pendyala
2004-05-24 18:58 ` Tommy Reynolds [this message]
2004-05-24 20:22 ` Richard B. Johnson
2004-05-24 20:29 ` Chris Wright
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=20040524135850.31ac9e62.Tommy.Reynolds@MegaCoder.com \
--to=tommy.reynolds@megacoder.com \
--cc=linux-kernel@vger.kernel.org \
--cc=skiranp@cisco.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
all inboxes | Powered by JetHome®