Commit 597536e3 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] access_process_vm() needs to dirty the page

If POKETEXT modifies the page it needs to tell the VM about it.
parent da8ac8ea
...@@ -189,6 +189,7 @@ int access_process_vm(struct task_struct *tsk, unsigned long addr, void *buf, in ...@@ -189,6 +189,7 @@ int access_process_vm(struct task_struct *tsk, unsigned long addr, void *buf, in
if (write) { if (write) {
memcpy(maddr + offset, buf, bytes); memcpy(maddr + offset, buf, bytes);
flush_icache_user_range(vma, page, addr, bytes); flush_icache_user_range(vma, page, addr, bytes);
set_page_dirty_lock(page);
} else { } else {
memcpy(buf, maddr + offset, bytes); memcpy(buf, maddr + offset, bytes);
} }
......
...@@ -63,6 +63,9 @@ ...@@ -63,6 +63,9 @@
* ->mmap_sem * ->mmap_sem
* ->i_shared_sem (various places) * ->i_shared_sem (various places)
* *
* ->mmap_sem
* ->lock_page (access_process_vm)
*
* ->inode_lock * ->inode_lock
* ->sb_lock (fs/fs-writeback.c) * ->sb_lock (fs/fs-writeback.c)
* ->mapping->page_lock (__sync_single_inode) * ->mapping->page_lock (__sync_single_inode)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment