mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Chris Wright <chrisw@osdl.org>
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:29:10 -0700	[thread overview]
Message-ID: <20040524132910.K22989@build.pdx.osdl.net> (raw)
In-Reply-To: <000a01c441bf$ccb83600$322147ab@amer.cisco.com>; from skiranp@cisco.com on Mon, May 24, 2004 at 11:49:10AM -0700

* shanthi kiran pendyala (skiranp@cisco.com) wrote:
> The complete prot flag is (VM_READ | VM_WRITE | VM_EXEC | VM_GROWSUP |
> VM_DENYWRITE)
[snip]
> Output after running test program
> =================================
>  building page tables for va 0x2aac5000 phy 0x10940000 
>  vsize 0x20000 psize 0x20000 prot 0xa07
> 
[snip]

>     printk("<1> vsize 0x%lx psize 0x%lx prot 0x%lx\n",
>            vsize, psize, vma->vm_page_prot.pgprot);

I believe you've drawn the wrong conclusion.  This contains page
protection bits relevant for the page tables.  You've decoded
vm_page_prot as if it were vm_flags.

thanks,
-chris
-- 
Linux Security Modules     http://lsm.immunix.org     http://lsm.bkbits.net

      parent reply	other threads:[~2004-05-24 20:30 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
2004-05-24 20:22   ` Richard B. Johnson
2004-05-24 20:29   ` Chris Wright [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=20040524132910.K22989@build.pdx.osdl.net \
    --to=chrisw@osdl.org \
    --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®