diff options
| author | Eugene Syromiatnikov <[email protected]> | 2020-04-12 20:25:33 +0000 |
|---|---|---|
| committer | Christian Brauner <[email protected]> | 2020-04-15 07:56:12 +0000 |
| commit | e82a118f57b89bbb437ce70780fc2678d5c281e5 (patch) | |
| tree | 1006900d63cfcd7598798ee09a1445bfb3a30ddf /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | signal: use kill_proc_info instead of kill_pid_info in kill_something_info (diff) | |
| download | kernel-e82a118f57b89bbb437ce70780fc2678d5c281e5.tar.gz kernel-e82a118f57b89bbb437ce70780fc2678d5c281e5.zip | |
clone3: fix cgroup argument sanity check
Checking that cgroup field value of struct clone_args is less than 0
is useless, as it is defined as unsigned 64-bit integer. Moreover,
it doesn't catch the situations where its higher bits are lost during
the assignment to the cgroup field of the cgroup field of the internal
struct kernel_clone_args (where it is declared as signed 32-bit
integer), so it is still possible to pass garbage there. A check
against INT_MAX solves both these issues.
Fixes: ef2c41cf38a7559b ("clone3: allow spawning processes into cgroups")
Signed-off-by: Eugene Syromiatnikov <[email protected]>
Acked-by: Christian Brauner <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
