[lkml]   [2003]   [Jan]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH] ptrace, kernel 2.5.56

According to Documentation/cachetlb.txt flush_dcache_page should also be
called when the kernel _is about_ to read from a page and user space
shared&writable mappings of this page potentially exist. I think
kernel/ptrace.c should be fixed on this issue.
I already posted this patch on the lkml a few months ago, but it got lost
I guess.
Where should I send ptrace patches to in the future? Anyone out there who
maintains the ptrace stuff?


--- ptrace.c.2.5.56 2003-01-13 14:31:45.000000000 +0100
+++ ptrace.c 2003-01-13 14:32:43.000000000 +0100
@@ -182,11 +182,11 @@
maddr = kmap(page);
if (write) {
memcpy(maddr + offset, buf, bytes);
- flush_page_to_ram(page);
+ flush_dcache_page(page);
flush_icache_user_range(vma, page, addr, bytes);
} else {
+ flush_dcache_page(page);
memcpy(buf, maddr + offset, bytes);
- flush_page_to_ram(page);

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:32    [W:1.892 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site