lkml.org 
[lkml]   [1999]   [Jul]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: gdb strangness Under 2.3.11-pre1
On Sat, 17 Jul 1999, Ingo Molnar wrote:

> oh, ok, not my fault then, just a coincidence :)

No, Linus' fault. ;-)

--- linux/kernel/ptrace.c~ Sun Jul 18 01:48:21 1999
+++ linux/kernel/ptrace.c Sun Jul 18 01:49:52 1999
@@ -39,6 +39,8 @@
if (!pte_present(*pgtable))
goto fault_in_page;
page = pte_page(*pgtable);
+ if (write && !pte_write(*pgtable))
+ goto fault_in_page;
if (MAP_NR(page) >= max_mapnr)
return 0;
flush_cache_page(vma, addr);
We probably have to mark the page dirty if (write) as well; exercise for
the reader I guess. The 'if (pgd_none(*pgdir))' looks suspicious too --
should that that be !pgd_present?
Tim.
*/


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

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