Skip to content
Commit 62173872 authored by Eugene Syromiatnikov's avatar Eugene Syromiatnikov Committed by Christian Brauner
Browse files

clone3: add a check for the user struct size if CLONE_INTO_CGROUP is set



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: default avatarEugene Syromiatnikov <esyr@redhat.com>
Acked-by: default avatarChristian Brauner <christian.brauner@ubuntu.com>
Link: https://lore.kernel.org/r/20200412203123.GA5869@asgard.redhat.com


Signed-off-by: default avatarChristian Brauner <christian.brauner@ubuntu.com>
parent e82a118f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment