Query regarding page access protection flags linux kernel

ravali pullela rpravali069 at gmail.com
Tue Aug 5 07:19:23 EDT 2014


Hello,

I am trying to understand the page fault handling and MMU. These are my
queries

1) What is the exact difference between the protection flags in
vm_area_struct and pte's protection flags of the page.
Does the field "pgprot_t vm_page_prot" in vm_area_struct contain the
protection flags of all the pages in that vm_area? If so how to set these
for individual pages?

I have come across this http://marc.info/?l=linux-mm&m=109422600806490
But could not find any answer to this post.

2) Does MMU (x86 arch) check the vm_area prot flags or the page's pte flags
to cause the page fault?

Please help !!

Thanks,
Ravali
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140805/14a62722/attachment-0001.html 


More information about the Kernelnewbies mailing list