Re: [uml-devel] Re: Why UML often does not build (was: Re: [PATCH] UML: Build fix for TT w/o SKAS)

From: Blaisorblade
Date: Fri Oct 29 2004 - 10:18:04 EST


On Friday 29 October 2004 08:44, Werner Almesberger wrote:
> Chris Wedgwood wrote:
> > the problem here is that ptrace semantics are not well defined to
> > anything subtle can and will break from time to time
>
> I wonder what the "correct" solution for this would be: write a
> specification for Linux ptrace, or try to get the POSIX folks
> interested ?

> Given that we get subtle ptrace breakages quite regularly, it
> would be nice to see this eventually get resolved. "The
> implementation is the specification" doesn't seem to work well
> in this case.
Well, you are quite right - Linux is aimed at never breaking existing
binaries, and ptrace() does not follow that.

However, the problem here is that UML was not behaving correctly. Instead of
using the documented way, PTRACE_KILL, we just sent a SIGKILL and that
happened to work (and since PTRACE_KILL implementation just sends a SIGKILL,
you would still expect it to work).

In fact, I fixed the Gerd Knorr test program to use PTRACE_KILL and it works
on 2.6.9.

> BTW, things have improved around UML quite a bit recently, and I
> think this is to no small amount due to Paolo's work.
Thanks a lot for that, it's something very important for me, but I'm not the
only one deserving such recognition. See the amount of work done by Bodo
Stroesser in a few weeks - he solved lots of problems which I fought against
without success.

Besides that, I need to do a lot of janitorial work, while holding on more
advanced stuff - so I think that anybody could be able to help here.
--
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/