Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
597536e3
Commit
597536e3
authored
Aug 14, 2003
by
Andrew Morton
Committed by
Linus Torvalds
Aug 14, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] access_process_vm() needs to dirty the page
If POKETEXT modifies the page it needs to tell the VM about it.
parent
da8ac8ea
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
kernel/ptrace.c
kernel/ptrace.c
+1
-0
mm/filemap.c
mm/filemap.c
+3
-0
No files found.
kernel/ptrace.c
View file @
597536e3
...
...
@@ -189,6 +189,7 @@ int access_process_vm(struct task_struct *tsk, unsigned long addr, void *buf, in
if
(
write
)
{
memcpy
(
maddr
+
offset
,
buf
,
bytes
);
flush_icache_user_range
(
vma
,
page
,
addr
,
bytes
);
set_page_dirty_lock
(
page
);
}
else
{
memcpy
(
buf
,
maddr
+
offset
,
bytes
);
}
...
...
mm/filemap.c
View file @
597536e3
...
...
@@ -63,6 +63,9 @@
* ->mmap_sem
* ->i_shared_sem (various places)
*
* ->mmap_sem
* ->lock_page (access_process_vm)
*
* ->inode_lock
* ->sb_lock (fs/fs-writeback.c)
* ->mapping->page_lock (__sync_single_inode)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment