Messages in this thread Patch in this message | | | Date | Sun, 18 Jul 1999 02:07:30 +0100 (GMT) | From | Tim Waugh <> | Subject | Re: 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/
| |