kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Capturing all writes as fault on a memory mapped page.
@ 2014-05-28 13:17 Pranay Srivastava
  2014-05-28 13:29 ` Greg KH
  0 siblings, 1 reply; 5+ messages in thread
From: Pranay Srivastava @ 2014-05-28 13:17 UTC (permalink / raw)
  To: kernelnewbies

Hi

I need to capture all writes on page which is memory mapped by the
user program. I've tried setting the vm_page_prot by disabling the
VM_WRITE flag but even then the page fault occurs only once during the
first write. VM_SHARED is set to stop COW in the __do_fault.

I was also trying to set_memory_ro(this may not be available for all
archs?)  however I can't do that while handling the fault since the
page table entries are created later after the
vm_operations_struct->fault has installed the page for the fault.

I'm not having any clues on how to do this. Any help would be really
helpful on this.

Thanks
-- 
        ---P.K.S

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-05-28 14:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-28 13:17 Capturing all writes as fault on a memory mapped page Pranay Srivastava
2014-05-28 13:29 ` Greg KH
2014-05-28 13:43   ` Pranay Srivastava
2014-05-28 14:25     ` Greg KH
2014-05-28 14:38       ` Pranay Srivastava

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).