[PATCH] ptrace, kernel 2.4.19

From: Frank Cornelis (Frank.Cornelis@rug.ac.be)
Date: Tue Oct 15 2002 - 09:38:47 EST


Hi,

As far as I understand Documentation/cachetlb.txt the access_process_vm
function in kernel/ptrace.c handles the D-cache not correctly.
I think it should go as I patched.

Frank.

--- ptrace.c.orig Tue Oct 15 16:12:31 2002
+++ ptrace.c Tue Oct 15 16:19:49 2002
@@ -163,11 +163,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, len);
                } else {
+ flush_dcache_page(page);
                        memcpy(buf, maddr + offset, bytes);
- flush_page_to_ram(page);
                }
                kunmap(page);
                put_page(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 : Tue Oct 15 2002 - 22:00:55 EST