lkml.org 
[lkml]   [2012]   [May]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 1/3] uprobes: install_breakpoint() should fail if is_swbp_insn() == T
    * Peter Zijlstra <peterz@infradead.org> [2012-05-31 14:15:18]:

    > On Wed, 2012-05-30 at 19:49 +0200, Peter Zijlstra wrote:
    > >
    > > Oh, indeed. I overlooked copy_insn() is taking the page from the
    > > page-cache instead of the page-tables and will thus get the original.
    > >
    >
    > Related to this, what happens when we try to install a probe on a page
    > that's already been COWed by a ptrace user?
    >
    > Say gdb did a code modification at or near the intended probe site.
    >

    If the page is already COWED because of an existing code modification
    near the intended probe site, we are replacing it with another page
    keeping the previous modification as is.

    ptrace and uprobes tracing the same instruction wont work cleanly for
    now.

    --
    thanks and regards
    Srikar



    \
     
     \ /
      Last update: 2012-05-31 15:41    [W:0.073 / U:32.064 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site