Re: Mmap problem (VM_DENYWRITE)

From: Chris Wright
Date: Mon May 24 2004 - 15:33:49 EST


* shanthi kiran pendyala (skiranp@xxxxxxxxx) 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/