blk-throttle: reject IOPS limits above UINT_MAX for legacy interface - #164
Open
blktests-ci-block-trial[bot] wants to merge 2 commits into
Open
blktests-ci-block-trial[bot] wants to merge 2 commits into
blktests-ci-block-trial[bot] wants to merge 2 commits into
Conversation
Author
|
Upstream branch: 940de59 |
blktests-ci-block-trial
Bot
force-pushed
the
master_base
branch
from
September 3, 2026 17:54
1fff761 to
3595ceb
Compare
Author
|
Upstream branch: 841e384 |
blktests-ci-block-trial
Bot
force-pushed
the
series/789=>master
branch
from
September 3, 2026 18:18
52a28b6 to
eac0d24
Compare
blktests-ci-block-trial
Bot
force-pushed
the
master_base
branch
from
September 3, 2026 22:51
3595ceb to
4061e04
Compare
tg_set_conf(), used for blkio.throttle.{read,write}_iops_device legacy
blkio cgroup sysfs knobs, parses limits as u64 but stores them in
unsigned int, silently truncating values above UINT_MAX. In addition
to being an obvios correctness issue, this may result in division by
zero in tg_within_iops_limit(), if the value is truncated to zero.
Reject such values with -EINVAL and explicitly use UINT_MAX as
a sentinel value for IOPS limits.
Fixes: 3a8b31d ("blkcg: restructure blkio_group configruation setting")
Cc: stable@vger.kernel.org
Signed-off-by: Mikhail Rudenko <xyzzy@yandex-team.ru>
Author
|
Upstream branch: a500db7 |
blktests-ci-block-trial
Bot
force-pushed
the
series/789=>master
branch
from
September 3, 2026 23:15
eac0d24 to
13048af
Compare
blktests-ci-block-trial
Bot
force-pushed
the
master_base
branch
11 times, most recently
from
September 18, 2026 23:12
35db34c to
da618a0
Compare
blktests-ci-block-trial
Bot
force-pushed
the
master_base
branch
4 times, most recently
from
September 20, 2026 20:58
107c7ec to
d965859
Compare
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.
Pull request for series with
subject: blk-throttle: reject IOPS limits above UINT_MAX for legacy interface
version: 1
url: http://redsun45:8000/project/linux-block/list/?series=789