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:0.021 / U:3.896 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site