[PATCH v7 1/3] Add an internal wrapper for clone, clone2 and clone3

H.J. Lu hjl.tools@gmail.com
Wed May 26 13:19:37 GMT 2021


On Wed, May 26, 2021 at 6:05 AM Florian Weimer <fweimer@redhat.com> wrote:
>
> * H. J. Lu:
>
> > +int
> > +__clone_internal (struct clone_args *cl_args,
> > +               int (*func) (void *arg), void *arg)
> > +{
> > +  int ret;
> > +#ifdef HAVE_CLONE3_WAPPER
> > +  /* Try clone3 first.  */
> > +  int saved_errno = errno;
> > +  ret = __clone3 (cl_args, sizeof (*cl_args), func, arg);
> > +  if (ret != -1 || errno != ENOSYS)
> > +    return ret;
>
> How much breakage is this causing once there is a __clone3
> implementation that can return errors that aren't ENOSYS?

Isn't that __clone3 implementation broken?

> Do Firefox and Chromium work after this change?  What about

Firefox and Chromium won't work with clone3.

> Docker/Kubernetes?

I don't know.

> Thanks,
> Florian
>


-- 
H.J.


More information about the Libc-alpha mailing list