Re: [PATCH] notify_parent and ptrace cleanup

From: OGAWA Hirofumi
Date: Wed Aug 25 2004 - 14:55:19 EST


Roland McGrath <roland@xxxxxxxxxx> writes:

> > ptrace() is frangible, and racy. And looks like few things can't improve
> > without user visible change. So, I'm thinking I would like to rewrite
> > it by another interface.
>
> I don't think such vague statements are useful. Are there other races you
> are implicitly referring to here, or only the ones I have just cited?
> These issues are with the implementation, not the interface. Changing the
> ptrace interface won't do anything about them, and fixing them need not
> change the ptrace interface.
>
> The ptrace interface could use replacing, but that is really a separate
> issue. I will be first in line to replace it with something that has saner
> semantics and a more convenient user interface. But that won't help a whit
> with things like these race concerns. Let's keep the issue of an ugly
> interface separate from the issue of potential bugs in the one we have. If
> there are bugs (aside from the inherent limitations of the intended
> semantics), they need to be fixed.

Sorry for about it. Yes, racy is implementation issue. And AFAIK, it
seems to be fixed by we don't allow SIGCONT. (If it doesn't break userland)

> > And looks like few things can't improve without user visible
> > change. So, I'm thinking I would like to rewrite it by another
> > interface.

This is reason that I wouldn't like that we continue to be expanding
ptrace().

Thanks.
--
OGAWA Hirofumi <hirofumi@xxxxxxxxxxxxxxxxxx>
-
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/