moby--moby/pkg/sysinfo
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
..
README.md
numcpu.go
numcpu_linux.go
numcpu_windows.go
sysinfo.go
sysinfo_linux.go
sysinfo_linux_test.go
sysinfo_test.go
sysinfo_unix.go
sysinfo_windows.go

README.md

SysInfo stores information about which features a kernel supports.