[PATCH] Implement decoding of NS_* ioctl commands

Dmitry V. Levin ldv at altlinux.org
Fri Apr 14 02:49:28 UTC 2017


On Thu, Apr 13, 2017 at 10:08:36PM +0300, Dmitry V. Levin wrote:
> On Thu, Apr 13, 2017 at 06:58:00PM +0300, Dmitry V. Levin wrote:
> > On Thu, Apr 13, 2017 at 10:10:11PM +0700, Nikolay Marchuk wrote:
[...]
> > > +	pid = clone(child, tail_alloc(1) + 1,
> > > +	            CLONE_NEWUSER | CLONE_UNTRACED | SIGCHLD, pipefd);
[...]
> OK, I've applied these trivial changes myself and pushed it.
> Thanks!

And two more commits on top of it, to workaround issues with this clone()
call on niche architectures.

First, there is no clone() on ia64, but there is a __clone2() with a
slightly different semantics instead.  The latter is documented but
no prototype is provided by glibc.

Second, it crashes with SIGBUS on hppa which is not happy with the
child_stack address.

When using obscure functions like clone(), issues are popping up
like mushrooms after the rain.


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20170414/12fadb27/attachment.bin>


More information about the Strace-devel mailing list