public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ptrace, kernel 2.5.56
@ 2003-01-14  8:25 fcorneli
  2003-01-14  8:47 ` Andrew Morton
  0 siblings, 1 reply; 2+ messages in thread
From: fcorneli @ 2003-01-14  8:25 UTC (permalink / raw)
  To: linux-kernel; +Cc: Frank.Cornelis

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);



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-01-14  8:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-14  8:25 [PATCH] ptrace, kernel 2.5.56 fcorneli
2003-01-14  8:47 ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox