Re: [PATCH] blk-throttle: reject IOPS limits above UINT_MAX for legacy interface

From: Mikhail Rudenko

Date: Sat Sep 05 2026 - 09:13:18 EST



On 2026-09-03 at 14:54 +03, Mikhail Rudenko <xyzzy@xxxxxxxxxxxxxx> wrote:

> 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.

Nevermind, there is a patch under review [1] which solves this.

[1] https://lore.kernel.org/r/20260722102459.253189-1-cui.tao@xxxxxxxxx

--
Best regards,
Mikhail Rudenko