[PATCH] ptrace, kernel 2.5.56

From: fcorneli@elis.rug.ac.be
Date: Tue Jan 14 2003 - 03:25:41 EST


Hi,

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?

Frank.

--- 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);
                 }
                 kunmap(page);
                 page_cache_release(page);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jan 15 2003 - 22:00:49 EST