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

From: Christian Brauner
Date: Sun Apr 12 2020 - 17:14:08 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>

Thanks, will queue for rc2 unless I hear objections.
Acked-by: Christian Brauner <christian.brauner@xxxxxxxxxx>