moby--moby/pkg/parsers
Justin Cormack f8e876d761
Fix denial of service with large numbers in cpuset-cpus and cpuset-mems
Using a value such as `--cpuset-mems=1-9223372036854775807` would cause
`dockerd` to run out of memory allocating a map of the values in the
validation code. Set limits to the normal limit of the number of CPUs,
and improve the error handling.

Reported by Huawei PSIRT.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2018-10-05 15:09:02 +02:00
..
kernel Windows: Move kernel_windows to use golang registry functions 2018-03-16 09:47:45 -07:00
operatingsystem Windows: Move kernel_windows to use golang registry functions 2018-03-16 09:47:45 -07:00
parsers.go Fix denial of service with large numbers in cpuset-cpus and cpuset-mems 2018-10-05 15:09:02 +02:00
parsers_test.go Fix denial of service with large numbers in cpuset-cpus and cpuset-mems 2018-10-05 15:09:02 +02:00