Re: [PATCH] clone: only use lower 32 flag bits

2020-05-07 Thread Christian Brauner
On Wed, May 06, 2020 at 12:06:10PM -0700, Joe Perches wrote: > On Tue, 2020-05-05 at 19:44 +0200, Christian Brauner wrote: > > Jan reported an issue where an interaction between sign-extending clone's > > flag argument on ppc64le and the new CLONE_INTO_CGROUP feature causes > > clone() to consisten

Re: [PATCH] clone: only use lower 32 flag bits

2020-05-06 Thread Joe Perches
On Tue, 2020-05-05 at 19:44 +0200, Christian Brauner wrote: > Jan reported an issue where an interaction between sign-extending clone's > flag argument on ppc64le and the new CLONE_INTO_CGROUP feature causes > clone() to consistently fail with EBADF. [] > Let's fix this by always capping the upper

[PATCH] clone: only use lower 32 flag bits

2020-05-05 Thread Christian Brauner
Jan reported an issue where an interaction between sign-extending clone's flag argument on ppc64le and the new CLONE_INTO_CGROUP feature causes clone() to consistently fail with EBADF. The whole story is a little longer. The legacy clone() syscall is odd in a bunch of ways and here two things inte