From: Blaisorblade <blaisorblade@yahoo.it>
To: Steven James <pyro@linuxlabs.com>
Cc: user-mode-linux-devel@lists.sourceforge.net,
"Charles P. Wright" <cwright@cs.sunysb.edu>,
Jeff Dike <jdike@addtoit.com>
Subject: Re: [uml-devel] [PATCH] RFC allow PTRACE_SYSCALL to selectively skip syscalls
Date: Mon, 22 May 2006 11:15:10 +0200 [thread overview]
Message-ID: <200605221115.10516.blaisorblade@yahoo.it> (raw)
In-Reply-To: <Pine.LNX.4.58.0605211946560.664@ucontrol.mobiledns.com>
On Monday 22 May 2006 01:58, Steven James wrote:
> On Sun, 21 May 2006, Blaisorblade wrote:
> > On Friday 19 May 2006 16:09, Blaisorblade wrote:
> > > That is more or less my idea, however I've not had the time to work on
> > > it. Instead of changing the semantics we must add another option - I
> > > thought to use a ptrace option (the ones you set with
> > > PTRACE_SETOPTIONS), Charles Wright coded instead a PTRACE_CHECKEMU, but
> > > this is the concept.
> > >
> > > So, I'm going to forward you the emails containing two patches:
> > > *) PTRACE_CHECKEMU from Charles Wright
> > > *) PTRACE_SYSCALL_MASK - to make the debugger be notified only of some
> > > syscalls; the only check is via syscall number though. It's unrelated
> > > to this but probably useful to you.
> > >
> > > And I'm attaching my original version of the PTRACE_CHECKEMU thing
> >
> > There's yet another implementation of this; look at the first 4 threads
> > of this page - Renzo Davoli posted a set of 3-patches which include his
> > PTRACE_SYSVM which has also this feature.
> >
> > http://marc.theaimsgroup.com/?a=106901060200003&r=1&w=2
>
> I had hoped to test both of these today, but got caught up in a nasty bug
> in 2.6.16.16 where syscall_trace_leave is sometimes getting called twice
> for the same syscall.
>
> Unfortunatly, my program counts on only being called once on entry and onc
> on exit from the syscall, so it gets hopelessly confused (not to mention
> the extra wasted context switches).
>
> I haven't been keeping up quite as I should, has it bitten anyone else
> and is there a fix?
I have uml/64-bit (AMD64) not working on 2.6.16/64bit, while uml-32bit works
fine on it, and the same uml/64-bit binaries work fine on 2.6.15. I haven't
tracked it down fully, but could it be related? Possibly yes because I now
seem to recall you run 64-bit host. So you likely found our bug!
So, please, send a bug report to Roland McGrath <roland@redhat.com>, the
ptrace maintainer (or so it seems), cc:ing uml-devel, Jeff and me at least.
And note that neither UML works, though the UML crash hasn't been debugged
down to verify it's this bug the cause.
I've built all 2.6.16-rc kernels, I hope I can do binary search to insulate a
bit where the bug was introduced. Now I know which bug it is, it'll be
easier. Thanks a lot!
--
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade
___________________________________
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB
http://mail.yahoo.it
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
prev parent reply other threads:[~2006-05-22 9:15 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-13 17:40 [uml-devel] [PATCH] RFC allow PTRACE_SYSCALL to selectively skip syscalls Steven James
2006-05-16 15:10 ` Jeff Dike
2006-05-16 17:45 ` Steven James
2006-05-17 6:20 ` Blaisorblade
2006-05-17 14:45 ` Steven James
2006-05-19 14:09 ` Blaisorblade
2006-05-21 17:36 ` Blaisorblade
2006-05-21 23:58 ` Steven James
2006-05-22 9:15 ` Blaisorblade [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200605221115.10516.blaisorblade@yahoo.it \
--to=blaisorblade@yahoo.it \
--cc=cwright@cs.sunysb.edu \
--cc=jdike@addtoit.com \
--cc=pyro@linuxlabs.com \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox