[PATCH 5/5] Unify post-execve SIGTRAP check across all arches
Dmitry V. Levin
ldv at altlinux.org
Tue Aug 23 19:21:33 UTC 2011
On Mon, Aug 22, 2011 at 12:30:26PM +0200, Denys Vlasenko wrote:
> On Mon, 2011-08-22 at 12:21 +0200, Denys Vlasenko wrote:
> > 5. Move post-execve SIGTRAP from get_scno_on_sysenter (multitude of
> > places on many architectures) to a single location in
> > trace_syscall_entering. This loosens the logic for some arches, since
> > many of them had additional checks such as scno == 0. So maybe this last
> > patch is not 100% safe. (However, on non-ancient Linux kernels we should
> > never have post-execve SIGTRAP in the first place, by virtue of using
> > PTRACE_O_TRACEEXEC.)
I have no idea when this "scno == 0" check was needed, the code comes
from pre-cvs times.
--
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20110823/13799c1a/attachment.bin>
More information about the Strace-devel
mailing list