Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

[18.06] backport fix denial of service with large numbers in cpuset-cpus and cpuset-mems #69

Closed

Conversation

thaJeztah
Copy link
Member

@thaJeztah thaJeztah commented Oct 4, 2018

Backport of moby#37967 for 18.06

git checkout -b 18.06_backport_upstream_dos_fix ce-engine/18.06
git cherry-pick -s -S -x f8e876d7616469d07b8b049ecb48967eeb8fa7a5

cherry-pick was clean; no conflicts

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.

@thaJeztah thaJeztah added this to the 18.06.2 milestone Oct 4, 2018
@thaJeztah
Copy link
Member Author

Need to update this one with the latest changes (after review comments on the upstream PR)

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 f8e876d)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah force-pushed the 18.06_backport_upstream_dos_fix branch from b6e4e4c to 7624e01 Compare October 5, 2018 13:15
@thaJeztah
Copy link
Member Author

Updated; PTAL

@thaJeztah thaJeztah modified the milestones: 18.06.2, 18.06.3 Feb 11, 2019
@kolyshkin kolyshkin closed this Jun 19, 2019
@thaJeztah thaJeztah deleted the 18.06_backport_upstream_dos_fix branch March 24, 2022 23:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants