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> (cherry picked from commit f8e876d7616469d07b8b049ecb48967eeb8fa7a5) Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: 0922d32bce74657266aff213f83dfa638e8077f4 Component: engine
SysInfo stores information about which features a kernel supports.