[lkml]   [2012]   [Jan]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Compat 32-bit syscall entry from 64-bit task!?
Roland McGrath wrote:
> On Fri, Jan 20, 2012 at 4:07 PM, Denys Vlasenko
> <> wrote:
> >> Maybe a bit telling whether it is syscall entry or exit?
> >
> > Yes, this one too. This is one of longstanding annoyances
> > that this information is not exposed.
> That is not really "state", it's just which event you want.
> That is much better addressed by replacing PTRACE_SYSCALL
> Oleg can whip that up for you no problem.

I agree, that is so obviously the right thing to do and it's very easy
to do in the tracehook functions.

There is one slight problem that some archs don't use
tracehook yet. Probably that should be fixed anyway.

(Fwiw, two other issues with arch-independent ptrace have come up in this
thread, which ought to be fairly easy to fix:
- If tracer dies, tracee is free to continue running. For security
tracers, and would be useful for strace as well, it would be good
to have an option to SIGKILL the tracee if tracer dies.
- Can't abort or change an unwanted syscall if the process receives
SIGKILL as it's about to start a syscall (which will be its last).)

-- Jamie

 \ /
  Last update: 2012-01-21 02:27    [W:0.201 / U:2.212 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site