Fix denial of service with large numbers in cpuset-cpus and cpuset-mems#37967
Merged
yongtang merged 1 commit intomoby:masterfrom Oct 8, 2018
Merged
Fix denial of service with large numbers in cpuset-cpus and cpuset-mems#37967yongtang merged 1 commit intomoby:masterfrom
yongtang merged 1 commit intomoby:masterfrom
Conversation
Member
Author
|
ping @justincormack @AkihiroSuda @vdemeester PTAL 🤗 |
vdemeester
reviewed
Oct 4, 2018
pkg/parsers/parsers.go
Outdated
Member
There was a problem hiding this comment.
Should we keep the signature (for not breaking downstream-dependencies) and add a new method ParsUintListMaximum or something ?
Member
Author
There was a problem hiding this comment.
Ah, yes; I could add a new one.
Codecov Report
@@ Coverage Diff @@
## master #37967 +/- ##
=========================================
Coverage ? 36.1%
=========================================
Files ? 610
Lines ? 45155
Branches ? 0
=========================================
Hits ? 16302
Misses ? 26612
Partials ? 2241 |
Member
Author
|
@vdemeester pushed an extra commit; if it looks good, I'll squash, and update my backports 😅 |
8e3f241 to
20bee7b
Compare
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 <[email protected]> Signed-off-by: Sebastiaan van Stijn <[email protected]>
20bee7b to
f8e876d
Compare
Member
Author
|
Squashed; this should be ready to go ping @justincormack PTAL |
runcom
added a commit
to projectatomic/docker
that referenced
this pull request
Jan 18, 2019
Backport of moby#37967 Fix BZ https://bugzilla.redhat.com/show_bug.cgi?id=1666565 Signed-off-by: Antonio Murdaca <[email protected]>
runcom
added a commit
to projectatomic/docker
that referenced
this pull request
Jan 18, 2019
Backport of moby#37967 Fix BZ https://bugzilla.redhat.com/show_bug.cgi?id=1666565 Signed-off-by: Antonio Murdaca <[email protected]>
runcom
added a commit
to projectatomic/docker
that referenced
this pull request
Jan 18, 2019
Backport of moby#37967 Fix BZ https://bugzilla.redhat.com/show_bug.cgi?id=1666565 Signed-off-by: Antonio Murdaca <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Using a value such as
--cpuset-mems=1-9223372036854775807would causedockerdto run out of memory allocating a map of the values in thevalidation code. Set limits to the normal limit of the number of CPUs,
and improve the error handling.
Reported by Huawei PSIRT.
- Description for the changelog