Re: [PATCH] clone3: add a check for the user struct size if CLONE_INTO_CGROUP is set

From: Christian Brauner
Date: Wed Apr 15 2020 - 08:40:25 EST


On Sun, Apr 12, 2020 at 10:31:23PM +0200, Eugene Syromiatnikov wrote:
> Passing CLONE_INTO_CGROUP with an under-sized structure (that doesn't
> properly contain cgroup field) seems like garbage input, especially
> considering the fact that fd 0 is a valid descriptor.
>
> Signed-off-by: Eugene Syromiatnikov <esyr@xxxxxxxxxx>
> Acked-by: Christian Brauner <christian.brauner@xxxxxxxxxx>

Applied, thanks!
Christian