lkml.org 
[lkml]   [2004]   [May]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Mmap problem (VM_DENYWRITE)
* 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:03    [W:0.049 / U:0.220 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site