lkml.org 
[lkml]   [2013]   [Nov]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCHSET 00/13] tracing/uprobes: Add support for more fetch methods (v6)
On 11/04, Namhyung Kim wrote:
> On Mon, 04 Nov 2013 17:46:41 +0900, Namhyung Kim wrote:
> > On Sat, 2 Nov 2013 16:54:58 +0100, Oleg Nesterov wrote:
> >> - this only allows to read the data from the same binary.
> >
> > Right. This is also an unnecessary restriction. We should be able to
> > access data in other binary.
>
> Hmm.. I guess this gonna be not simple

Yes ;)

- perhaps it can only be
> supported for per-process uprobe with known virtual addresses?

"Known" is very limited. Even in the simplest case (like your test-case
from from 0/13), you simply can't know the address of "int glob" if you
compile it with "-pie -fPIC".

As for other binaries (say libc) the problem is even worse, and
randomize_va_space adds even more pain.

But in any case, I strongly believe that it doesn't make any sense to
rely on tu->inode in get_user_vaddr().

Oleg.



\
 
 \ /
  Last update: 2013-11-04 17:21    [W:0.138 / U:0.244 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site