v2
2026-09-20
修复DAMON size配额溢出 · v2
修复 DAMON 时间目标调优器:检查 esz_bp 基点换算乘法,避免 32 位大配额溢出归零。
原始补丁链接
子 Patch(3)
1/3
mm/damon/core: prevent size quota overflow in the temporal goal tuner
[mm/damon/core: prevent size quota overflow in the temporal goal tuner] damos_goal_tune_esz_bp_temporal() converts the scheme’s size quota into basis points with “quota->esz_bp = quota->sz * 10000”, b
2/3
mm/damon/tests/core-kunit: test the temporal tuner's size quota conversion
[mm/damon/tests/core-kunit: test the temporal tuner’s size quota conversion] damos_goal_tune_esz_bp_temporal() encodes the size quota in basis points, so the conversion is exact only up to ULONG_MAX /
3/3
Docs/admin-guide/mm/damon/usage: document the temporal tuner's quota limit
The temporal goal tuner converts the size quota into basis points in an unsigned long, so a quotas/bytes above ULONG_MAX / 10000 does not fit, and is handled as if no size quota were set. On 32-bit t