This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to change a string type argument of a system call?


Josh Stone <jistone@redhat.com> writes:

> [...]
> Correct -- the open syscall gets the filename using strncpy_from_user,
> which verifies that the pointer is within the user's address space.
> 
> I can think of a few options for you:
> [...]

5) use set_fs(KERN_DS) in some entry-probe-time embedded-c, with
   a corresponding set_fs(USER_DS) or whatnot at return-probe-time.


- FChE


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]